On Wed, Sep 16, 2015 at 12:29 PM, Alexis <[email protected]> wrote:

> Hello Bruce,
> thank you for the report!
>
> > 92% tests passed, 28 tests failed out of 353
>
> Not too bad, yet there seems to be room improvement :)
>
> > The python support is broken (running ledger python gives a segfault) so
> > I'm not surprised by the _py test failures
>
> Which Python version do you use?
> Currently only Python 2.x is supported.
>

Python 2.7.10 (python 2 is default on cygwin)


> Can you provide a stacktrace?
> It would be interesting to see what is going on.
>

I will have a play with gdb & see how I go. Will get back if I run into
difficulty.


> > How do I run individual tests to investigate further?
>
> To run individual tests use:
> % ctest --output-on-failure -R ${REGEX_FOR_TESTS_TO_RUN_HERE}
>
>
Ok, baby steps here... If I am interpreting this correctly, the output is
out of order:

$ ctest --output-on-failure -R cmd-price
Test project /c/Users/schultzb/src/ledger
    Start 29: BaselineTest_cmd-pricedb
1/3 Test #29: BaselineTest_cmd-pricedb .........***Failed    0.48 sec

FAILURE in output from
/c/Users/schultzb/src/ledger/test/baseline/cmd-pricedb.test:
--
$ledger -f "/c/Users/schultzb/src/ledger/test/baseline/cmd-pricedb.test"
pricedb
--
  @@ -1,3 +1,3 @@
  +P 2012/01/03 00:00:00 EUR 1.3166666667 USD
   P 2012/01/02 00:00:00 GBP 1.20 EUR
  -P 2012/01/03 00:00:00 EUR 1.3166666667 USD
   P 2012/01/04 00:00:00 USD 0.63 GBP
E[cmd-pricedb.test]STDERR:

....
OK (4)  FAILED (1)

    Start 30: BaselineTest_cmd-pricemap
2/3 Test #30: BaselineTest_cmd-pricemap ........   Passed    0.30 sec
    Start 31: BaselineTest_cmd-prices
3/3 Test #31: BaselineTest_cmd-prices ..........***Failed    0.50 sec

FAILURE in output from
/c/Users/schultzb/src/ledger/test/baseline/cmd-prices.test:
--
$ledger -f "/c/Users/schultzb/src/ledger/test/baseline/cmd-prices.test"
prices
--
  @@ -1,3 +1,3 @@
  +2012/01/03 EUR      1.3166666667 USD
   2012/01/02 GBP          1.20 EUR
  -2012/01/03 EUR      1.3166666667 USD
   2012/01/04 USD          0.63 GBP
E[cmd-prices.test]STDERR:

....
OK (4)  FAILED (1)


33% tests passed, 2 tests failed out of 3

Total Test time (real) =   1.31 sec

The following tests FAILED:
         29 - BaselineTest_cmd-pricedb (Failed)
         31 - BaselineTest_cmd-prices (Failed)
Errors while running CTest

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"Ledger" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to