mirror of
https://github.com/YosysHQ/sby.git
synced 2025-04-22 21:05:30 +00:00
tests: Do not run the same SBY task multiple times in parallel
This commit is contained in:
parent
83a1aa23c8
commit
90616c280b
3 changed files with 20 additions and 14 deletions
|
@ -1,13 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
python3 $SBY_MAIN -f fifo.sby basic cover noverific
|
||||
|
||||
if [[ $? -ne 0 ]] ; then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
python3 $SBY_MAIN -f fifo.sby nofullskip
|
||||
|
||||
if [[ $? -ne 2 ]] ; then
|
||||
exit 1
|
||||
fi
|
18
docs/examples/fifo/fifo_extra_tests.sby
Normal file
18
docs/examples/fifo/fifo_extra_tests.sby
Normal file
|
@ -0,0 +1,18 @@
|
|||
--pycode-begin--
|
||||
# This is for our test infrastructure and not part of the example
|
||||
|
||||
# Read fifo.sby and patch it on the fly:
|
||||
for line in open("fifo.sby"):
|
||||
line = line.rstrip()
|
||||
|
||||
# change the tasks to run as tests
|
||||
if line.endswith(": default"):
|
||||
line = "nofullskip noverific : default"
|
||||
|
||||
output(line)
|
||||
|
||||
# add expect fail to the failing tasks
|
||||
if line == "[options]":
|
||||
output("nofullskip: expect fail")
|
||||
|
||||
--pycode-end--
|
Loading…
Add table
Add a link
Reference in a new issue