Index: docs/megatest.html ================================================================== --- docs/megatest.html +++ docs/megatest.html @@ -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 @@ Index: docs/megatest.lyx ================================================================== --- docs/megatest.lyx +++ docs/megatest.lyx @@ -595,10 +595,40 @@ \begin_layout Plain Layout $MEGATEST -runstep run_simulation -logpro runsim.logpro "runsim cpu1" \end_layout +\begin_layout Plain Layout + +if ($? == 0) +\end_layout + +\begin_layout Plain Layout + + set status = PASS +\end_layout + +\begin_layout Plain Layout + +else +\end_layout + +\begin_layout Plain Layout + + set status = FAIL +\end_layout + +\begin_layout Plain Layout + +end +\end_layout + +\begin_layout Plain Layout + +$MEGATEST -test-status :state COMPLETED :status $status +\end_layout + \end_inset \end_layout @@ -699,16 +729,49 @@ \end_layout \begin_layout Plain Layout $MEGATEST -runstep run_simulation_cpu1 -logpro runsim.logpro "runsim cpu1" + && +\backslash + \end_layout \begin_layout Plain Layout $MEGATEST -runstep run_simulation_cpu2 -logpro runsim.logpro "runsim cpu2" \end_layout + +\begin_layout Plain Layout + +if ($? == 0) +\end_layout + +\begin_layout Plain Layout + + set status = PASS +\end_layout + +\begin_layout Plain Layout + +else +\end_layout + +\begin_layout Plain Layout + + set status = FAIL +\end_layout + +\begin_layout Plain Layout + +end +\end_layout + +\begin_layout Plain Layout + +$MEGATEST -test-status :state COMPLETED :status $status +\end_layout \end_inset \end_layout @@ -833,10 +896,40 @@ \begin_layout Plain Layout make -j 2 \end_layout +\begin_layout Plain Layout + +if ($? == 0) +\end_layout + +\begin_layout Plain Layout + + set status = PASS +\end_layout + +\begin_layout Plain Layout + +else +\end_layout + +\begin_layout Plain Layout + + set status = FAIL +\end_layout + +\begin_layout Plain Layout + +end +\end_layout + +\begin_layout Plain Layout + +$MEGATEST -test-status :state COMPLETED :status $status +\end_layout + \end_inset \end_layout @@ -921,10 +1014,40 @@ \begin_layout Plain Layout $MEGATEST -runstep run_simulation -logpro runsim.logpro "runsim $CPU" \end_layout + +\begin_layout Plain Layout + +if ($? == 0) +\end_layout + +\begin_layout Plain Layout + + set status = PASS +\end_layout + +\begin_layout Plain Layout + +else +\end_layout + +\begin_layout Plain Layout + + set status = FAIL +\end_layout + +\begin_layout Plain Layout + +end +\end_layout + +\begin_layout Plain Layout + +$MEGATEST -test-status :state COMPLETED :status $status +\end_layout \end_inset \end_layout