Running automated or unit tests?

Jeff Kletsky gnucash at allycomm.com
Mon Mar 8 20:25:01 EST 2010


On 3/8/2010 4:59 PM, Jeff Kletsky wrote:
> Maybe I'm blind, but I'm not seeing how to run unit/automated testing 
> (or how to add more unit tests to the quite).
>
> Would someone point me in the right direction so I can be more 
> confident I'm not breaking things?
>
> -j

make check??

The following Q&D patch (and similar to test-resolve-url.c) will fix the 
compile breakage, but looks like the WIP related to r18842 needs to 
complete before they pass.

diff --git a/src/core-utils/test/test-resolve-file-path.c 
b/src/core-utils/test/test-resolve-file-path.c
index 8d89a3b..b6503a4 100644
--- a/src/core-utils/test/test-resolve-file-path.c
+++ b/src/core-utils/test/test-resolve-file-path.c
@@ -104,7 +104,7 @@ main(int argc, char **argv)
              wantout = g_strdup(strs[i].output);
          }

-        daout = xaccResolveFilePath(dain);
+        daout = gnc_resolve_file_path(dain);
          do_test_args(safe_strcmp(daout, wantout) == 0,
                       "xaccResolveFilePath",
                       __FILE__, __LINE__,




More information about the gnucash-devel mailing list