Skip SystemC tests if not installed.

This commit is contained in:
Wilson Snyder 2010-02-08 20:51:43 -05:00
parent 0e8772290d
commit 63f30492be
3 changed files with 23 additions and 0 deletions

View File

@ -5,6 +5,8 @@ indicates the contributor was also the author of the fix; Thanks!
* Verilator 3.80*** * Verilator 3.80***
**** Skip SystemC tests if not installed. [Iztok Jeras]
**** Fix make uninstall, bug216. [Iztok Jeras] **** Fix make uninstall, bug216. [Iztok Jeras]
* Verilator 3.800 2010/02/07 * Verilator 3.800 2010/02/07

View File

@ -24,8 +24,13 @@ include $(VERILATOR_ROOT)/include/verilated.mk
DEBUG_ON = --debug DEBUG_ON = --debug
###################################################################### ######################################################################
ifneq ($(SYSTEMC),)
test_default: precopy prep preproc compile run test_default: precopy prep preproc compile run
test_debug: precopy prep_dbg preproc compile run test_debug: precopy prep_dbg preproc compile run
else
test_default: nosc
test_debug: nosc
endif
V_FLAGS = -f $(VERILATOR_ROOT)/test_v/input.vc V_FLAGS = -f $(VERILATOR_ROOT)/test_v/input.vc
VERILATOR_FLAGS = --sc $(V_FLAGS) top.v VERILATOR_FLAGS = --sc $(V_FLAGS) top.v
@ -52,6 +57,11 @@ run:
obj_dir: obj_dir:
mkdir $@ mkdir $@
nosc:
@echo
@echo %Skip: SYSTEMC not in environment
@echo
###################################################################### ######################################################################
maintainer-copy:: maintainer-copy::

View File

@ -24,9 +24,15 @@ include $(VERILATOR_ROOT)/include/verilated.mk
DEBUG_ON = --debug --trace-dups DEBUG_ON = --debug --trace-dups
###################################################################### ######################################################################
ifneq ($(SYSTEMPERL),)
test_default: precopy prep preproc compile run coverage test_default: precopy prep preproc compile run coverage
test_debug: precopy prep_dbg preproc compile_dbg run coverage test_debug: precopy prep_dbg preproc compile_dbg run coverage
test_nopublic: precopy prep_dbg_np preproc compile_dbg run coverage test_nopublic: precopy prep_dbg_np preproc compile_dbg run coverage
else
test_default: nosp
test_debug: nosp
test_nopublic: nosp
endif
V_FLAGS = -f $(VERILATOR_ROOT)/test_v/input.vc V_FLAGS = -f $(VERILATOR_ROOT)/test_v/input.vc
@ -67,6 +73,11 @@ coverage:
obj_dir: obj_dir:
mkdir $@ mkdir $@
nosp:
@echo
@echo %Skip: SYSTERMPERL not in environment
@echo
###################################################################### ######################################################################
maintainer-copy:: maintainer-copy::