From 33f6110488ea22182f47a7d2a65655dcf8ebda78 Mon Sep 17 00:00:00 2001 From: MichaelJSr Date: Sun, 3 Nov 2024 15:20:29 -0800 Subject: [PATCH] Uncomment out run-test line for copying over vector testcases --- tests/riscv/riscv-vector-tests/run-test.sh.in | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/riscv/riscv-vector-tests/run-test.sh.in b/tests/riscv/riscv-vector-tests/run-test.sh.in index a225997a7..73c93b7d7 100755 --- a/tests/riscv/riscv-vector-tests/run-test.sh.in +++ b/tests/riscv/riscv-vector-tests/run-test.sh.in @@ -46,7 +46,11 @@ fi SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) RESTORE_PREV_DIR=$(pwd) +if [ ! -d "$SCRIPT_DIR/testcases" ]; then + mkdir -p "$SCRIPT_DIR/testcases/v$VLEN"x"$XLEN" +fi cd $SCRIPT_DIR/testcases/v$VLEN"x"$XLEN + passed=0 failed=0 selected=0 @@ -54,7 +58,7 @@ selected=0 rm *".ddr4.log" for testcase in ${testcases[@]}; do rm "$testcase"*.elf "$testcase"*.bin "$testcase"*.dump "$testcase"*.log - # cp -f $SCRIPT_DIR/../../../../../third_party/riscv-vector-tests/out/v"$VLEN"x"$XLEN"machine/bin/stage2/"$testcase"* . + cp -f $SCRIPT_DIR/../../../third_party/riscv-vector-tests/out/v"$VLEN"x"$XLEN"machine/bin/stage2/"$testcase"* . done # count all available testcases, exclude *.elf, *.bin, *.dump, *.log to prevent double counting