Difficulty with apps-utils

Aaron Laws dartme18 at gmail.com
Thu Nov 9 09:19:53 EST 2017


On Wed, Nov 8, 2017 at 4:26 PM, Aaron Laws <dartme18 at gmail.com> wrote:

>
> Hi Aaron,
>>
>> Since test-app-utils uses guile, you can't execute that test from the
>> build/bin directory without setting up the Guile environment. Look into
>> the Testing/Temporary/LastTest.log file to retreive the command
>> you need. For me, this command is
>>
>> cmake "-E" "env" "GNC_BUILDDIR=$GNUCASH_BUILD" "GNC_UNINSTALLED=yes" \
>>   "GNC_BUILDDIR=$GNUCASH_BUILD" "GUILE_WARN_DEPRECATED=no" \
>>   "LD_LIBRARY_PATH=$GNUCASH_BUILD/lib:$GNUCASH_BUILD/lib/gnucash" \
>>   "GNC_MODULE_PATH=$GNUCASH_BUILD/lib:$GNUCASH_BUILD/lib/gnucash" \
>>   "GUILE=/usr/bin/guile" "GUILE_LOAD_COMPILED_PATH=$GNU
>> CASH_BUILD/lib/gnucash/scm/ccache/2.0" \
>>   "GUILE_LOAD_PATH=$GNUCASH_SRC/libgnucash/app-utils/test/mod-
>> foo:$GNUCASH_SRC/libgnucash/app-utils/test/mod-bar:$GNUCASH_
>> SRC/libgnucash/app-utils/test/mod-baz" \
>>   "$GNUCASH_BUILD/bin/test-app-utils"
>>
>> where I have substituted $GNUCASH_BUILD and $GNUCASH_SRC for my
>> directory details.  But you can just cut-n-paste whatever command
>> is in LastTest.log to run the test.
>>
>> When I clone and build your branch on Fedora 26 (gcc 7.1.1), I
>> get this message in my LastTest.log and when running the above
>> cmake command by hand:
>>
>> Output:
>> ----------------------------------------------------------
>> /app-utils/option-util/Option DB Load: **
>> ERROR:/home/robg/gnucash/libgnucash/app-utils/test/test-option-util.cpp:98:void
>> test_option_load(Fixture*, gconstpointer): assertion failed
>> (gnc_option_db_lookup_string_option (odb, "Business", "Company Name",
>> FALSE) == "Bogus Company"): ("" == "Bogus Company")
>> Child aborted
>>
>> I also get a segfault in test-engine after gnc-budget_set_account_period_
>> value()
>>
>> What do you see in your Testing/Temporary/LastTest.log?
>>
>> Regards,
>>
>> Rob
>>
>
> Excellent suggestion; thanks! I'm not in a position to run it now and give
> feedback, but I should tomorrow.
>

With your suggestion, I was able to find the incorrect kvp invocation, and
it's running now. Thanks again!


More information about the gnucash-devel mailing list