blob: 0655a1126d57717788124317ef1753e6521574bc (
plain) (
tree)
|
|
#!/bin/sh
TESTDIR=${PWD}/test
pushd src >/dev/null
python __init__.py < ${TESTDIR}/$1.t > ${TESTDIR}/$1.S
pushd emu >/dev/null
make
./riscas ${TESTDIR}/$1.S ${TESTDIR}/$1.bin
./risci -d ${TESTDIR}/$1.bin
ret=$?
popd >/dev/null
popd >/dev/null
exit ${ret}
|