From b90477495c5857195d41fa44747b3394e5ba9cd3 Mon Sep 17 00:00:00 2001 From: Kip Macsai-Goren Date: Mon, 14 Feb 2022 02:21:11 +0000 Subject: [PATCH] updated verify to only use comments with "#" --- tests/wally-riscv-arch-test/riscv-test-env/verify.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/wally-riscv-arch-test/riscv-test-env/verify.sh b/tests/wally-riscv-arch-test/riscv-test-env/verify.sh index 543854982..6a809b730 100755 --- a/tests/wally-riscv-arch-test/riscv-test-env/verify.sh +++ b/tests/wally-riscv-arch-test/riscv-test-env/verify.sh @@ -28,15 +28,15 @@ do echo -e "Check $(printf %-24s ${stub}) \e[33m ... IGNORE \e[39m" continue fi - # KMG: changed diff snippet to a grep that will strip comments with '//' and '#' out of the reference file - diff --ignore-case --ignore-trailing-space --strip-trailing-cr <(grep -o '^[^//#]*' ${ref}) ${sig} &> /dev/null + # KMG: changed diff snippet to a grep that will strip comments with '#' out of the reference file + diff --ignore-case --ignore-trailing-space --strip-trailing-cr <(grep -o '^[^#]*' ${ref}) ${sig} &> /dev/null if [ $? == 0 ] then echo -e "\e[32m ... OK \e[39m" else echo -e "\e[31m ... FAIL \e[39m" FAIL=$((${FAIL} + 1)) - sdiff ${ref} ${sig} > ${dif} + sdiff <(grep -o '^[^#]*' ${ref}) ${sig} > ${dif} fi done