mirror of
https://github.com/YosysHQ/yosys.git
synced 2026-09-04 19:31:00 +02:00
CMake: Add wrapper for test-docs
Also skip calling `tail` on stubnets log outputs. Fix auxprog prefixes i.e. if we've set `YOSYS_PROGRAM_PREFIX=why`, we shouldn't be trying to call `build/yosys` when building docs (because if we've done a clean build it doesn't exist). I suspect this also affects tests, but I was working on docs when I noticed it.
This commit is contained in:
@@ -10,7 +10,6 @@ test: stubnets.so
|
||||
@$(YOSYS) -ql test1.log -m ./stubnets.so test.v -p "stubnets" >/dev/null 2>&1
|
||||
@$(YOSYS) -ql test2.log -m ./stubnets.so test.v -p "opt; stubnets" >/dev/null 2>&1
|
||||
@$(YOSYS) -ql test3.log -m ./stubnets.so test.v -p "techmap; opt; stubnets -report_bits" >/dev/null 2>&1
|
||||
@tail test1.log test2.log test3.log
|
||||
|
||||
stubnets.so: stubnets.cc
|
||||
@$(YOSYS_CONFIG) --exec --cxx --cxxflags --ldflags -o $@ -shared $^ --ldlibs >/dev/null 2>&1
|
||||
|
||||
Reference in New Issue
Block a user