mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-15 18:20:42 +02:00
Back port from 1.9, with the following exception:
Set "-e" at the start.
This commit is contained in:
parent
404d6d2a02
commit
d1e29c0d5e
1 changed files with 10 additions and 11 deletions
|
@ -1,6 +1,6 @@
|
||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
# Usage: check-guile [-i GUILE-INTERPRETER] [GUILE-TEST-ARGS]
|
# Usage: check-guile [-i GUILE-INTERPRETER] [GUILE-TEST-ARGS]
|
||||||
# If `-i GUILE-INTERPRETER' is omitted, use ${top_srcdir}/pre-inst-guile.
|
# If `-i GUILE-INTERPRETER' is omitted, use libguile/guile.
|
||||||
# See test-suite/guile-test for documentation on GUILE-TEST-ARGS.
|
# See test-suite/guile-test for documentation on GUILE-TEST-ARGS.
|
||||||
#
|
#
|
||||||
# Example invocations:
|
# Example invocations:
|
||||||
|
@ -12,27 +12,26 @@
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
# this script runs in the top-level build-dir.
|
# this script runs in the top-level build-dir.
|
||||||
top_builddir=`pwd`
|
srcdir=@srcdir@
|
||||||
top_srcdir=@top_srcdir@
|
TEST_SUITE_DIR=$srcdir/test-suite
|
||||||
|
|
||||||
TEST_SUITE_DIR=${top_srcdir}/test-suite
|
|
||||||
|
|
||||||
if [ x"$1" = x-i ] ; then
|
if [ x"$1" = x-i ] ; then
|
||||||
guile=$2
|
guile=$2
|
||||||
guile_opts=
|
|
||||||
shift
|
shift
|
||||||
shift
|
shift
|
||||||
else
|
|
||||||
guile=${top_srcdir}/pre-inst-guile
|
|
||||||
guile_opts="${top_builddir}"
|
|
||||||
fi
|
|
||||||
|
|
||||||
GUILE_LOAD_PATH=$TEST_SUITE_DIR
|
GUILE_LOAD_PATH=$TEST_SUITE_DIR
|
||||||
|
else
|
||||||
|
guile=libguile/guile
|
||||||
|
GUILE_LOAD_PATH=$srcdir:$TEST_SUITE_DIR
|
||||||
|
LTDL_LIBRARY_PATH=`pwd`/srfi:${LTDL_LIBRARY_PATH}
|
||||||
|
fi
|
||||||
export GUILE_LOAD_PATH
|
export GUILE_LOAD_PATH
|
||||||
|
export LTDL_LIBRARY_PATH
|
||||||
|
|
||||||
if [ -f "$guile" -a -x "$guile" ] ; then
|
if [ -f "$guile" -a -x "$guile" ] ; then
|
||||||
echo Testing $guile ... "$@"
|
echo Testing $guile ... "$@"
|
||||||
echo with GUILE_LOAD_PATH=$GUILE_LOAD_PATH
|
echo with GUILE_LOAD_PATH=$GUILE_LOAD_PATH
|
||||||
|
echo with LTDL_LIBRARY_PATH=$LTDL_LIBRARY_PATH
|
||||||
else
|
else
|
||||||
echo ERROR: Cannot execute $guile
|
echo ERROR: Cannot execute $guile
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -43,7 +42,7 @@ if [ ! -f guile-procedures.txt ] ; then
|
||||||
@LN_S@ libguile/guile-procedures.txt .
|
@LN_S@ libguile/guile-procedures.txt .
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exec $guile $guile_opts \
|
exec "$guile"
|
||||||
-e main -s "$TEST_SUITE_DIR/guile-test" \
|
-e main -s "$TEST_SUITE_DIR/guile-test" \
|
||||||
--test-suite "$TEST_SUITE_DIR/tests" \
|
--test-suite "$TEST_SUITE_DIR/tests" \
|
||||||
--log-file check-guile.log "$@"
|
--log-file check-guile.log "$@"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue