Megatest

Check-in [203acbc2e3]
Login
Overview
Comment:Fixed title by removing \reportTopic
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 203acbc2e38a98db4f82b2aed9c6f2112d997501
User & Date: matt on 2011-09-24 13:42:30
Other Links: manifest | tags
Context
2011-09-25
15:40
Fixed broken -list-runs, dashboard key filters check-in: 2ab4dded8c user: matt tags: trunk
2011-09-24
13:42
Fixed title by removing \reportTopic check-in: 203acbc2e3 user: matt tags: trunk
13:19
Regenerated html check-in: d86604b96b user: matt tags: trunk
Changes

Modified docs/Makefile from [81788daa51] to [5dc57d7419].


1
2
3
4
5
6



7


html/megatest.html : megatest.lyx
	rm -rf megatest.html.LyXconv
	lyx -e html megatest.lyx
	cp megatest.html.LyXconv/* html/
	fossil add html/*




>






>
>
>

1
2
3
4
5
6
7
8
9
10
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

Modified docs/html/megatest.html from [7446eb5ad2] to [6792205dc7].

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?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-09-24"/>
<link rel="stylesheet" href="http://www.nongnu.org/elyxer/lyx.css" type="text/css" media="screen"/>
<title>Converted document</title>
</head>
<body>
<div id="globalWrapper">
<div class="Standard">

</div>
<div class="Standard">

</div>
<div class="Standard">

</div>
<h1 class="title">

</h1>
<h2 class="author">
Matthew Welland
</h2>
<h2 class="Date">
Sept. 20, 
</h2>








|













|







1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
<?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-09-24"/>
<link rel="stylesheet" href="http://www.nongnu.org/elyxer/lyx.css" type="text/css" media="screen"/>
<title>Megatest User Manual</title>
</head>
<body>
<div id="globalWrapper">
<div class="Standard">

</div>
<div class="Standard">

</div>
<div class="Standard">

</div>
<h1 class="title">
Megatest User Manual
</h1>
<h2 class="author">
Matthew Welland
</h2>
<h2 class="Date">
Sept. 20, 
</h2>
439
440
441
442
443
444
445

446
447
448
449
450
451
452
453
454
455
456


457
458
459
460
461
462
463
<h2 class="Subsection">
<a class="toc" name="toc-Subsection-4.3">4.3</a> Create the main.csh script
</h2>
<div class="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 the EDA industry for which Megatest was originally created. 
</div>
<div class="Standard">

<div class="listing">
<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"
​
$MT_MEGATEST -runstep run_simulation -logpro runsim.logpro "runsim cpu1"
$MT_MEGATEST -test-status :state COMPLETED :status $?
</pre>


</div>

</div>
<div class="Standard">
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>
<h2 class="Subsection">







>











>
>







439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
<h2 class="Subsection">
<a class="toc" name="toc-Subsection-4.3">4.3</a> Create the main.csh script
</h2>
<div class="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 the EDA industry for which Megatest was originally created. 
</div>
<div class="Standard">
<div class="left">
<div class="listing">
<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"
​
$MT_MEGATEST -runstep run_simulation -logpro runsim.logpro "runsim cpu1"
$MT_MEGATEST -test-status :state COMPLETED :status $?
</pre>
</div>

</div>

</div>
<div class="Standard">
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>
<h2 class="Subsection">
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
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

</div>
<h2 class="Subsection">
<a class="toc" name="toc-Subsection-6.2">6.2</a> Rewrite your main.csh for iteration
</h2>
<div class="Standard">
<div class="listing">
<pre class="listing"><div class="left">
#!/bin/tcsh -x
</div>

<div class="left">

</div>

<div class="left">
# run the cpu simulation but now use the environment variable $CPU
</div>

<div class="left">
# to select what cpu to run the simulation against
</div>

<div class="left">

</div>

<div class="left">
$MT_MEGATEST -runstep run_simulation -logpro runsim.logpro "runsim $CPU"
</div>

<div class="left">
# As of version 1.07 Megatest automatically converts a status of "0"
</div>

<div class="left">
# to "PASS", any other number to "FAIL" and directly uses the value of
</div>

<div class="left">
# a string passed in.
</div>

<div class="left">
$MT_MEGATEST -test-status :state COMPLETED :status $?
</div>

</pre>
</div>

</div>
<h2 class="Subsection">
<a class="toc" name="toc-Subsection-6.3">6.3</a> Tests with Inter-test dependencies
</h2>
<div class="Standard">
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”.
</div>
<div class="Standard">
<div class="listing">
<pre class="listing"><div class="left">
# testconfig for the "system" test
</div>

<div class="left">
[setup]
</div>

<div class="left">
runscript main.csh
</div>

<div class="left">
waiton cpu mem
</div>

</pre>
</div>

</div>
<h2 class="Subsection">
<a class="toc" name="toc-Subsection-6.4">6.4</a> Rolling up Miscellaneous Data
</h2>







|
<
<

<
<
<
<
<

<
<
<

<

<
<
<
<
<

<
<
<

<
<
<

<
<
<

<
<
<

<
<












<
|
<
<
<

<
<
<

<
<
<

<
<







550
551
552
553
554
555
556
557


558





559



560

561





562



563



564



565



566


567
568
569
570
571
572
573
574
575
576
577
578

579



580



581



582


583
584
585
586
587
588
589

</div>
<h2 class="Subsection">
<a class="toc" name="toc-Subsection-6.2">6.2</a> Rewrite your main.csh for iteration
</h2>
<div class="Standard">
<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







$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 $?


</pre>
</div>

</div>
<h2 class="Subsection">
<a class="toc" name="toc-Subsection-6.3">6.3</a> Tests with Inter-test dependencies
</h2>
<div class="Standard">
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”.
</div>
<div class="Standard">
<div class="listing">

<pre class="listing"># testconfig for the "system" test



[setup]



runscript main.csh



waiton cpu mem


</pre>
</div>

</div>
<h2 class="Subsection">
<a class="toc" name="toc-Subsection-6.4">6.4</a> Rolling up Miscellaneous Data
</h2>
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
</h1>
<h1 class="Section">
<a class="toc" name="toc-Section-B">B</a> References
</h1>

<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-09-24T12:19:13.733684</span>
</div>
</div>
</body>
</html>







|




1542
1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
1553
</h1>
<h1 class="Section">
<a class="toc" name="toc-Section-B">B</a> References
</h1>

<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-09-24T12:41:26.767975</span>
</div>
</div>
</body>
</html>

Modified docs/megatest.lyx from [89493499f6] to [ae4fa8f5af].

210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236

\end_inset


\end_layout

\begin_layout Title
\begin_inset ERT
status open

\begin_layout Plain Layout


\backslash
reportTopic
\end_layout

\end_inset


\end_layout

\begin_layout Author
Matthew Welland
\end_layout

\begin_layout Date







<
<
|
<
<
<
<
<
<
<
<
<
<







210
211
212
213
214
215
216


217










218
219
220
221
222
223
224

\end_inset


\end_layout

\begin_layout Title


Megatest User Manual










\end_layout

\begin_layout Author
Matthew Welland
\end_layout

\begin_layout Date
903
904
905
906
907
908
909


910
911
912
913
914
915
916
 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.
 
\end_layout

\begin_layout Standard


\begin_inset listings
inline false
status open

\begin_layout Plain Layout

#!/bin/tcsh -x







>
>







891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
 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.
 
\end_layout

\begin_layout Standard
\noindent
\align left
\begin_inset listings
inline false
status open

\begin_layout Plain Layout

#!/bin/tcsh -x
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
\begin_layout Standard
\begin_inset listings
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









<






<





<






<






<





<






<






<






<






<







1194
1195
1196
1197
1198
1199
1200

1201
1202
1203
1204
1205
1206

1207
1208
1209
1210
1211

1212
1213
1214
1215
1216
1217

1218
1219
1220
1221
1222
1223

1224
1225
1226
1227
1228

1229
1230
1231
1232
1233
1234

1235
1236
1237
1238
1239
1240

1241
1242
1243
1244
1245
1246

1247
1248
1249
1250
1251
1252

1253
1254
1255
1256
1257
1258
1259
\begin_layout Standard
\begin_inset listings
inline false
status open

\begin_layout Plain Layout
\noindent


#!/bin/tcsh -x
\end_layout

\begin_layout Plain Layout
\noindent


\end_layout

\begin_layout Plain Layout
\noindent


# run the cpu simulation but now use the environment variable $CPU
\end_layout

\begin_layout Plain Layout
\noindent


# to select what cpu to run the simulation against
\end_layout

\begin_layout Plain Layout
\noindent


\end_layout

\begin_layout Plain Layout
\noindent


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

\begin_layout Plain Layout
\noindent


# As of version 1.07 Megatest automatically converts a status of "0"
\end_layout

\begin_layout Plain Layout
\noindent


# to "PASS", any other number to "FAIL" and directly uses the value of
\end_layout

\begin_layout Plain Layout
\noindent


# a string passed in.
\end_layout

\begin_layout Plain Layout
\noindent


$MT_MEGATEST -test-status :state COMPLETED :status $?
\end_layout

\end_inset


1297
1298
1299
1300
1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
\begin_layout Standard
\begin_inset listings
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









<






<






<






<







1277
1278
1279
1280
1281
1282
1283

1284
1285
1286
1287
1288
1289

1290
1291
1292
1293
1294
1295

1296
1297
1298
1299
1300
1301

1302
1303
1304
1305
1306
1307
1308
\begin_layout Standard
\begin_inset listings
inline false
status open

\begin_layout Plain Layout
\noindent


# testconfig for the "system" test
\end_layout

\begin_layout Plain Layout
\noindent


[setup]
\end_layout

\begin_layout Plain Layout
\noindent


runscript main.csh
\end_layout

\begin_layout Plain Layout
\noindent


waiton cpu mem
\end_layout

\end_inset