Mark H Weaver 856d318a9f Merge branch 'stable-2.0' 10 anni fa
..
.gitignore 0b7f2eb8bf Start rewriting SRFI-1 in Scheme. 14 anni fa
Makefile.am 856d318a9f Merge branch 'stable-2.0' 10 anni fa
README 0b6d8fdc28 allow building against uninstalled guile; move some things to meta/ 15 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. 13 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-command-line-encoding2 5de0053178 Don't fail when locale env. vars specify a dot-less locale name. 13 anni fa
test-conversion.c bbb9f000ad Fix scm_to_utf8_stringn once and for all; optimize; add tests 12 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. 13 anni fa
test-fast-slot-ref.in 53befeb700 Change Guile license to LGPLv3+ 15 anni fa
test-ffi 5ccc3764b3 Support calling foreign functions of 10 arguments or more. 11 anni fa
test-ffi-lib.c 5ccc3764b3 Support calling foreign functions of 10 arguments or more. 11 anni fa
test-foreign-object-c.c 4b8ce7c752 Add more foreign object interfaces 10 anni fa
test-foreign-object-scm a7ee7f7cbf New foreign object facility, to replace SMOBs 10 anni fa
test-guild-compile 4afca1a066 test-guild-compile: Increase sleep time before sending SIGINT. 10 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-language 72d4abda1d tests: Use shell constructs that /bin/sh on Solaris 10 can understand. 11 anni fa
test-language.el 13ff681c33 Add tests for `--language'. 12 anni fa
test-language.js 13ff681c33 Add tests for `--language'. 12 anni fa
test-list.c eb0ffdd819 Fix `#ifdef HAVE_CONFIG_H' stanza in some stand-alone tests. 13 anni fa
test-loose-ends.c 0c1f2b0e0d tests: Add #undef NDEBUG when using <assert.h>. 10 anni fa
test-mb-regexp f80ed1be36 add multibyte regexp test 13 anni fa
test-num2integral.c 475772ea57 Merge branch 'stable-2.0' 10 anni fa
test-out-of-memory 1d8b325994 Compile some standalone tests to bytecode 10 anni fa
test-pthread-create-secondary.c 4702deb424 tests: Skip `test-pthread-create-secondary' except on Linux-based systems. 11 anni fa
test-pthread-create.c 7c86abd9ce Use `scm_with_guile' in `test-pthread-create'. 13 anni fa
test-require-extension 8722d99a45 Use `-q' when running standalone tests. 16 anni fa
test-round.c 0c1f2b0e0d tests: Add #undef NDEBUG when using <assert.h>. 10 anni fa
test-scm-c-bind-keyword-arguments.c 0c1f2b0e0d tests: Add #undef NDEBUG when using <assert.h>. 10 anni fa
test-scm-c-read.c 0c1f2b0e0d tests: Add #undef NDEBUG when using <assert.h>. 10 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 0c1f2b0e0d tests: Add #undef NDEBUG when using <assert.h>. 10 anni fa
test-scm-with-guile.c 53befeb700 Change Guile license to LGPLv3+ 15 anni fa
test-smob-mark.c 0c1f2b0e0d tests: Add #undef NDEBUG when using <assert.h>. 10 anni fa
test-srfi-4.c 0c1f2b0e0d tests: Add #undef NDEBUG when using <assert.h>. 10 anni fa
test-stack-overflow 1d8b325994 Compile some standalone tests to bytecode 10 anni fa
test-system-cmds b518c6a0b3 tests: Use double quotes around shell arguments, for Windows. 11 anni fa
test-unwind.c 556d35af88 tests: Don't rely on $TMPDIR and /tmp on Windows. 11 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. 13 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
!#