@@ -842,95 +842,84 @@ else
842842ABCOPT =""
843843endif
844844
845-
846- # ##########################
847- # TESTS THAT GENERATE .MK #
848- # ##########################
849- PARALLEL_TEST_DIRS =
850- PARALLEL_TEST_DIRS += tests/arch/anlogic
851- PARALLEL_TEST_DIRS += tests/arch/ecp5
852- PARALLEL_TEST_DIRS += tests/arch/efinix
853- PARALLEL_TEST_DIRS += tests/arch/gatemate
854- PARALLEL_TEST_DIRS += tests/arch/gowin
855- PARALLEL_TEST_DIRS += tests/arch/ice40
856- PARALLEL_TEST_DIRS += tests/arch/intel_alm
857- PARALLEL_TEST_DIRS += tests/arch/machxo2
858- PARALLEL_TEST_DIRS += tests/arch/microchip
859- PARALLEL_TEST_DIRS += tests/arch/nanoxplore
860- PARALLEL_TEST_DIRS += tests/arch/nexus
861- PARALLEL_TEST_DIRS += tests/arch/quicklogic/pp3
862- PARALLEL_TEST_DIRS += tests/arch/quicklogic/qlf_k6n10f
863- PARALLEL_TEST_DIRS += tests/arch/xilinx
864- PARALLEL_TEST_DIRS += tests/opt
865- PARALLEL_TEST_DIRS += tests/sat
866- PARALLEL_TEST_DIRS += tests/sim
867- PARALLEL_TEST_DIRS += tests/svtypes
868- PARALLEL_TEST_DIRS += tests/techmap
869- PARALLEL_TEST_DIRS += tests/various
870- PARALLEL_TEST_DIRS += tests/verific
871- PARALLEL_TEST_DIRS += tests/verilog
872- # FIXME: Removed YOSYS_NOVERIFIC - temporarily?
873- # PARALLEL_TEST_DIRS += verific/extensions/tests/passing
874-
875- # #################################
876- # TESTS THAT DO NOT GENERATE .MK #
877- # #################################
878- SEED_TEST_DIRS =
879- SEED_TEST_DIRS += tests/simple
880- SEED_TEST_DIRS += tests/simple_abc9
881- SEED_TEST_DIRS += tests/hana
882- SEED_TEST_DIRS += tests/asicworld
883- # TODO dig up why is this commented out
884- # SEED_TEST_DIRS += tests/realmath
885- SEED_TEST_DIRS += tests/share
886- SEED_TEST_DIRS += tests/opt_share
887- SEED_TEST_DIRS += tests/fsm
888- SEED_TEST_DIRS += tests/memlib
889- SEED_TEST_DIRS += tests/bram
890- SEED_TEST_DIRS += tests/svinterfaces
891- SEED_TEST_DIRS += tests/xprop
892- SEED_TEST_DIRS += tests/select
893- SEED_TEST_DIRS += tests/proc
894- SEED_TEST_DIRS += tests/blif
895- SEED_TEST_DIRS += tests/arch
896- SEED_TEST_DIRS += tests/rpc
897- SEED_TEST_DIRS += tests/memfile
898- SEED_TEST_DIRS += tests/fmt
899- SEED_TEST_DIRS += tests/cxxrtl
845+ # Tests that generate .mk with tests/gen-tests-makefile.sh
846+ MK_TEST_DIRS =
847+ MK_TEST_DIRS += tests/arch/anlogic
848+ MK_TEST_DIRS += tests/arch/ecp5
849+ MK_TEST_DIRS += tests/arch/efinix
850+ MK_TEST_DIRS += tests/arch/gatemate
851+ MK_TEST_DIRS += tests/arch/gowin
852+ MK_TEST_DIRS += tests/arch/ice40
853+ MK_TEST_DIRS += tests/arch/intel_alm
854+ MK_TEST_DIRS += tests/arch/machxo2
855+ MK_TEST_DIRS += tests/arch/microchip
856+ MK_TEST_DIRS += tests/arch/nanoxplore
857+ MK_TEST_DIRS += tests/arch/nexus
858+ MK_TEST_DIRS += tests/arch/quicklogic/pp3
859+ MK_TEST_DIRS += tests/arch/quicklogic/qlf_k6n10f
860+ MK_TEST_DIRS += tests/arch/xilinx
861+ MK_TEST_DIRS += tests/opt
862+ MK_TEST_DIRS += tests/sat
863+ MK_TEST_DIRS += tests/sim
864+ MK_TEST_DIRS += tests/svtypes
865+ MK_TEST_DIRS += tests/techmap
866+ MK_TEST_DIRS += tests/various
867+ ifeq ($(ENABLE_VERIFIC ) ,1)
868+ ifneq ($(YOSYS_NOVERIFIC ) ,1)
869+ MK_TEST_DIRS += tests/verific
870+ endif
871+ endif
872+ MK_TEST_DIRS += tests/verilog
873+
874+ # Tests that don't generate .mk
875+ SH_TEST_DIRS =
876+ SH_TEST_DIRS += tests/simple
877+ SH_TEST_DIRS += tests/simple_abc9
878+ SH_TEST_DIRS += tests/hana
879+ SH_TEST_DIRS += tests/asicworld
880+ # SH_TEST_DIRS += tests/realmath
881+ SH_TEST_DIRS += tests/share
882+ SH_TEST_DIRS += tests/opt_share
883+ SH_TEST_DIRS += tests/fsm
884+ SH_TEST_DIRS += tests/memlib
885+ SH_TEST_DIRS += tests/bram
886+ SH_TEST_DIRS += tests/svinterfaces
887+ SH_TEST_DIRS += tests/xprop
888+ SH_TEST_DIRS += tests/select
889+ SH_TEST_DIRS += tests/proc
890+ SH_TEST_DIRS += tests/blif
891+ SH_TEST_DIRS += tests/arch
892+ SH_TEST_DIRS += tests/rpc
893+ SH_TEST_DIRS += tests/memfile
894+ SH_TEST_DIRS += tests/fmt
895+ SH_TEST_DIRS += tests/cxxrtl
900896ifeq ($(ENABLE_FUNCTIONAL_TESTS ) ,1)
901- SEED_TEST_DIRS += tests/functional
897+ SH_TEST_DIRS += tests/functional
902898endif
903899
904- # ###############################
905- # TESTS THAT NEED SPECIAL ARGS #
906- # ###############################
907-
908- ABC_TEST_DIRS =
909- ABC_TEST_DIRS += tests/memories
910- ABC_TEST_DIRS += tests/aiger
911-
912- # ###########
913- # THE GUTS #
914- # ###########
900+ # Tests that don't generate .mk and need special args
901+ SH_ABC_TEST_DIRS =
902+ SH_ABC_TEST_DIRS += tests/memories
903+ SH_ABC_TEST_DIRS += tests/aiger
915904
916905# seed-tests/ is a dummy string, not a directory
917906.PHONY : seed-tests
918- seed-tests : $(SEED_TEST_DIRS :%=seed-tests/% )
907+ seed-tests : $(SH_TEST_DIRS :%=seed-tests/% )
919908.PHONY : seed-tests/%
920909seed-tests/% : % /run-test.sh $(TARGETS ) $(EXTRA_TARGETS )
921910 +cd $* && bash run-test.sh $(SEEDOPT )
922911 +@echo " ...passed tests in $* "
923912
924913# abcopt-tests/ is a dummy string, not a directory
925914.PHONY : abcopt-tests
926- abcopt-tests : $(ABC_TEST_DIRS :%=abcopt-tests/% )
915+ abcopt-tests : $(SH_ABC_TEST_DIRS :%=abcopt-tests/% )
927916abcopt-tests/% : % /run-test.sh $(TARGETS ) $(EXTRA_TARGETS )
928917 +cd $* && bash run-test.sh $(ABCOPT ) $(SEEDOPT )
929918 +@echo " ...passed tests in $* "
930919
931920# makefile-tests/ is a dummy string, not a directory
932921.PHONY : makefile-tests
933- makefile-tests : $(PARALLEL_TEST_DIRS :%=makefile-tests/% )
922+ makefile-tests : $(MK_TEST_DIRS :%=makefile-tests/% )
934923# this target actually emits .mk files
935924% .mk :
936925 +cd $(dir $* ) && bash run-test.sh
@@ -942,6 +931,11 @@ makefile-tests/%: %/run-test.mk $(TARGETS) $(EXTRA_TARGETS)
942931test : makefile-tests abcopt-tests seed-tests
943932 @echo " "
944933 @echo " Passed \" make test\" ."
934+ ifeq ($(ENABLE_VERIFIC ) ,1)
935+ ifeq ($(YOSYS_NOVERIFIC ) ,1)
936+ @echo " Ran tests without verific support due to YOSYS_NOVERIFIC=1."
937+ endif
938+ endif
945939 @echo ""
946940
947941VALGRIND ?= valgrind --error-exitcode=1 --leak-check=full --show-reachable=yes --errors-for-leak-kinds=all
0 commit comments