From 7f36069b11afb0cf55d9439306de9eeb03d9b082 Mon Sep 17 00:00:00 2001 From: Jiajie Chen Date: Wed, 27 Mar 2019 07:28:18 +0800 Subject: [PATCH] Change travis test arch from riscv64 to riscv32 --- .travis.yml | 2 +- tests/test.sh | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 7aa5337..c5b1228 100644 --- a/.travis.yml +++ b/.travis.yml @@ -103,6 +103,6 @@ before_script: script: - cd user && make sfsimg arch=$ARCH && cd .. - cd kernel && make build arch=$ARCH $OPTS && cd .. - - if [ $ARCH = riscv64 ]; then + - if [ $ARCH = riscv32 ]; then cd tests && ./test.sh && cd ..; fi diff --git a/tests/test.sh b/tests/test.sh index 8ffc9d3..1f1a8ca 100755 --- a/tests/test.sh +++ b/tests/test.sh @@ -1,10 +1,12 @@ #!/bin/bash +cd ../kernel && make sfsimg arch=riscv32 && cd ../tests for f in *.cmd do echo testing $f begin ( cd ../kernel - exec timeout 10s make runtest arch=riscv64 init=$(cat ../tests/$f) + make build arch=riscv32 init=$(cat ../tests/$f) + exec timeout 10s make justruntest arch=riscv32 init=$(cat ../tests/$f) ) & pid=$!