Megatest

Diff
Login

Differences From Artifact [d79a29d877]:

To Artifact [700bcb2a77]:


245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270

271
272
273
274







275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
system($cmdline);
more_code();
..............................

Misc Other Debugging Hints
~~~~~~~~~~~~~~~~~~~~~~~~~~

Annotation scripts and config files
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Run the "env" command to record the environment:

env | sort > stagename.log

In a config file:

.megatest.config, runconfigs.config and testconfig
...................
#{shell env | sort > stagename.log}

# or

[system env | sort > stagename.log}
...................

In scripts just insert the command:


.myscript.sh
..............................
env > somefile.log







..............................

Start an xterm to examine the environment, run scripts etc:

In a config file:

.megatest.config, runconfigs.config and testconfig files
..............................
#{shell xterm}  (this blocks)

or

#{shell xterm &} (this is non-blocking)
..............................

Similarly in a script just call the xterm.







|

















|
>



|
>
>
>
>
>
>
>









<
<
<
<



245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291




292
293
294
system($cmdline);
more_code();
..............................

Misc Other Debugging Hints
~~~~~~~~~~~~~~~~~~~~~~~~~~

Annotating scripts and config files
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Run the "env" command to record the environment:

env | sort > stagename.log

In a config file:

.megatest.config, runconfigs.config and testconfig
...................
#{shell env | sort > stagename.log}

# or

[system env | sort > stagename.log}
...................

In scripts just insert the commands, this example helps you identify
if "some commands ..." changed any environment variables.:

.myscript.sh
..............................
env > somefile-before.log
some commands ...
env > somefile-after.log
..............................

.Use meld to examine the differences
..............................
meld somefile-before.log somefile-after.log
..............................

Start an xterm to examine the environment, run scripts etc:

In a config file:

.megatest.config, runconfigs.config and testconfig files
..............................
#{shell xterm}  (this blocks)




..............................

Similarly in a script just call the xterm.