diff --git a/examples/scripts/check.test b/examples/scripts/check.test new file mode 100755 index 000000000..1b4c7da41 --- /dev/null +++ b/examples/scripts/check.test @@ -0,0 +1,41 @@ +#!/bin/sh + +# must be run from this directory +guile=${GUILE-../../libguile/guile} + +set -e + +# +# simple-hello.scm +# +$guile -s simple-hello.scm > TMP +cat < TMP +echo "Hello, World!" | diff -u - TMP +rm -f TMP + +$guile -s hello --version > TMP +echo "hello 0.0.1" | diff -u - TMP +rm -f TMP + +$guile -s hello --help > TMP +cat <