mirror of
https://github.com/YosysHQ/sby.git
synced 2025-04-12 16:28:17 +00:00
Makefile: Rename run_tests to test, update help, use .PHONY
This commit is contained in:
parent
de00dc71db
commit
939e000036
12
Makefile
12
Makefile
|
@ -10,6 +10,8 @@ ifeq ($(OS), Windows_NT)
|
||||||
PYTHON = $(shell cygpath -w -m $(PREFIX)/bin/python3)
|
PYTHON = $(shell cygpath -w -m $(PREFIX)/bin/python3)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
.PHONY: help install ci test html clean
|
||||||
|
|
||||||
help:
|
help:
|
||||||
@echo ""
|
@echo ""
|
||||||
@echo "sudo make install"
|
@echo "sudo make install"
|
||||||
|
@ -19,7 +21,11 @@ help:
|
||||||
@echo " build documentation in docs/build/html/"
|
@echo " build documentation in docs/build/html/"
|
||||||
@echo ""
|
@echo ""
|
||||||
@echo "make test"
|
@echo "make test"
|
||||||
@echo " run examples"
|
@echo " run tests"
|
||||||
|
@echo ""
|
||||||
|
@echo "make ci"
|
||||||
|
@echo " run tests and check examples"
|
||||||
|
@echo " note: this requires a full Tabby CAD Suite or OSS CAD Suite install"
|
||||||
@echo ""
|
@echo ""
|
||||||
@echo "make clean"
|
@echo "make clean"
|
||||||
@echo " cleanup"
|
@echo " cleanup"
|
||||||
|
@ -47,7 +53,7 @@ ci: \
|
||||||
test_puzzles_djb2hash test_puzzles_pour853to4 test_puzzles_wolfgoatcabbage \
|
test_puzzles_djb2hash test_puzzles_pour853to4 test_puzzles_wolfgoatcabbage \
|
||||||
test_puzzles_primegen_primegen test_puzzles_primegen_primes_pass test_puzzles_primegen_primes_fail \
|
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_quickstart_demo test_quickstart_cover test_quickstart_prove test_quickstart_memory \
|
||||||
run_tests
|
test
|
||||||
if yosys -qp 'read -verific' 2> /dev/null; then set -x; \
|
if yosys -qp 'read -verific' 2> /dev/null; then set -x; \
|
||||||
YOSYS_NOVERIFIC=1 $(MAKE) ci; \
|
YOSYS_NOVERIFIC=1 $(MAKE) ci; \
|
||||||
fi
|
fi
|
||||||
|
@ -113,7 +119,7 @@ test_quickstart_prove:
|
||||||
test_quickstart_memory:
|
test_quickstart_memory:
|
||||||
cd docs/examples/quickstart && python3 ../../../sbysrc/sby.py -f memory.sby
|
cd docs/examples/quickstart && python3 ../../../sbysrc/sby.py -f memory.sby
|
||||||
|
|
||||||
run_tests:
|
test:
|
||||||
$(MAKE) -C tests test
|
$(MAKE) -C tests test
|
||||||
|
|
||||||
html:
|
html:
|
||||||
|
|
Loading…
Reference in a new issue