3
# must be run from this directory
4
guile=${GUILE-../../libguile/guile}
5
if [ -x $guile ] ; then
8
echo could not find guile interpreter.
9
echo '(are you running this script from' `dirname $0` '?)'
10
echo GUILE env var: ${GUILE-not set}
14
if test "X$srcdir" = X; then
23
$guile -s $srcdir/simple-hello.scm > TMP
24
cat <<EOF | diff -u - TMP
32
$guile -s $srcdir/hello > TMP
33
echo "Hello, World!" | diff -u - TMP
36
$guile -s $srcdir/hello --version > TMP
37
echo "hello 0.0.1" | diff -u - TMP
40
$guile -s $srcdir/hello --help > TMP
41
cat <<EOF | diff -u - TMP
42
Usage: hello [options...]
43
--help, -h Show this usage information
44
--version, -v Show version information
51
case `$guile -s $srcdir/fact 5` in 120) ;; *) echo $0: error: fact 5 ;; esac
53
# check.test ends here