summaryrefslogtreecommitdiff
path: root/test/riscv
diff options
context:
space:
mode:
authorPrashanth Mundkur2018-10-23 16:05:47 -0700
committerPrashanth Mundkur2018-10-23 16:05:47 -0700
commit8ae06c742324160e2677f233a8e509eaa46b54c3 (patch)
tree68daa85a2b096c9f4c35ac8d683bc6d2e6d0830c /test/riscv
parent1e7b116842ea0e0ad76a70e2736398ef2211dde9 (diff)
RISC-V: switch c tests to use the C platform simulator; update .gitignore.
Diffstat (limited to 'test/riscv')
-rwxr-xr-xtest/riscv/run_tests.sh5
-rw-r--r--test/riscv/tests/.gitignore1
2 files changed, 3 insertions, 3 deletions
diff --git a/test/riscv/run_tests.sh b/test/riscv/run_tests.sh
index 512feabf..319504ad 100755
--- a/test/riscv/run_tests.sh
+++ b/test/riscv/run_tests.sh
@@ -67,7 +67,7 @@ for test in $DIR/tests/*.elf; do
fi
done
-if make -C $SAILDIR/riscv riscv_c;
+if make -C $SAILDIR/riscv riscv_sim;
then
green "Building RISCV specification to C" "ok"
else
@@ -75,8 +75,7 @@ else
fi
for test in $DIR/tests/*.elf; do
- $SAILDIR/sail -elf $test -o ${test%.elf}.bin 2> /dev/null;
- if timeout 5 $SAILDIR/riscv/riscv_c --binary=0x1000,reset_vec.bin --image=${test%.elf}.bin > ${test%.elf}.cout 2>&1 && grep -q SUCCESS ${test%.elf}.cout
+ if timeout 5 $SAILDIR/riscv/riscv_sim $test > ${test%.elf}.cout 2>&1 && grep -q SUCCESS ${test%.elf}.cout
then
green "$(basename $test)" "ok"
else
diff --git a/test/riscv/tests/.gitignore b/test/riscv/tests/.gitignore
index f47cb204..72a5e441 100644
--- a/test/riscv/tests/.gitignore
+++ b/test/riscv/tests/.gitignore
@@ -1 +1,2 @@
*.out
+*.cout