aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorPrashanth Mundkur <prashanth.mundkur@gmail.com>2019-11-27 13:05:42 -0800
committerPrashanth Mundkur <prashanth.mundkur@gmail.com>2019-11-27 13:05:53 -0800
commite0d4ba61a2750d7048db775ed98f4b7976417a09 (patch)
tree41580f64bbd77837d4425fdc40e69421ba56ce00 /test
parent52cb31d298f8e53bcb719c5c26bda0f4523082b1 (diff)
downloadsail-riscv-e0d4ba61a2750d7048db775ed98f4b7976417a09.zip
sail-riscv-e0d4ba61a2750d7048db775ed98f4b7976417a09.tar.gz
sail-riscv-e0d4ba61a2750d7048db775ed98f4b7976417a09.tar.bz2
Add RV32 non-double FP tests to the FP test script.
Diffstat (limited to 'test')
-rwxr-xr-xtest/run_fp_tests.sh17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/run_fp_tests.sh b/test/run_fp_tests.sh
index 873d8a1..70ae00f 100755
--- a/test/run_fp_tests.sh
+++ b/test/run_fp_tests.sh
@@ -68,4 +68,21 @@ for test in $DIR/riscv-tests/rv64u{f,d}*.elf $DIR/riscv-tests/rv64mi-p-csr.elf;
done
finish_suite "64-bit RISCV C tests"
+
+if ARCH=RV32 make c_emulator/riscv_sim_RV32;
+then
+ green "Building 32-bit RISCV C emulator" "ok"
+else
+ red "Building 32-bit RISCV C emulator" "fail"
+fi
+for test in $DIR/riscv-tests/rv32uf*.elf $DIR/riscv-tests/rv32mi-p-csr.elf; do
+ if timeout 5 $RISCVDIR/c_emulator/riscv_sim_RV32 -p $test > ${test%.elf}.cout 2>&1 && grep -q SUCCESS ${test%.elf}.cout
+ then
+ green "C-32 $(basename $test)" "ok"
+ else
+ red "C-32 $(basename $test)" "fail"
+ fi
+done
+finish_suite "32-bit RISCV C tests"
+
printf "</testsuites>\n" >> $DIR/tests.xml