|
|
@ -3,7 +3,7 @@
|
|
|
|
# Runs a test and checks the console output against known good output
|
|
|
|
# Runs a test and checks the console output against known good output
|
|
|
|
|
|
|
|
|
|
|
|
if [ $# -ne 1 ]; then
|
|
|
|
if [ $# -ne 1 ]; then
|
|
|
|
echo "Usage: run_test.sh <test>"
|
|
|
|
echo "Usage: run_test_console.sh <test>"
|
|
|
|
exit 1
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
@ -29,9 +29,6 @@ grep -v "Failed to bind debug socket" test1.out > test.out
|
|
|
|
|
|
|
|
|
|
|
|
cp ${MICROWATT_DIR}/tests/${TEST}.console_out exp.out
|
|
|
|
cp ${MICROWATT_DIR}/tests/${TEST}.console_out exp.out
|
|
|
|
|
|
|
|
|
|
|
|
cp test.out /tmp
|
|
|
|
|
|
|
|
cp exp.out /tmp
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
diff -q test.out exp.out && echo "$TEST PASS" && exit 0
|
|
|
|
diff -q test.out exp.out && echo "$TEST PASS" && exit 0
|
|
|
|
|
|
|
|
|
|
|
|
echo "$TEST FAIL ********"
|
|
|
|
echo "$TEST FAIL ********"
|
|
|
|