mirror of
https://github.com/marketideas/qasm.git
synced 2024-12-27 15:29:30 +00:00
32 lines
347 B
Bash
Executable File
32 lines
347 B
Bash
Executable File
#!/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
|
|
|
|
S1=$S
|
|
S1=${S1/.S/.bin}
|
|
S1=${S1/.s/.bin}
|
|
|
|
./qasm -o 0/$OUTDIR/$S1 ./testdata/$S >> $TMPFILE
|
|
|
|
R=?$
|
|
echo $S " " $S1
|
|
cat $TMPFILE | grep "End qASM assembly"
|
|
|
|
done
|
|
ls -l $OUTDIR
|
|
|
|
|
|
|