From f34b2488e4d61079b902c3961e831e55a6181e9b Mon Sep 17 00:00:00 2001 From: Michael Neuling Date: Thu, 28 Jul 2022 14:47:51 +1000 Subject: [PATCH] tests: Minor script cleanups Signed-off-by: Michael Neuling --- scripts/run_test.sh | 3 --- scripts/run_test_console.sh | 5 +---- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/scripts/run_test.sh b/scripts/run_test.sh index 185c3a6..1a032ba 100755 --- a/scripts/run_test.sh +++ b/scripts/run_test.sh @@ -25,9 +25,6 @@ ${MICROWATT_DIR}/core_tb | sed 's/.*: //' | egrep '^(GPR[0-9]|LR |CTR |XER |CR [ grep -v "^$" ${MICROWATT_DIR}/tests/${TEST}.out | sort | grep -v GPR31 > exp.out -cp test.out /tmp -cp exp.out /tmp - diff -q test.out exp.out && echo "$TEST PASS" && exit 0 echo "$TEST FAIL ********" diff --git a/scripts/run_test_console.sh b/scripts/run_test_console.sh index 1aaa2bb..01a89ec 100755 --- a/scripts/run_test_console.sh +++ b/scripts/run_test_console.sh @@ -3,7 +3,7 @@ # Runs a test and checks the console output against known good output if [ $# -ne 1 ]; then - echo "Usage: run_test.sh " + echo "Usage: run_test_console.sh " exit 1 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 test.out /tmp -cp exp.out /tmp - diff -q test.out exp.out && echo "$TEST PASS" && exit 0 echo "$TEST FAIL ********" -- 2.30.2