1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-30 00:40:20 +02:00

(top_builddir): Use AC_SUBST var `top_builddir_absolute'.

(guile): Look for pre-inst-guile in $top_builddir.
This commit is contained in:
Thien-Thi Nguyen 2002-02-26 11:23:05 +00:00
parent f16495c7c5
commit ee8123afce

View file

@ -1,7 +1,7 @@
#! /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 ${top_builddir}/pre-inst-guile.
# See test-suite/guile-test for documentation on GUILE-TEST-ARGS. # See ${top_srcdir}/test-suite/guile-test for documentation on GUILE-TEST-ARGS.
# #
# Example invocations: # Example invocations:
# ./check-guile # ./check-guile
@ -12,19 +12,17 @@
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` top_builddir=@top_builddir_absolute@
top_srcdir=@top_srcdir@ top_srcdir=@top_srcdir@
TEST_SUITE_DIR=${top_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 else
guile=${top_srcdir}/pre-inst-guile guile=${top_builddir}/pre-inst-guile
guile_opts="${top_builddir}"
fi fi
GUILE_LOAD_PATH=$TEST_SUITE_DIR GUILE_LOAD_PATH=$TEST_SUITE_DIR
@ -43,7 +41,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 "$@"