This is the mail archive of the guile@sourceware.cygnus.com mailing list for the Guile project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

test-guile script


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]