3 # Runs a test and checks the console output against known good output
6 echo "Usage: run_test.sh <test>"
24 cp ${MICROWATT_DIR}/tests
/${TEST}.bin main_ram.bin
26 ${MICROWATT_DIR}/core_tb
> /dev
/null
2> test1.out || true
28 grep -v "Failed to bind debug socket" test1.out
> test.out
30 cp ${MICROWATT_DIR}/tests
/${TEST}.console_out exp.out
35 diff -q test.out exp.out
&& echo "$TEST PASS" && exit 0
37 echo "$TEST FAIL ********"