summaryrefslogtreecommitdiff
path: root/examples/modules/check.test
blob: f7a789b697c8a4921fdc706941b60379e43230e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/sh

# must be run from this directory
guile=${GUILE-../../libguile/guile}

if test "X$srcdir" = X; then
    srcdir=.
fi

set -e

#
# ./main test
#
$guile -s $srcdir/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