Megatest

Check-in [eec0503d34]
Login
Overview
Comment:Updated the documentation
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: eec0503d34769ebf243f483fe8e7b40dcb6cd06a
User & Date: matt on 2011-05-17 08:31:57
Other Links: manifest | tags
Context
2011-05-17
17:25
Corrected MEGATEST to MT_MEGATEST in script examples check-in: 69ef19722d user: mrwellan tags: trunk
08:31
Updated the documentation check-in: eec0503d34 user: matt tags: trunk
00:59
Updated the documentation check-in: e9715ba80f user: matt tags: trunk
Changes

Modified docs/megatest.html from [e846497271] to [3077929060].

1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="generator" content="http://www.nongnu.org/elyxer/"/>
<meta name="create-date" content="2011-05-16"/>
<link rel="stylesheet" href="http://www.nongnu.org/elyxer/lyx.css" type="text/css" media="screen"/>
<title>Megatest</title>
</head>
<body>
<div id="globalWrapper">
<h1 class="title">
Megatest






|







1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="generator" content="http://www.nongnu.org/elyxer/"/>
<meta name="create-date" content="2011-05-17"/>
<link rel="stylesheet" href="http://www.nongnu.org/elyxer/lyx.css" type="text/css" media="screen"/>
<title>Megatest</title>
</head>
<body>
<div id="globalWrapper">
<h1 class="title">
Megatest
363
364
365
366
367
368
369






370
371
372
373
374
375
376
​
# 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 -logpro runsim.logpro "runsim cpu1"






</pre>
</div>

</div>
<div class="Unindented">
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.
</div>







>
>
>
>
>
>







363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
​
# 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 -logpro runsim.logpro "runsim cpu1"
if ($? == 0)
  set status = PASS
else
  set status = FAIL
end
$MEGATEST -test-status :state COMPLETED :status $status
</pre>
</div>

</div>
<div class="Unindented">
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.
</div>
385
386
387
388
389
390
391
392
393






394
395
396
397
398
399
400
<pre class="listing">#!/bin/tcsh -x
​
# 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_cpu2 -logpro runsim.logpro "runsim cpu2"






</pre>
</div>

</div>
<h2 class="Section">
<a class="toc" name="toc-Section-3.3">3.3</a> Simple Test with Multiple Steps, Some in Parallel 
</h2>







|

>
>
>
>
>
>







391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
<pre class="listing">#!/bin/tcsh -x
​
# 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" &amp;&amp; \
$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
</pre>
</div>

</div>
<h2 class="Section">
<a class="toc" name="toc-Section-3.3">3.3</a> Simple Test with Multiple Steps, Some in Parallel 
</h2>
424
425
426
427
428
429
430






431
432
433
434
435
436
437
<div class="listing">
<pre class="listing">#!/bin/tcsh -x
​
# run the cpu1 and cpu2 simulations in parallel. 
# The -j parameter tells make how many jobs it may run in parallel
​
make -j 2 






</pre>
</div>

</div>
<h2 class="Section">
<a class="toc" name="toc-Section-3.4">3.4</a> Simple Test with Iteration
</h2>







>
>
>
>
>
>







436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
<div class="listing">
<pre class="listing">#!/bin/tcsh -x
​
# 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
</pre>
</div>

</div>
<h2 class="Section">
<a class="toc" name="toc-Section-3.4">3.4</a> Simple Test with Iteration
</h2>
459
460
461
462
463
464
465






466
467
468
469
470
471
472
<a class="toc" name="toc-Paragraph-12"></a><div class="listing">
<pre class="listing">#!/bin/tcsh -x
​
# 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"






</pre>
</div>

</div>
<h2 class="Section">
<a class="toc" name="toc-Section-3.5">3.5</a> Tests with Inter-test dependencies
</h2>







>
>
>
>
>
>







477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
<a class="toc" name="toc-Paragraph-12"></a><div class="listing">
<pre class="listing">#!/bin/tcsh -x
​
# 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
</pre>
</div>

</div>
<h2 class="Section">
<a class="toc" name="toc-Section-3.5">3.5</a> Tests with Inter-test dependencies
</h2>
1379
1380
1381
1382
1383
1384
1385
1386
1387
1388
1389
1390

</table>

</div>

<hr class="footer"/>
<div class="footer" id="generated-by">
Document generated by <a href="http://elyxer.nongnu.org/">eLyXer 1.0.0 (2010-07-21)</a> on <span class="create-date">2011-05-16T23:59:45.293235</span>
</div>
</div>
</body>
</html>







|




1403
1404
1405
1406
1407
1408
1409
1410
1411
1412
1413
1414

</table>

</div>

<hr class="footer"/>
<div class="footer" id="generated-by">
Document generated by <a href="http://elyxer.nongnu.org/">eLyXer 1.0.0 (2010-07-21)</a> on <span class="create-date">2011-05-17T07:31:47.151243</span>
</div>
</div>
</body>
</html>

Modified docs/megatest.lyx from [153d81297c] to [e0f2df2e72].

593
594
595
596
597
598
599






























600
601
602
603
604
605
606
\end_layout

\begin_layout Plain Layout

$MEGATEST -runstep run_simulation -logpro runsim.logpro "runsim cpu1"
\end_layout































\end_inset


\end_layout

\begin_layout Standard
You can now run megatest and the created test directory will contain the







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
\end_layout

\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

\begin_layout Standard
You can now run megatest and the created test directory will contain the
697
698
699
700
701
702
703



704
705
706
707
708
709






























710
711
712
713
714
715
716
\begin_layout Plain Layout

\end_layout

\begin_layout Plain Layout

$MEGATEST -runstep run_simulation_cpu1 -logpro runsim.logpro "runsim cpu1"



\end_layout

\begin_layout Plain Layout

$MEGATEST -runstep run_simulation_cpu2 -logpro runsim.logpro "runsim cpu2"
\end_layout































\end_inset


\end_layout

\begin_layout Section







>
>
>






>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
\begin_layout Plain Layout

\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

\begin_layout Section
831
832
833
834
835
836
837






























838
839
840
841
842
843
844
\end_layout

\begin_layout Plain Layout

make -j 2 
\end_layout































\end_inset


\end_layout

\begin_layout Section
Simple Test with Iteration







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
\end_layout

\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

\begin_layout Section
Simple Test with Iteration
919
920
921
922
923
924
925






























926
927
928
929
930
931
932

\end_layout

\begin_layout Plain Layout

$MEGATEST -runstep run_simulation -logpro runsim.logpro "runsim $CPU"
\end_layout































\end_inset


\end_layout

\begin_layout Section







>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>







1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055

\end_layout

\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

\begin_layout Section