You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
370 B
19 lines
370 B
#!/usr/bin/env bash
|
|
|
|
set -x
|
|
|
|
TESTDIR="$1"
|
|
SPIKE_PATH="$2"
|
|
|
|
error=0
|
|
for testfile in "$TESTDIR"/*; do
|
|
bitness=$(basename "$testfile" .elf | grep -o "[0-9]\+")
|
|
if ! timeout --foreground 5s "$SPIKE_PATH" -l --log-commits --isa rv"$bitness"ifdc_zicsr "$testfile"
|
|
then
|
|
echo "TIMEOUT: $testfile"
|
|
error=1
|
|
else
|
|
echo "SUCCESS: $testfile"
|
|
fi
|
|
done
|
|
exit $error
|
|
|