This is the mail archive of the
guile@sourceware.cygnus.com
mailing list for the Guile project.
test-guile script
- To: guile at sourceware dot cygnus dot com
- Subject: test-guile script
- From: thi <ttn at revel dot glug dot org>
- Date: Fri, 24 Mar 2000 13:28:38 -0800
- Reply-to: ttn at glug dot org
this should be added as test-guile.in, so that it can be processed
properly by configure. (see previous email.) example invocations:
./test-guile
./test-guile -i /usr/local/bin/guile
./test-guile numbers.test
./test-guile -i /usr/local/bin/guile numbers.test
aside: i like how guile-test and test-guile are named!
oops, i forgot the changelog entry for this:
* test-guile.in: New file.
thi
----------------------------
#! /bin/sh
# Usage: test-guile [-i GUILE-INTERPRETER] [GUILE-TEST-ARGS]
# If `-i GUILE-INTERPRETER' is omitted, use libguile/guile.
# See test-suite/guile-test for documentation on GUILE-TEST-ARGS.
if [ x"$1" = x-i ] ; then
guile=$2
shift
shift
else
guile=libguile/guile
fi
if [ -f "$guile" -a -x "$guile" ] ; then
echo Testing $guile ...
else
echo ERROR: Cannot execute $guile
exit 1
fi
TEST_SUITE_DIR=@test_suite_dir@
export TEST_SUITE_DIR
exec $guile -e main -s $TEST_SUITE_DIR/guile-test "$@"
# test-guile ends here