summaryrefslogtreecommitdiffstats
path: root/compiler
blob: 650003236899432b6c63c895c563b4871184e86b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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 ${TESTDIR}/$1.bin
ret=$?
popd >/dev/null

popd >/dev/null

exit ${ret}