qasm/runtests.sh

32 lines
347 B
Bash
Raw Normal View History

2019-11-17 21:32:32 +00:00
#!/bin/bash
OUTDIR=./testout
TMPFILE=/tmp/qasm_out.txt
rm -f $TMPFILE
rm -rf $OUTDIR
mkdir -p $OUTDIR
SRC=`ls ./testdata`
for S in $SRC ; do
rm -f $TMPFILE
2019-11-17 22:26:06 +00:00
S1=$S
S1=${S1/.S/.bin}
S1=${S1/.s/.bin}
./qasm -o 0/$OUTDIR/$S1 ./testdata/$S >> $TMPFILE
2019-11-17 22:15:45 +00:00
2019-11-17 21:32:32 +00:00
R=?$
2019-11-17 22:26:06 +00:00
echo $S " " $S1
2019-11-17 21:32:32 +00:00
cat $TMPFILE | grep "End qASM assembly"
done
2019-11-17 22:15:45 +00:00
ls -l $OUTDIR
2019-11-17 21:32:32 +00:00