mirror of
https://github.com/YosysHQ/sby.git
synced 2025-08-31 08:44:57 +00:00
Test property statuses after timeout
This commit is contained in:
parent
f399acc22d
commit
41bd894eff
2 changed files with 133 additions and 0 deletions
22
tests/statusdb/timeout.sh
Normal file
22
tests/statusdb/timeout.sh
Normal file
|
@ -0,0 +1,22 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
python3 $SBY_MAIN -f $SBY_FILE $TASK
|
||||
|
||||
STATUS_CSV=${WORKDIR}/status.csv
|
||||
python3 $SBY_MAIN -f $SBY_FILE $TASK --statuscsv | tee $STATUS_CSV
|
||||
|
||||
if [[ $TASK =~ "_cover" ]]; then
|
||||
wc -l $STATUS_CSV | grep -q '6'
|
||||
grep "COVER" $STATUS_CSV | wc -l | grep -q '5'
|
||||
elif [[ $TASK =~ "_fail" ]]; then
|
||||
wc -l $STATUS_CSV | grep -q '6'
|
||||
grep "ASSERT" $STATUS_CSV | wc -l | grep -q '5'
|
||||
grep "FAIL" $STATUS_CSV | wc -l | grep -q '1'
|
||||
else
|
||||
wc -l $STATUS_CSV | grep -q '5'
|
||||
grep "ASSERT" $STATUS_CSV | wc -l | grep -q '4'
|
||||
fi
|
||||
|
||||
if [[ $TASK == "smt_cover" ]]; then
|
||||
grep "PASS" $STATUS_CSV | wc -l | grep -q '4'
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue