Neil Jerram 1f2707cc94 New test for thread-safe define 16 rokov pred
..
.gitignore 8760f4694d Have `scm_take_locale_symbol ()' return an interned symbol (fixes bug #25865). 16 rokov pred
Makefile.am 1f2707cc94 New test for thread-safe define 16 rokov pred
README f7fb2f39a4 *** empty log message *** 20 rokov pred
test-asmobs 10a529b027 Use `-q' when running standalone tests. 16 rokov pred
test-asmobs-lib.c 972b5d7045 Include <config.h> in standalone tests. 16 rokov pred
test-bad-identifiers 10a529b027 Use `-q' when running standalone tests. 16 rokov pred
test-conversion.c 90e97a7b4b Support systems whose <inttypes.h> doesn't define `PRIiMAX'. 16 rokov pred
test-define-race.c 1f2707cc94 New test for thread-safe define 16 rokov pred
test-fast-slot-ref.in 53a79cd060 Fix implementation of %fast-slot-ref and %fast-slot-set! 16 rokov pred
test-gh.c 972b5d7045 Include <config.h> in standalone tests. 16 rokov pred
test-list.c 972b5d7045 Include <config.h> in standalone tests. 16 rokov pred
test-num2integral.c 972b5d7045 Include <config.h> in standalone tests. 16 rokov pred
test-require-extension 10a529b027 Use `-q' when running standalone tests. 16 rokov pred
test-round.c 5e8130efc3 Fix "#include" directives in stand-alone C tests. 17 rokov pred
test-scm-c-read.c f36b070b65 Fix comments in `test-scm-c-read.c'. 16 rokov pred
test-scm-take-locale-symbol.c 8760f4694d Have `scm_take_locale_symbol ()' return an interned symbol (fixes bug #25865). 16 rokov pred
test-scm-with-guile.c cd1a1e47b5 Update the thread stack base when `scm_with_guile' is invoked multiple times. 16 rokov pred
test-system-cmds 10a529b027 Use `-q' when running standalone tests. 16 rokov pred
test-unwind.c 792ebd5dc4 Honor $TMPDIR in the test suite. 17 rokov pred
test-use-srfi.in 05675184ee Avoid `Stack overflow' errors when running `make check' 16 rokov pred
test-with-guile-module.c 972b5d7045 Include <config.h> in standalone tests. 16 rokov pred

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
!#