mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-28 16:00:22 +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:
parent
f16495c7c5
commit
ee8123afce
1 changed files with 5 additions and 7 deletions
|
@ -1,7 +1,7 @@
|
|||
#! /bin/sh
|
||||
# Usage: check-guile [-i GUILE-INTERPRETER] [GUILE-TEST-ARGS]
|
||||
# If `-i GUILE-INTERPRETER' is omitted, use ${top_srcdir}/pre-inst-guile.
|
||||
# See test-suite/guile-test for documentation on GUILE-TEST-ARGS.
|
||||
# If `-i GUILE-INTERPRETER' is omitted, use ${top_builddir}/pre-inst-guile.
|
||||
# See ${top_srcdir}/test-suite/guile-test for documentation on GUILE-TEST-ARGS.
|
||||
#
|
||||
# Example invocations:
|
||||
# ./check-guile
|
||||
|
@ -12,19 +12,17 @@
|
|||
set -e
|
||||
|
||||
# this script runs in the top-level build-dir.
|
||||
top_builddir=`pwd`
|
||||
top_builddir=@top_builddir_absolute@
|
||||
top_srcdir=@top_srcdir@
|
||||
|
||||
TEST_SUITE_DIR=${top_srcdir}/test-suite
|
||||
|
||||
if [ x"$1" = x-i ] ; then
|
||||
guile=$2
|
||||
guile_opts=
|
||||
shift
|
||||
shift
|
||||
else
|
||||
guile=${top_srcdir}/pre-inst-guile
|
||||
guile_opts="${top_builddir}"
|
||||
guile=${top_builddir}/pre-inst-guile
|
||||
fi
|
||||
|
||||
GUILE_LOAD_PATH=$TEST_SUITE_DIR
|
||||
|
@ -43,7 +41,7 @@ if [ ! -f guile-procedures.txt ] ; then
|
|||
@LN_S@ libguile/guile-procedures.txt .
|
||||
fi
|
||||
|
||||
exec $guile $guile_opts \
|
||||
exec $guile \
|
||||
-e main -s "$TEST_SUITE_DIR/guile-test" \
|
||||
--test-suite "$TEST_SUITE_DIR/tests" \
|
||||
--log-file check-guile.log "$@"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue