mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-29 19:30:36 +02:00
* README: Add more info about building against an uninstalled Guile. * meta/: New directory. The proximate cause of its creation is that I want to be able to build external packages against uninstalled Guile, and to do that I need guile-tools in the PATH, but I don't want $top_builddir/libtool in the path. But it seems like a good reorganization, for things that are /about/ Guile: pkg-config files, m4 files, guile-config... then we also include uninstalled info: the environment, the pre-inst-guile script, etc. * meta/guile-1.8-uninstalled.pc.in: New pkg-config template. pkg-config prefers -uninstalled pkg-config files, if they are in its path. * meta/Makefile.am: * meta/ChangeLog-2008: * meta/gdb-uninstalled-guile.in: * meta/guile-1.8.pc.in: * meta/guile-config.in: * meta/guile.m4: * meta/guile-tools.in: Moved to meta/. * meta/guile.in: This is the new name of pre-inst-guile.in. * meta/uninstalled-env.in: And this, pre-inst-guile-env.in. * Makefile.am: * am/guilec: * am/pre-inst-guile: * check-guile.in: * configure.in: * doc/ref/Makefile.am: * gc-benchmarks/run-benchmark.scm: * test-suite/standalone/Makefile.am: * test-suite/standalone/README: * testsuite/Makefile.am: Adapt to meta/ change.
49 lines
1.2 KiB
Bash
49 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
|
|
|
|
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 \
|
|
-l ${top_builddir}/libguile/stack-limit-calibration.scm \
|
|
-e main -s "$TEST_SUITE_DIR/guile-test" \
|
|
--test-suite "$TEST_SUITE_DIR/tests" \
|
|
--log-file check-guile.log "$@"
|
|
|
|
# check-guile ends here
|