forked from starnakin/IronGOLEM
19 lines
322 B
Bash
Executable File
19 lines
322 B
Bash
Executable File
tester()
|
|
{
|
|
for val in $@
|
|
do
|
|
echo $val
|
|
cat src/*.🗿 tests/$val.🗿 tests/test.🗿 >tmp.🗿
|
|
golemc tmp.🗿 > tmp.asm
|
|
orgaasm tmp.asm tmp.rom
|
|
orgaemu tmp.rom
|
|
echo
|
|
done
|
|
}
|
|
if [ $# -eq 0 ]
|
|
then
|
|
tester $(ls tests/ | grep -v 'test.🗿' | sed 's/^tests\///; s/\.🗿$//' | tr '\n' ' ' );
|
|
else
|
|
tester $@;
|
|
fi
|