run-tests.sh 436 Bytes
Newer Older
Daniel Barlow's avatar
Daniel Barlow committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

# This needs to
# - read lisp forms one at a time from standard input
# - quit with exit status 0 on getting eof
# - quit with exit status >0 if an unhandled error occurs
LISP="sbcl --noprogrammer"

# file extension that compiling fiels with $LISP will use
FASL=fasl

rm *.$FASL || true
for i in *.script; 
do 
  rm *.$FASL || true
  if $LISP < $i ;then
    echo "$i passed"
  else
    echo "$i failed"
    exit 1
  fi
done