mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-29 19:30:36 +02:00
* check-guile.in: * test-suite/Makefile.am: * test-suite/test-suite/lib.scm: * benchmark-guile.in: * benchmark-suite/Makefile.am: * benchmark-suite/benchmark-suite/lib.scm: Lower the lib modules in the source tree. This lets us remove top_srcdir and top_builddir from the uninstalled paths. * test-suite/tests/asm-to-bytecode.test: * test-suite/tests/brainfuck.test: * test-suite/tests/compiler.test: * test-suite/tests/ftw.test: * test-suite/tests/gc.test: * test-suite/tests/match.test: * test-suite/tests/rnrs-libraries.test: * test-suite/tests/rnrs-test-a.scm: * test-suite/tests/sxml.match.test: Adapt to not expect that module names be prefixed with "test-suite".
51 lines
1.2 KiB
Bash
51 lines
1.2 KiB
Bash
#! /bin/sh
|
|
# Usage: check-guile [-i GUILE-INTERPRETER] [GUILE-TEST-ARGS]
|
|
# If `-i GUILE-INTERPRETER' is omitted, use ${top_builddir}/meta/guile.
|
|
# See ${top_srcdir}/test-suite/guile-test for documentation on GUILE-TEST-ARGS.
|
|
#
|
|
# Example invocations:
|
|
# ./check-guile
|
|
# ./check-guile numbers.test
|
|
# ./check-guile -i /usr/local/bin/guile
|
|
# ./check-guile -i /usr/local/bin/guile numbers.test
|
|
|
|
set -e
|
|
|
|
top_builddir=@top_builddir_absolute@
|
|
top_srcdir=@top_srcdir_absolute@
|
|
|
|
TEST_SUITE_DIR=${top_srcdir}/test-suite
|
|
export TEST_SUITE_DIR
|
|
|
|
if [ x"$1" = x-i ] ; then
|
|
guile=$2
|
|
shift
|
|
shift
|
|
else
|
|
guile=${top_builddir}/meta/guile
|
|
fi
|
|
|
|
GUILE_LOAD_PATH=$TEST_SUITE_DIR
|
|
export GUILE_LOAD_PATH
|
|
|
|
if [ -f "$guile" -a -x "$guile" ] ; then
|
|
echo Testing $guile ... "$@"
|
|
echo with GUILE_LOAD_PATH=$GUILE_LOAD_PATH
|
|
else
|
|
echo ERROR: Cannot execute $guile
|
|
exit 1
|
|
fi
|
|
|
|
# documentation searching ignores GUILE_LOAD_PATH.
|
|
if [ ! -f guile-procedures.txt ] ; then
|
|
@LN_S@ libguile/guile-procedures.txt .
|
|
fi
|
|
|
|
exec $guile \
|
|
--debug \
|
|
-L "$TEST_SUITE_DIR" \
|
|
--no-auto-compile -e main -s "$TEST_SUITE_DIR/guile-test" \
|
|
--test-suite "$TEST_SUITE_DIR/tests" \
|
|
--log-file check-guile.log "$@"
|
|
|
|
# check-guile ends here
|