mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-05-03 13:20:26 +02:00
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.
23 lines
308 B
Bash
Executable file
23 lines
308 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# must be run from this directory
|
|
guile=${GUILE-../../libguile/guile}
|
|
|
|
set -e
|
|
|
|
#
|
|
# ./main test
|
|
#
|
|
GUILE_LOAD_PATH=../.. $guile -s main > TMP
|
|
cat <<EOF | diff -u - TMP
|
|
module-0 foo
|
|
module-0 bar
|
|
module-1 foo
|
|
module-1 bar
|
|
module-2 braz
|
|
module-2 braz
|
|
module-2 foo
|
|
EOF
|
|
rm -f TMP
|
|
|
|
# check.test ends here
|