@@ -724,13 +724,15 @@ --------------------------- Ezsteps ~~~~~~~ -Ezsteps is the recommended way to implement tests and automation in Megatest. +Ezsteps is the recommended way to implement tests and automation in +Megatest. -NOTE: Each ezstep must be a single line. Use the [scripts] mechanism to create multiline scripts (see example below). +NOTE: Each ezstep must be a single line. Use the [scripts] mechanism +to create multiline scripts (see example below). .Example ezsteps with logpro rules ----------------- [ezsteps] lookittmp ls /tmp @@ -743,19 +745,34 @@ ----------------- Automatic environment propagation with Ezsteps ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -Turn on ezpropvars or simply give your step name an extension of .sh or .csh. The environment variables will be propagated. +Turn on ezpropvars or simply give your step name an extension of .sh +or .csh. The environment variables will be propagated. -NOTE: aliases and variables with strange whitespace or characters will not propagate correctly. Put in a ticket on the http://www.kiatoa.com/fossils/megatest site if you need support for a specific strange character combination. +NOTE: aliases and variables with strange whitespace or characters will +not propagate correctly. Put in a ticket on the +http://www.kiatoa.com/fossils/megatest site if you need support for a +specific strange character combination. .Turn on auto propagate for bash --------------------------- [setup] -ezpropvars sh /bin/bash +ezpropvars sh +--------------------------- + +.Write your ezsteps. The loadenv.csh step will use /bin/csh as its shell, other steps will use bash. +--------------------------- +[ezsteps] +loadenv.csh source $REF/ourenviron.csh +compile make +install make install --------------------------- + +Bash and csh are supported. You can override the shell binary location +from the default /bin/bash and /bin/csh if needed. .Turn on auto propagate for csh --------------------------- [setup] ezpropvars csh /bin/csh