3 OCAMLC
=${OCAMLC:-/usr/bin/ocamlc}
4 DIR
=`cd $(dirname "$0"); pwd`
8 echo "Failure at stage:" $1 >&2
17 cp $DIR/callgen.ml
$TMP
18 pushd $TMP > /dev
/null
23 test: caller.o callee.o
24 c99 -o \$@ caller.o callee.o
33 if ! $OCAMLC callgen.ml
-o callgen
37 failure
"abifuzz compilation"
45 $TMP/callgen
$TMP $1 $2
47 $TMP/callgen
-s $3 $TMP $1 $2
49 make -C $TMP test > /dev
/null || failure
"building"
50 $TMP/test || failure
"runtime"
54 echo "usage: abitest.sh [-callssa] [-callc] [-s SEED] [-n ITERATIONS]" >&2
90 TMP
=`mktemp -d abifuzz.XXXXXX`
96 once
$CALLER $CALLEE $SEED
101 echo "$n" |
grep "00$"