mirror of
https://github.com/YosysHQ/sby.git
synced 2025-04-23 21:35:31 +00:00
Use the test Makefile for all examples
* Rename and move sbysrc/demo[123].sby to docs/examples/demos * Make them use multiple tasks for multiple engines * Scan docs/examples for sby files for make test * `make ci` is now `NOSKIP` by default * Skip scripts using `verific` w/o yosys verific support * This does not fail even with NOSKIP set
This commit is contained in:
parent
1d21513a47
commit
499371fd39
18 changed files with 77 additions and 92 deletions
67
Makefile
67
Makefile
|
@ -21,10 +21,10 @@ help:
|
|||
@echo " build documentation in docs/build/html/"
|
||||
@echo ""
|
||||
@echo "make test"
|
||||
@echo " run tests"
|
||||
@echo " run tests, skipping tests with missing dependencies"
|
||||
@echo ""
|
||||
@echo "make ci"
|
||||
@echo " run tests and check examples"
|
||||
@echo " run all tests, failing tests with missing dependencies"
|
||||
@echo " note: this requires a full Tabby CAD Suite or OSS CAD Suite install"
|
||||
@echo ""
|
||||
@echo "make clean"
|
||||
|
@ -50,15 +50,8 @@ endif
|
|||
ci: check_cad_suite
|
||||
@$(MAKE) run_ci
|
||||
|
||||
run_ci: \
|
||||
test_demo1 test_demo2 test_demo3 \
|
||||
test_abstract_abstr test_abstract_props \
|
||||
test_demos_fib_cover test_demos_fib_prove test_demos_fib_live \
|
||||
test_multiclk_dpmem \
|
||||
test_puzzles_djb2hash test_puzzles_pour853to4 test_puzzles_wolfgoatcabbage \
|
||||
test_puzzles_primegen_primegen test_puzzles_primegen_primes_pass test_puzzles_primegen_primes_fail \
|
||||
test_quickstart_demo test_quickstart_cover test_quickstart_prove test_quickstart_memory \
|
||||
test
|
||||
run_ci:
|
||||
$(MAKE) test NOSKIP=1
|
||||
if yosys -qp 'read -verific' 2> /dev/null; then set -x; \
|
||||
YOSYS_NOVERIFIC=1 $(MAKE) run_ci; \
|
||||
fi
|
||||
|
@ -79,58 +72,6 @@ test_demo2:
|
|||
test_demo3:
|
||||
cd sbysrc && python3 sby.py -f demo3.sby
|
||||
|
||||
test_abstract_abstr:
|
||||
@if yosys -qp 'read -verific' 2> /dev/null; then set -x; \
|
||||
cd docs/examples/abstract && python3 ../../../sbysrc/sby.py -f abstr.sby; \
|
||||
else echo "skipping $@"; fi
|
||||
|
||||
test_abstract_props:
|
||||
if yosys -qp 'read -verific' 2> /dev/null; then set -x; \
|
||||
cd docs/examples/abstract && python3 ../../../sbysrc/sby.py -f props.sby; \
|
||||
else echo "skipping $@"; fi
|
||||
|
||||
test_demos_fib_cover:
|
||||
cd docs/examples/demos && python3 ../../../sbysrc/sby.py -f fib.sby cover
|
||||
|
||||
test_demos_fib_prove:
|
||||
cd docs/examples/demos && python3 ../../../sbysrc/sby.py -f fib.sby prove
|
||||
|
||||
test_demos_fib_live:
|
||||
cd docs/examples/demos && python3 ../../../sbysrc/sby.py -f fib.sby live
|
||||
|
||||
test_multiclk_dpmem:
|
||||
cd docs/examples/multiclk && python3 ../../../sbysrc/sby.py -f dpmem.sby
|
||||
|
||||
test_puzzles_djb2hash:
|
||||
cd docs/examples/puzzles && python3 ../../../sbysrc/sby.py -f djb2hash.sby
|
||||
|
||||
test_puzzles_pour853to4:
|
||||
cd docs/examples/puzzles && python3 ../../../sbysrc/sby.py -f pour_853_to_4.sby
|
||||
|
||||
test_puzzles_wolfgoatcabbage:
|
||||
cd docs/examples/puzzles && python3 ../../../sbysrc/sby.py -f wolf_goat_cabbage.sby
|
||||
|
||||
test_puzzles_primegen_primegen:
|
||||
cd docs/examples/puzzles && python3 ../../../sbysrc/sby.py -f primegen.sby primegen
|
||||
|
||||
test_puzzles_primegen_primes_pass:
|
||||
cd docs/examples/puzzles && python3 ../../../sbysrc/sby.py -f primegen.sby primes_pass
|
||||
|
||||
test_puzzles_primegen_primes_fail:
|
||||
cd docs/examples/puzzles && python3 ../../../sbysrc/sby.py -f primegen.sby primes_fail
|
||||
|
||||
test_quickstart_demo:
|
||||
cd docs/examples/quickstart && python3 ../../../sbysrc/sby.py -f demo.sby
|
||||
|
||||
test_quickstart_cover:
|
||||
cd docs/examples/quickstart && python3 ../../../sbysrc/sby.py -f cover.sby
|
||||
|
||||
test_quickstart_prove:
|
||||
cd docs/examples/quickstart && python3 ../../../sbysrc/sby.py -f prove.sby
|
||||
|
||||
test_quickstart_memory:
|
||||
cd docs/examples/quickstart && python3 ../../../sbysrc/sby.py -f memory.sby
|
||||
|
||||
test:
|
||||
$(MAKE) -C tests test
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue