Index: docs/manual/debugging.txt ================================================================== --- docs/manual/debugging.txt +++ docs/manual/debugging.txt @@ -247,11 +247,11 @@ .............................. Misc Other Debugging Hints ~~~~~~~~~~~~~~~~~~~~~~~~~~ -Annotation scripts and config files +Annotating scripts and config files ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Run the "env" command to record the environment: env | sort > stagename.log @@ -265,26 +265,30 @@ # or [system env | sort > stagename.log} ................... -In scripts just insert the command: +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 +.............................. -.myscript.sh +.Use meld to examine the differences .............................. -env > somefile.log +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) - -or - -#{shell xterm &} (this is non-blocking) .............................. Similarly in a script just call the xterm. Index: docs/manual/megatest_manual.html ================================================================== --- docs/manual/megatest_manual.html +++ docs/manual/megatest_manual.html @@ -2189,11 +2189,11 @@

Misc Other Debugging Hints

-

Annotation scripts and config files

+

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
@@ -2202,26 +2202,30 @@ # or [system env | sort > stagename.log}
-

In scripts just insert the command:

+

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

myscript.sh
-
env > somefile.log
+
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)
-
-or
-
-#{shell xterm &} (this is non-blocking)
+
#{shell xterm}  (this blocks)

Similarly in a script just call the xterm.

Index: docs/manual/megatest_manual.pdf ================================================================== --- docs/manual/megatest_manual.pdf +++ docs/manual/megatest_manual.pdf cannot compute difference between binary files