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

* box-module/Makefile.am (TESTS): New variable.

Create `box' on `make all'.

	* box-module/check.test, box-dynamic-module/check.test,
	* box-dynamic/check.test: New files.

	* box-dynamic/Makefile.am (libbox): Create box library on `make
	all'.
	(TESTS): New variable.

	* box/Makefile.am (TESTS): New variable.
	Create `box' program on `make all', use freshly built Guile for
	building.

	* box/check.test: New file.

	* modules/check.test, safe/check.test, scripts/check.test: Set
	GUILE_LOAD_PATH to make the tests run without installed Guile.
This commit is contained in:
Martin Grabmüller 2001-07-17 17:12:33 +00:00
parent 0004be0c48
commit 211e9d8a0d
12 changed files with 220 additions and 28 deletions

View file

@ -16,7 +16,7 @@ set -e
#
# simple-hello.scm
#
$guile -s simple-hello.scm > TMP
GUILE_LOAD_PATH=../.. $guile -s simple-hello.scm > TMP
cat <<EOF | diff -u - TMP
Hello, World!
EOF
@ -25,15 +25,15 @@ rm -f TMP
#
# hello
#
$guile -s hello > TMP
GUILE_LOAD_PATH=../.. $guile -s hello > TMP
echo "Hello, World!" | diff -u - TMP
rm -f TMP
$guile -s hello --version > TMP
GUILE_LOAD_PATH=../.. $guile -s hello --version > TMP
echo "hello 0.0.1" | diff -u - TMP
rm -f TMP
$guile -s hello --help > TMP
GUILE_LOAD_PATH=../.. $guile -s hello --help > TMP
cat <<EOF | diff -u - TMP
Usage: hello [options...]
--help, -h Show this usage information
@ -44,6 +44,6 @@ rm -f TMP
#
# fact
#
case `$guile -s fact 5` in 120) ;; *) echo $0: error: fact 5 ;; esac
case `GUILE_LOAD_PATH=../.. $guile -s fact 5` in 120) ;; *) echo $0: error: fact 5 ;; esac
# check.test ends here