mirror of
https://github.com/rcore-os/rCore.git
synced 2024-11-23 08:26:17 +04:00
20 lines
461 B
Bash
Executable File
20 lines
461 B
Bash
Executable File
#!/bin/bash
|
|
cd ../kernel && make sfsimg arch=riscv32 && cd ../tests
|
|
for f in *.cmd
|
|
do
|
|
echo testing $f begin
|
|
(
|
|
cd ../kernel
|
|
make build arch=riscv32 init=$(cat ../tests/$f)
|
|
exec timeout 10s make justruntest arch=riscv32 init=$(cat ../tests/$f)
|
|
) &
|
|
|
|
pid=$!
|
|
|
|
wait $pid
|
|
|
|
diff -I 'bbl loader' -I 'Hello RISCV! in hart' -u ${f%.cmd}.out stdout || { echo 'testing failed for' $f; exit 1; }
|
|
|
|
echo testing $f pass
|
|
done
|