mikepaul-LuaJIT/dynasm/Examples/run.sh
Michael Munday 54199bd9bc Clean up test file and add script to run tests.
./run.sh will now execute the tests. It is a very simple setup
currently, and is limited to linux on s390x. Enough to get started
with.
2016-12-05 14:02:58 -05:00

14 lines
189 B
Bash
Executable File

#!/bin/bash
# set -x
# run test
lua ../dynasm.lua test_z_inst.c | gcc -std=gnu99 -Wall -Werror -g -x c -o test_z_inst -
./test_z_inst
ec=$?
# cleanup
rm -f ./test_z_inst
# exit
exit $ec