Index: docs/Makefile ================================================================== --- docs/Makefile +++ docs/Makefile @@ -1,7 +1,11 @@ +all : html/megatest.html megatest.lyx html/megatest.html : megatest.lyx rm -rf megatest.html.LyXconv lyx -e html megatest.lyx cp megatest.html.LyXconv/* html/ fossil add html/* + +megatest.pdf : megatest.lyx + lyx -e pdf megatest.pdf Index: docs/html/megatest.html ================================================================== --- docs/html/megatest.html +++ docs/html/megatest.html @@ -4,11 +4,11 @@ -Converted document +Megatest User Manual
@@ -18,11 +18,11 @@

- +Megatest User Manual

Matthew Welland

@@ -441,10 +441,11 @@

Note: Using csh is NOT recommended. Use bash, perl, ruby, zsh or anything other than csh. We use csh here because it is popular in the EDA industry for which Megatest was originally created.
+
#!/bin/tcsh -x
 ​
 # run the cpu1 simulation.
 #   The step name is "run_simulation"
@@ -452,10 +453,12 @@
 #   The logpro file to validate the output from the run is "runsim.logpro"
 ​
 $MT_MEGATEST -runstep run_simulation -logpro runsim.logpro "runsim cpu1"
 $MT_MEGATEST -test-status :state COMPLETED :status $?
 
+
+
You can now run megatest and the created test directory will contain the new files “run_simulation.html” and “run_simulation.log”. If you are using the dashboard you can click on the run and then push the “View log” button to view the log file in firefox. @@ -549,50 +552,20 @@

6.2 Rewrite your main.csh for iteration

-
-#!/bin/tcsh -x -
- -
- -
- -
-# run the cpu simulation but now use the environment variable $CPU -
- -
+
#!/bin/tcsh -x
+
+# run the cpu simulation but now use the environment variable $CPU
 # to select what cpu to run the simulation against
-
- -
- -
- -
-$MT_MEGATEST -runstep run_simulation -logpro runsim.logpro "runsim $CPU" -
- -
+ +$MT_MEGATEST -runstep run_simulation -logpro runsim.logpro "runsim $CPU" # As of version 1.07 Megatest automatically converts a status of "0" -
- -
# to "PASS", any other number to "FAIL" and directly uses the value of -
- -
# a string passed in. -
- -
$MT_MEGATEST -test-status :state COMPLETED :status $? -
-

@@ -601,26 +574,14 @@
Sometimes a test depends on the output from a previous test or it may not make sense to run a test is another test does not complete with status “PASS”. In either of these scenarios you can use the “waiton” keyword in your testconfig file to indicate that this test must wait on one or more tests to complete before being launched. In this example there is no point in running the “system” test if the “cpu” and “mem” tests either do not complete or complete but with status “FAIL”.
-
-# testconfig for the "system" test -
- -
+
# testconfig for the "system" test
 [setup]
-
- -
runscript main.csh -
- -
waiton cpu mem -
-

@@ -1583,10 +1544,10 @@ B References

Index: docs/megatest.lyx ================================================================== --- docs/megatest.lyx +++ docs/megatest.lyx @@ -212,23 +212,11 @@ \end_layout \begin_layout Title -\begin_inset ERT -status open - -\begin_layout Plain Layout - - -\backslash -reportTopic -\end_layout - -\end_inset - - +Megatest User Manual \end_layout \begin_layout Author Matthew Welland \end_layout @@ -905,10 +893,12 @@ was originally created. \end_layout \begin_layout Standard +\noindent +\align left \begin_inset listings inline false status open \begin_layout Plain Layout @@ -1206,72 +1196,62 @@ inline false status open \begin_layout Plain Layout \noindent -\align left #!/bin/tcsh -x \end_layout \begin_layout Plain Layout \noindent -\align left \end_layout \begin_layout Plain Layout \noindent -\align left # run the cpu simulation but now use the environment variable $CPU \end_layout \begin_layout Plain Layout \noindent -\align left # to select what cpu to run the simulation against \end_layout \begin_layout Plain Layout \noindent -\align left \end_layout \begin_layout Plain Layout \noindent -\align left $MT_MEGATEST -runstep run_simulation -logpro runsim.logpro "runsim $CPU" \end_layout \begin_layout Plain Layout \noindent -\align left # As of version 1.07 Megatest automatically converts a status of "0" \end_layout \begin_layout Plain Layout \noindent -\align left # to "PASS", any other number to "FAIL" and directly uses the value of \end_layout \begin_layout Plain Layout \noindent -\align left # a string passed in. \end_layout \begin_layout Plain Layout \noindent -\align left $MT_MEGATEST -test-status :state COMPLETED :status $? \end_layout \end_inset @@ -1299,32 +1279,28 @@ inline false status open \begin_layout Plain Layout \noindent -\align left # testconfig for the "system" test \end_layout \begin_layout Plain Layout \noindent -\align left [setup] \end_layout \begin_layout Plain Layout \noindent -\align left runscript main.csh \end_layout \begin_layout Plain Layout \noindent -\align left waiton cpu mem \end_layout \end_inset