mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
There were several issues: - we store the compiled test*.go files in a tests subdirectory, but this is not on the GUILE_LOAD_COMPILED_PATH. Added this directory to the path. - guile was looking for 'script.scm.go' while we create 'script.go'. This is due to how we invoke the scripts: guile -l path-to-script.scm -c (something) we can replace this with -l path-to-script (without extension) as -l won't add the extension. So I've rewrittin the test command to invoke (load-from-path). - the test modules foo.scm, bar.scm and baz.scm should go in tests/gnucash as they are defined as modules (gnucash foo), (gnucash bar) and (gnucash baz) respectively. - find html.scm/go on the load path instead of using a relative path.
gnc-module tests:
test-gwrapped-c.c: load a gnc-module from Scheme and test gwrapped fns
test-load-c.c: load a gnc-module from C
test-load-deps.{c,scm}: load a module that depends on another module
test-load-scm.scm: basic module load test from Scheme
test-scm-module.c: add a Scheme module load to the init fn and make sure
the symbols are visible
test-scm-multi.{c,scm}: load multiple gnc-modules from Scheme
gnc-module support files:
mod-{foo,bar,baz}/: sample modules for testing