Megatest

Diff
Login

Differences From Artifact [902c5a499e]:

To Artifact [52db388105]:


173
174
175
176
177
178
179



180
181
182
183
184
185
186
Create megatest.config
\end_layout

\begin_layout Standard
Create the file megatest.config using the megatest.config template from the
 tests directory.
 At a minimum you need the following:



\begin_inset listings
inline false
status open

\begin_layout Plain Layout

# Fields are the keys under which your test runs are organized







>
>
>







173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
Create megatest.config
\end_layout

\begin_layout Standard
Create the file megatest.config using the megatest.config template from the
 tests directory.
 At a minimum you need the following:
\end_layout

\begin_layout Paragraph
\begin_inset listings
inline false
status open

\begin_layout Plain Layout

# Fields are the keys under which your test runs are organized
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
\begin_layout Plain Layout

[disks]
\end_layout

\begin_layout Plain Layout

1 /tmp 
\end_layout

\end_inset


\end_layout








|







273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
\begin_layout Plain Layout

[disks]
\end_layout

\begin_layout Plain Layout

disk1 /tmp 
\end_layout

\end_inset


\end_layout

311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
Create the tests directory and your first test
\end_layout

\begin_layout Standard
The structure should look like this:
\end_layout

\begin_layout Standard
\begin_inset listings
inline false
status open

\begin_layout Plain Layout

../tests







|







314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
Create the tests directory and your first test
\end_layout

\begin_layout Standard
The structure should look like this:
\end_layout

\begin_layout Paragraph
\begin_inset listings
inline false
status open

\begin_layout Plain Layout

../tests
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374

\end_layout

\begin_layout Subsection
Create the testconfig file for your test
\end_layout

\begin_layout Standard
\begin_inset listings
inline false
status open

\begin_layout Plain Layout

[setup]







|







363
364
365
366
367
368
369
370
371
372
373
374
375
376
377

\end_layout

\begin_layout Subsection
Create the testconfig file for your test
\end_layout

\begin_layout Paragraph
\begin_inset listings
inline false
status open

\begin_layout Plain Layout

[setup]
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398

\end_layout

\begin_layout Subsection
Create your test running script, main.sh
\end_layout

\begin_layout Standard
\begin_inset listings
inline false
status open

\begin_layout Plain Layout

#!/bin/bash







|







387
388
389
390
391
392
393
394
395
396
397
398
399
400
401

\end_layout

\begin_layout Subsection
Create your test running script, main.sh
\end_layout

\begin_layout Paragraph
\begin_inset listings
inline false
status open

\begin_layout Plain Layout

#!/bin/bash
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435

\end_layout

\begin_layout Subsection
Run megatest and watch your run progress
\end_layout

\begin_layout Standard
\begin_inset listings
inline false
status open

\begin_layout Plain Layout

megatest :field1 abc :field2 def :runname 2011week08.4a -runall







|







424
425
426
427
428
429
430
431
432
433
434
435
436
437
438

\end_layout

\begin_layout Subsection
Run megatest and watch your run progress
\end_layout

\begin_layout Paragraph
\begin_inset listings
inline false
status open

\begin_layout Plain Layout

megatest :field1 abc :field2 def :runname 2011week08.4a -runall
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
\end_layout

\begin_layout Subsection
Create your test directory.
 The directory name will be the name of the test
\end_layout

\begin_layout Standard
\begin_inset listings
inline false
status open

\begin_layout Plain Layout

mkdir simpletest







|







483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
\end_layout

\begin_layout Subsection
Create your test directory.
 The directory name will be the name of the test
\end_layout

\begin_layout Paragraph
\begin_inset listings
inline false
status open

\begin_layout Plain Layout

mkdir simpletest
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
\begin_layout Subsection
Create your testconfig file.
 This file contains various specifications for your test.
 For our example the test author has chosen to write the test using csh
 scripting.
\end_layout

\begin_layout Standard
\begin_inset listings
inline false
status open

\begin_layout Plain Layout

# testconfig







|







510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
\begin_layout Subsection
Create your testconfig file.
 This file contains various specifications for your test.
 For our example the test author has chosen to write the test using csh
 scripting.
\end_layout

\begin_layout Paragraph
\begin_inset listings
inline false
status open

\begin_layout Plain Layout

# testconfig
541
542
543
544
545
546
547







548
549
550
551
552
553
554
\end_layout

\begin_layout Subsection
Create your main.csh script
\end_layout

\begin_layout Standard







\begin_inset listings
inline false
status open

\begin_layout Plain Layout

#!/bin/tcsh -x







>
>
>
>
>
>
>







544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
\end_layout

\begin_layout Subsection
Create your main.csh script
\end_layout

\begin_layout Standard
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 some industries.
 
\end_layout

\begin_layout Paragraph
\begin_inset listings
inline false
status open

\begin_layout Plain Layout

#!/bin/tcsh -x
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714

\end_inset


\end_layout

\begin_layout Section
Simple Test, Multiple Steps, Some in Parallel 
\end_layout

\begin_layout Subsection
The Makefile
\end_layout

\begin_layout Standard







|







710
711
712
713
714
715
716
717
718
719
720
721
722
723
724

\end_inset


\end_layout

\begin_layout Section
Simple Test with Multiple Steps, Some in Parallel 
\end_layout

\begin_layout Subsection
The Makefile
\end_layout

\begin_layout Standard
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
\end_layout

\begin_layout Plain Layout

make -j 2 
\end_layout

\begin_layout Plain Layout

\end_layout

\end_inset


\end_layout

\begin_layout Section
Simple Test with Iteration
\end_layout

\begin_layout Standard
Since no jobs run after the cpu1 and cpu2 simulations inside the test there
 it is possible to run this test in iterated mode.
\end_layout

\begin_layout Subsection
Update you testconfig file for iteration
\end_layout

\begin_layout Standard
\begin_inset listings
inline false
status open

\begin_layout Plain Layout

[setup]







<
<
<
<










|
|






|







831
832
833
834
835
836
837




838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
\end_layout

\begin_layout Plain Layout

make -j 2 
\end_layout





\end_inset


\end_layout

\begin_layout Section
Simple Test with Iteration
\end_layout

\begin_layout Standard
Since no jobs run after the cpu1 and cpu2 simulations in this test it is
 possible to use iterated mode.
\end_layout

\begin_layout Subsection
Update you testconfig file for iteration
\end_layout

\begin_layout Paragraph
\begin_inset listings
inline false
status open

\begin_layout Plain Layout

[setup]
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895

\end_layout

\begin_layout Subsection
Rewrite your main.csh for iteration
\end_layout

\begin_layout Standard
\begin_inset listings
inline false
status open

\begin_layout Plain Layout

#!/bin/tcsh -x







|







887
888
889
890
891
892
893
894
895
896
897
898
899
900
901

\end_layout

\begin_layout Subsection
Rewrite your main.csh for iteration
\end_layout

\begin_layout Paragraph
\begin_inset listings
inline false
status open

\begin_layout Plain Layout

#!/bin/tcsh -x
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
Includes
\end_layout

\begin_layout Standard
[include filename]
\end_layout

\begin_layout Standard
The file named 
\begin_inset Quotes eld
\end_inset

filename
\begin_inset Quotes erd
\end_inset







|







1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
Includes
\end_layout

\begin_layout Standard
[include filename]
\end_layout

\begin_layout Quotation
The file named 
\begin_inset Quotes eld
\end_inset

filename
\begin_inset Quotes erd
\end_inset