3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-04-07 09:55:20 +00:00

Add "make ystests"

Signed-off-by: Clifford Wolf <clifford@clifford.at>
This commit is contained in:
Clifford Wolf 2018-08-30 12:26:26 +02:00
parent d36d11936f
commit 0b7a18470b
3 changed files with 10 additions and 0 deletions

1
.gitignore vendored
View file

@ -34,3 +34,4 @@
/libyosys.so /libyosys.so
/tests/unit/bintest/ /tests/unit/bintest/
/tests/unit/objtest/ /tests/unit/objtest/
/tests/ystests

View file

@ -373,6 +373,7 @@ Finally run all tests with "make config-{clang,gcc,gcc-4.8}":
cd ~yosys cd ~yosys
make clean make clean
make test make test
make ystests
make vloghtb make vloghtb
make install make install

View file

@ -585,6 +585,14 @@ vloghtb: $(TARGETS) $(EXTRA_TARGETS)
@echo " Passed \"make vloghtb\"." @echo " Passed \"make vloghtb\"."
@echo "" @echo ""
ystests: $(TARGETS) $(EXTRA_TARGETS)
rm -rf tests/ystests
git clone https://github.com/YosysHQ/yosys-tests.git tests/ystests
+PATH="$$PWD:$$PATH" cd tests/ystests && $(MAKE)
@echo ""
@echo " Finished \"make ystests\"."
@echo ""
# Unit test # Unit test
unit-test: libyosys.so unit-test: libyosys.so
@$(MAKE) -C $(UNITESTPATH) CXX="$(CXX)" CPPFLAGS="$(CPPFLAGS)" \ @$(MAKE) -C $(UNITESTPATH) CXX="$(CXX)" CPPFLAGS="$(CPPFLAGS)" \