run-tests.sh 515 Bytes
Newer Older
Daniel Barlow's avatar
Daniel Barlow committed
1 2 3 4 5 6
#!/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
Daniel Barlow's avatar
Daniel Barlow committed
7
#LISP="/usr/local/bin/lisp -batch "
Daniel Barlow's avatar
Daniel Barlow committed
8 9
LISP="sbcl --noprogrammer"

Daniel Barlow's avatar
Daniel Barlow committed
10
# file extension that $LISP uses for compiled files
Daniel Barlow's avatar
Daniel Barlow committed
11
FASL=fasl
Daniel Barlow's avatar
Daniel Barlow committed
12
#FASL=axpf
Daniel Barlow's avatar
Daniel Barlow committed
13 14 15 16 17 18 19 20 21 22 23 24

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
Daniel Barlow's avatar
Daniel Barlow committed
25
echo "All tests apparently successful"