aboutsummaryrefslogtreecommitdiff
path: root/ci-tests/test-spike
diff options
context:
space:
mode:
Diffstat (limited to 'ci-tests/test-spike')
-rwxr-xr-xci-tests/test-spike8
1 files changed, 8 insertions, 0 deletions
diff --git a/ci-tests/test-spike b/ci-tests/test-spike
index 2da04ff..fa9bbdd 100755
--- a/ci-tests/test-spike
+++ b/ci-tests/test-spike
@@ -12,3 +12,11 @@ make install
# check that help message prints without error
install/bin/spike -h
+
+
+# run a program and check for correct output
+mkdir run
+cd run
+wget https://github.com/riscv-software-src/riscv-isa-sim/releases/download/dummy-tag-for-ci-storage/spike-ci.tar
+tar xf spike-ci.tar
+time ../install/bin/spike --isa=rv64gc pk hello | grep "Hello, world! Pi is approximately 3.141588."