@@ -2,11 +2,11 @@ - + Megatest
@@ -365,10 +365,16 @@ # The step name is "run_simulation" # The commandline being run for this step is "runsim cpu1" # The logpro file to validate the output from the run is "runsim.logpro" ​ $MEGATEST -runstep run_simulation -logpro runsim.logpro "runsim cpu1" +if ($? == 0) + set status = PASS +else + set status = FAIL +end +$MEGATEST -test-status :state COMPLETED :status $status
@@ -387,12 +393,18 @@ # run the cpu1 simulation. # The step name is "run_simulation" # The commandline being run for this step is "runsim cpu1" # The logpro file to validate the output from the run is "runsim.logpro" ​ -$MEGATEST -runstep run_simulation_cpu1 -logpro runsim.logpro "runsim cpu1" +$MEGATEST -runstep run_simulation_cpu1 -logpro runsim.logpro "runsim cpu1" && \ $MEGATEST -runstep run_simulation_cpu2 -logpro runsim.logpro "runsim cpu2" +if ($? == 0) + set status = PASS +else + set status = FAIL +end +$MEGATEST -test-status :state COMPLETED :status $status

@@ -426,10 +438,16 @@ ​ # run the cpu1 and cpu2 simulations in parallel. # The -j parameter tells make how many jobs it may run in parallel ​ make -j 2 +if ($? == 0) + set status = PASS +else + set status = FAIL +end +$MEGATEST -test-status :state COMPLETED :status $status

@@ -461,10 +479,16 @@ ​ # run the cpu simulation but now use the environment variable $CPU # to select what cpu to run the simulation against ​ $MEGATEST -runstep run_simulation -logpro runsim.logpro "runsim $CPU" +if ($? == 0) + set status = PASS +else + set status = FAIL +end +$MEGATEST -test-status :state COMPLETED :status $status

@@ -1381,10 +1405,10 @@