File: runtest.sh

package info (click to toggle)
sigscheme 0.8.3-4
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 9,672 kB
  • ctags: 7,108
  • sloc: lisp: 37,498; ansic: 30,947; sh: 9,257; makefile: 791; asm: 333; ruby: 288
file content (49 lines) | stat: -rwxr-xr-x 849 bytes parent folder | download | duplicates (14)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
#!/bin/sh

SSCM="src/sscm --system-load-path $PWD/lib"

if test "x$1" != "x"; then
  while test "$#" -ne 0; do
    $SSCM "$1"
    shift
  done
  exit 0
fi

run_test () {
    echo "Running test $1..."
    $SSCM $1
    echo
}

echo "[ Run single ported tests ]"
for test in test/stone-srfi1.scm test/oleg-srfi2.scm test/panu-srfi69.scm #test/r5rs_pitfall.scm
do
  run_test $test
done

echo "[ Run tests ported from SCM]"
for test in test/scm-*.scm
do
  run_test $test
done

echo "[ Run tests ported from Bigloo]"
for test in test/bigloo-*.scm
do
  run_test $test
done

echo "[ Run tests ported from Gauche ]"
for test in test/gauche-*.scm
do
  run_test $test
done

echo "[ Run SigScheme tests ]"
for test in `ls test/test-*.scm | egrep -v 'test-tail-rec\.scm'`
do
  run_test $test
done

echo "Run also runtest-tail-rec.sh for proper tail recursions."