Run multiple testcases using makefile

In reply to cuonghl:

In reply to cuonghl:
You can manually check the exit code of a command by using “echo $?”. If it returns 0, then the command is successfully executed otherwise it isn’t. I think the problem comes from $CHECK command, if you can’t grep “UVM_ERROR : 0” or “UVM_FATAL : 0” (your UVM Test failed), the exit code of $CHECK command will be 1, and the Makefile will be terminated. That’s why you won’t see test2 target is executed.
Thanks,
Chris.

yes i checked using “echo $?” and it returns 0.
just look at the below makefile i am using now without $check ,its behaves same.

UVM_HOME = /chicago/tools/cadence/INCISIV15.20/tools.lnx86/methodology/UVM/CDNS-1.2-ML/sv

TIMESCALE = “-timescale 1ns/1ns”

UVM_VERBOSITY = UVM_LOW

test1:
irun -access rw -uvmhome (UVM_HOME) +UVM_VERBOSITY=(UVM_VERBOSITY) -quiet -coverage all (TIMESCALE) -f filelist.f +UVM_TESTNAME=spi_test_1 +svseed=(SEED)

test2:
irun -access rw -uvmhome (UVM_HOME) +UVM_VERBOSITY=(UVM_VERBOSITY) -quiet -coverage all (TIMESCALE) -f filelist.f +UVM_TESTNAME=spi_test_2 +svseed=(SEED)

cleantest:
rm -rf INCA_libs *.log *.key *.history waves.shm *.err *.diag cov_work

regress: cleantest test1 test2

sorry, i am asking questions on makefile .
thanks in advance.