Neil Jerram f41529c37b Make test scripts check GUILE environment variable 15 年 前
..
.gitignore 8760f4694d Have `scm_take_locale_symbol ()' return an interned symbol (fixes bug #25865). 16 年 前
Makefile.am a0aa1e5b69 Fix test environment issue with ltdl from Libtool 2.2.6b. 15 年 前
README f7fb2f39a4 *** empty log message *** 20 年 前
test-asmobs f41529c37b Make test scripts check GUILE environment variable 15 年 前
test-asmobs-lib.c 972b5d7045 Include <config.h> in standalone tests. 16 年 前
test-bad-identifiers f41529c37b Make test scripts check GUILE environment variable 15 年 前
test-conversion.c b701fcef1d Don't use raw divisions by zero in `test-conversion.c'. 16 年 前
test-fast-slot-ref.in f41529c37b Make test scripts check GUILE environment variable 15 年 前
test-gh.c 972b5d7045 Include <config.h> in standalone tests. 16 年 前
test-list.c 972b5d7045 Include <config.h> in standalone tests. 16 年 前
test-num2integral.c 972b5d7045 Include <config.h> in standalone tests. 16 年 前
test-require-extension f41529c37b Make test scripts check GUILE environment variable 15 年 前
test-round.c 2b76a65566 Fix compilation of `test-round.c' on BSD. 16 年 前
test-scm-c-read.c f36b070b65 Fix comments in `test-scm-c-read.c'. 16 年 前
test-scm-take-locale-symbol.c 8760f4694d Have `scm_take_locale_symbol ()' return an interned symbol (fixes bug #25865). 16 年 前
test-scm-with-guile.c cd1a1e47b5 Update the thread stack base when `scm_with_guile' is invoked multiple times. 16 年 前
test-system-cmds f41529c37b Make test scripts check GUILE environment variable 15 年 前
test-unwind.c 792ebd5dc4 Honor $TMPDIR in the test suite. 17 年 前
test-use-srfi.in f41529c37b Make test scripts check GUILE environment variable 15 年 前
test-with-guile-module.c 972b5d7045 Include <config.h> in standalone tests. 16 年 前

README

-*-text-*-

These tests use the standard automake TESTS mechanism. Tests should
be listed in TESTS in Makefile.am, and should exit with 0 on success,
non-zero on failure, and 77 if the result should be ignored. See the
automake info pages for more information.

If you want to use a scheme script, prefix it as follows:

#!/bin/sh
exec guile -s "$0" "$@"
!#

Makefile.am will arrange for all tests (scripts or executables) to be
run under pre-inst-guile-env so that the PATH, LD_LIBRARY_PATH, and
GUILE_LOAD_PATH will be augmented appropriately.

The Makefile.am has an example of creating a shared library to be used
from a test scheme script as well.

You can also create standalone executables that include your own code,
are linked against libguile, and that run a given test script (or
scripts). One way to do this is to create the binary, make sure it
calls scm_shell (argc, argv) as its final action, and put this bit at
the top of your test script:

#!./my-test-binary -s
!#