Andy Wingo 0858753e82 Merge remote-tracking branch 'origin/stable-2.0' 13 anni fa
..
.gitignore 0b7f2eb8bf Start rewriting SRFI-1 in Scheme. 14 anni fa
Makefile.am 1ceeca0a76 Add `scm_c_value_ref' to allow access to multiple returned values from C 13 anni fa
README 0b6d8fdc28 allow building against uninstalled guile; move some things to meta/ 16 anni fa
test-asmobs 5b98517a65 Fix test environment issue with ltdl from Libtool 2.2.6b. 15 anni fa
test-asmobs-lib.c eb0ffdd819 Fix `#ifdef HAVE_CONFIG_H' stanza in some stand-alone tests. 14 anni fa
test-bad-identifiers 8722d99a45 Use `-q' when running standalone tests. 16 anni fa
test-command-line-encoding ed4c373966 Arrange to convert command-line arguments from the right encoding. 13 anni fa
test-conversion.c 022dda6901 New functions scm_is_exact and scm_is_inexact 13 anni fa
test-extensions 5b98517a65 Fix test environment issue with ltdl from Libtool 2.2.6b. 15 anni fa
test-extensions-lib.c eb0ffdd819 Fix `#ifdef HAVE_CONFIG_H' stanza in some stand-alone tests. 14 anni fa
test-fast-slot-ref.in 53befeb700 Change Guile license to LGPLv3+ 15 anni fa
test-ffi 2ee073587a Rename `make-foreign-function' to `pointer->procedure'. 14 anni fa
test-ffi-lib.c 134fe52a85 Placate GCC in `test-ffi-lib.c'. 13 anni fa
test-guile-snarf 25dc93dd57 Avoid non-portable `tail' argument in `test-guile-snarf'. 13 anni fa
test-import-order 7ad0737de9 out-of-tree build fix 13 anni fa
test-import-order-a.scm ad4bd7c2c0 fix define-module ordering 13 anni fa
test-import-order-b.scm ad4bd7c2c0 fix define-module ordering 13 anni fa
test-import-order-c.scm ad4bd7c2c0 fix define-module ordering 13 anni fa
test-import-order-d.scm ad4bd7c2c0 fix define-module ordering 13 anni fa
test-list.c eb0ffdd819 Fix `#ifdef HAVE_CONFIG_H' stanza in some stand-alone tests. 14 anni fa
test-loose-ends.c 1d00abb04f Implement scm_to_pointer 13 anni fa
test-mb-regexp f80ed1be36 add multibyte regexp test 14 anni fa
test-num2integral.c 91ee7515da Merge remote-tracking branch 'origin/stable-2.0' 13 anni fa
test-pthread-create-secondary.c 8f47877fc7 test-pthread-create-secondary: gc/gc.h, not gc/gc_version.h 13 anni fa
test-pthread-create.c 7c86abd9ce Use `scm_with_guile' in `test-pthread-create'. 14 anni fa
test-require-extension 8722d99a45 Use `-q' when running standalone tests. 16 anni fa
test-round.c d6cf96974e Use `#ifdef HAVE_...', not `#if'. 14 anni fa
test-scm-c-read.c 53befeb700 Change Guile license to LGPLv3+ 15 anni fa
test-scm-spawn-thread.c 002aab40bc Fix loose typing in `test-scm-spawn-thread.c'. 13 anni fa
test-scm-take-locale-symbol.c 53befeb700 Change Guile license to LGPLv3+ 15 anni fa
test-scm-take-u8vector.c f538a0709a Add test case for `scm_take_u8vector ()'. 15 anni fa
test-scm-to-latin1-string.c fe13364050 fix scm_to_latin1_stringn for substrings 13 anni fa
test-scm-values.c 1ceeca0a76 Add `scm_c_value_ref' to allow access to multiple returned values from C 13 anni fa
test-scm-with-guile.c 53befeb700 Change Guile license to LGPLv3+ 15 anni fa
test-system-cmds 8722d99a45 Use `-q' when running standalone tests. 16 anni fa
test-unwind.c 93003b16b0 Assorted `syntax-check' fixes. 14 anni fa
test-use-srfi.in 53befeb700 Change Guile license to LGPLv3+ 15 anni fa
test-with-guile-module.c eb0ffdd819 Fix `#ifdef HAVE_CONFIG_H' stanza in some stand-alone tests. 14 anni fa

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