From 5d8c060e4ff0b1104834e73c03e75f70416f0eb9 Mon Sep 17 00:00:00 2001 From: David Harris Date: Wed, 5 Jun 2024 13:41:20 -0700 Subject: [PATCH 1/2] Fixed testcount to not make spurious warnings about src --- bin/testcount.pl | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/bin/testcount.pl b/bin/testcount.pl index 139902dd3..86e56da4c 100755 --- a/bin/testcount.pl +++ b/bin/testcount.pl @@ -30,10 +30,14 @@ ## and limitations under the License. ################################################################################################ -for dir in `ls ${WALLY}/addins/riscv-arch-test/riscv-test-suite/rv*/*` +for dir1 in `ls ${WALLY}/addins/riscv-arch-test/riscv-test-suite/rv*/*` do - dir=$(echo $dir | cut -d':' -f1) + dir=$(echo $dir1 | cut -d':' -f1) echo $dir + if [ $dir == "src" ] + then + continue + fi for fn in `ls $dir/src/*.S` do result=`grep 'inst_' $fn | tail -n 1` From 1af670d5be7501bc799a49dca5f430f2ad6b5946 Mon Sep 17 00:00:00 2001 From: David Harris Date: Wed, 5 Jun 2024 13:42:29 -0700 Subject: [PATCH 2/2] Fixed testcount to not make spurious warnings about src --- bin/testcount.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/testcount.pl b/bin/testcount.pl index 86e56da4c..7ac75d676 100755 --- a/bin/testcount.pl +++ b/bin/testcount.pl @@ -30,9 +30,9 @@ ## and limitations under the License. ################################################################################################ -for dir1 in `ls ${WALLY}/addins/riscv-arch-test/riscv-test-suite/rv*/*` +for dir in `ls ${WALLY}/addins/riscv-arch-test/riscv-test-suite/rv*/*` do - dir=$(echo $dir1 | cut -d':' -f1) + dir=$(echo $dir | cut -d':' -f1) echo $dir if [ $dir == "src" ] then