Megatest

Diff
Login

Differences From Artifact [89493499f6]:

To Artifact [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