Re: Ledger 3.1.1 release candidate

2015-09-19 Thread Alexis
Hello Sharon,
thank you for you report.

> Built and 'sudo make install' and tests done on a stock default debian
> jessie and passed all tests except one

What did you exactly build?  The following commands might be helpful:
% git rev-parse --short HEAD
% git describe

> WARNING: Empty testfile detected: 
> /home/boudiccas/git/ledger/test/baseline/feat-fixated-prices.test

That's odd, on my side (git revision 88ad616) the file is 731 bytes
in size and its SHA256 is:
0d7040bd96d527345c890b3844382893afecece997957291de2208c053c56fd5

Here's a link to what it should look like:
https://github.com/ledger/ledger/blob/next/test/baseline/feat-fixated-prices.test


Best,
Alexis

-- 

--- 
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 ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Python bindings with macports

2015-09-19 Thread Alexis
Hi Reuben,
looking at the ledger Portfile, ledger is configured with:
configure.cmd   ${worksrcpath}/acprep opt config

By default Python bindings are not enabled, one needs to pass
the --python option to acprep above.

So I assume ledger Python bindings are not available from MacPorts.


Alexis

-- 

--- 
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 ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Python bindings with macports

2015-09-19 Thread Reuben Cummings
Hi, I've successfully installed Ledger 3.1.0-20141005 via macports but 
there doesn't appear to be a python variant. Are the python bindings 
available without building from source?

-- 

--- 
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 ledger-cli+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Ledger 3.1.1 release candidate

2015-09-19 Thread Bruce Schultz
On Wed, Sep 16, 2015 at 1:45 PM, Bruce Schultz  wrote:

>
>
> On Wed, Sep 16, 2015 at 12:29 PM, Alexis  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.
>

I haven't been able to get anything meaningful on this. I've rebuilt
without the python stuff for now


>
>
>> > 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}
>
>
Here's the output for all of the failing tests. Not sure what's going on
with the "WARNING: Empty testfile detected" errors. All of the reported
files which I've checked have looked valid, definitely not empty. The other
failures fall into 2 categories:

 - the sort order for pricedb is different (I tried changing the input
order, but the output came out in a different order again)
 - the time report output has an extra line with a single *


$ ctest --output-on-failure -R
'cmd-price(s|db)|feat-fixated-prices|opt-(datetime-format|gain|historical|market|price|revalued|time-report)|14DB77E7|3FE26304|7C44010B|999-b|9E0E606D|9EB10714|EA18D948'
Test project /c/Users/schultzb/src/ledger
  Start  29: BaselineTest_cmd-pricedb
 1/21 Test  #29: BaselineTest_cmd-pricedb ...***Failed0.51 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.316667 USD
   P 2012/01/02 00:00:00 GBP 1.20 EUR
  -P 2012/01/03 00:00:00 EUR 1.316667 USD
   P 2012/01/04 00:00:00 USD 0.63 GBP
E[cmd-pricedb.test]STDERR:


OK (4)  FAILED (1)

  Start  31: BaselineTest_cmd-prices
 2/21 Test  #31: BaselineTest_cmd-prices ***Failed0.49 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.316667 USD
   2012/01/02 GBP  1.20 EUR
  -2012/01/03 EUR  1.316667 USD
   2012/01/04 USD  0.63 GBP
E[cmd-prices.test]STDERR:


OK (4)  FAILED (1)

  Start  57: BaselineTest_feat-fixated-prices
 3/21 Test  #57: BaselineTest_feat-fixated-prices ...***Failed0.52 sec

E[feat-fixated-prices.test]
FAILED (1)
WARNING: Empty testfile detected:
/c/Users/schultzb/src/ledger/test/baseline/feat-fixated-prices.test

  Start 100: BaselineTest_opt-datetime-format
 4/21 Test #100: BaselineTest_opt-datetime-format ...***Failed0.53 sec

FAILURE in output from
/c/Users/schultzb/src/ledger/test/baseline/opt-datetime-format.test:
--
$ledger -f
"/c/Users/schultzb/src/ledger/test/baseline/opt-datetime-format.test" bal
--time-report --datetime-format '%m/%d/%y %I:%M %p'
--
  @@ -5,4 +5,4 @@
 04/05/13 12:00 PM04/05/13 01:30 PM   1.50hLunch
 04/05/13 11:30 AM04/05/13 12:00 PM   30.0mWalk
   --
  -
  +  *
E[opt-datetime-format.test]STDERR:


FAILED (1)

  Start 126: BaselineTest_opt-gain
 5/21 Test #126: BaselineTest_opt-gain ..***Failed0.77 sec

E[opt-gain.test]..
OK (2)  FAILED (1)

  Start 130: BaselineTest_opt-historical
 6/21 Test #130: BaselineTest_opt-historical ***Failed3.72 sec

E[opt-historical.test]
E[opt-historical.test]..
E[opt-historical.test]
E[opt-historical.test]..
OK (20)  FAILED (4)
WARNING: Empty testfile detected:
/c/Users/schultzb/src/ledger/test/baseline/opt-historical.test

  Start 145: BaselineTest_opt-market
 7/21 Test #145: BaselineTest_opt-market ***Failed0.49 sec

E[opt-market.test]
FAILED (1)
WARNING: Empty testfile detected:
/c/Users/schultzb/src/ledger/test/baseline/opt-market.test

  Start 172: BaselineTest_opt-price-db
 8/21 Test #172: BaselineTest_opt-price-db ..   Passed0.30 sec
  Start 173: BaselineTest_opt-price
 9/21 Test #173: BaselineTest_opt-price .***Failed1.21 sec
..
E[opt-price.test]
E[opt-price.test].
OK (3)  FAILED (2)
WARNING: Empty testfile detected:
/c/Users/schultzb/src/ledger/test/baseline/opt-price.test

  Start 174: BaselineTest_opt-pricedb-format
10/21 Test #174: BaselineTest_opt-pricedb-format    Passed0.31 sec
  Start 175: BaselineTest_opt-prices-format
11/21