$Id: ltp-pan.1,v 1.1 2009/05/19 09:39:11 subrata_modak Exp $
Copyright (c) 2000 Silicon Graphics, Inc. All Rights Reserved.
This program is free software; you can redistribute it and/or modify it
under the terms of version 2 of the GNU General Public License as
published by the Free Software Foundation.
This program is distributed in the hope that it would be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Further, this software is distributed without any warranty that it is
free of the rightful claim of any third person regarding infringement
or the like. Any license provided herein, whether implied or
otherwise, applies only to this software file. Patent licenses, if
any, provided herein do not apply to combinations of this program with
other software, or any other product whatsoever.
You should have received a copy of the GNU General Public License along
with this program; if not, write the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Contact information: Silicon Graphics, Inc., 1600 Amphitheatre Pkwy,
Mountain View, CA 94043, or:
http://www.sgi.com
For further information regarding this notice, see:
http://oss.sgi.com/projects/GenInfo/NoticeExplan/
1i -A The all-stop flag. If any command exits non-zero ltp-pan will shutdown its scheduler and signal any active pgrps. The ltp-pan will exit non-zero after everything is shut down. By default ltp-pan ignores command exit statuses. The -e option is implied when this option is used.
1i -a active_file A file containing the tagnames, pids, and commands being run. If this is not specified then the ZOO environment variable will be read for the name of a directory where the active file will be placed, and in this case the active file's name will be "active". A single active file may be shared by any number of Zoo tools.
1i -C fail-command-file The file to which all failed test commands will be saved. You can use it later with -f option if you want to run only the failed test cases.
1i -d debug-level See the source for settings.
1i -e Pan will exit non-zero if any of its commands exited non-zero. By default ltp-pan ignores command exit statuses.
1i -f command-file The file that has a collection of commands that ltp-pan will execute.
1i -h Print some simple help.
1i -l logfile Name of a log file to be used to store exit information for each of the commands (tags) that are run. This log file may not be shared with other Zoo tools or other ltp-pan processes.
1i -n tagname The tagname by which this ltp-pan process will be known by the zoo tools. This is a required argument.
1i -o output_file The file to which all test output will be saved. Normally all test output is sent to standard output. This includes each test's standard output and standard error.
1i -O buffer_directory A directory where ltp-pan can place temporary files to capture test output. This will prevent output from several tests mixing together in the output file.
1i -p Enables printing results in human readable format.
1i -r report_type This controls the type of output that ltp-pan will produce. Supported formats are rts and none. The default is rts.
1i -S Causes ltp-pan to run commands (tags) sequentially, as they are listed in the command-file. By default it chooses tags randomly. If a command is specified on the commandline and a command-file is also specified, then the commandline tag will be the last command. If this is specified and -s is not specified then the default setting for -s is equal to the total number of commands.
1i -s starts Indicates the number of commands (tags) that should be run before terminating. Set this to zero to run forever. By default this is set to 1 (but see -S for an exception). If this is specified and is less than the value specified for -x then it is bumped up to be equal to the value of -x (in other words, -x is always satisfied).
1i -t #s|m|h|d time Indicates the length that ltp-pan should run tests. By default this is not set. If specified, the -s flag is automatically set to 0 (infinite). Presumably, you want as many tests ran during this timeframe. Duration is measured in seconds, minutes, hours, or days.
1i -x nactive Indicates the number of commands (tags) that should be kept active at any one time. If this is greater than 1 then it is possible to have multiple instances of the same tag active at once. By default this is 1.
1i -y Causes the ltp-pan scheduler to go idle if a signal is received or if a command exits non-zero. All active commands and their pgrps will be killed. After everything is dead the scheduler will restart again where it left off. If the signal is SIGUSR1 then ltp-pan will behave as if -y had not been specified.
$ ltp-pan -n ex1 -s 10 -x 3 echo hello The next example will use this command file. Call this /tmp/cmds1.
----------cut------
fido ls /bin
rover echo hello wally
gidget sleep 2
lassie ls /etc
----------cut------
Using the above command file, /tmp/cmds1, run one command at a time, sequentially, running each command only once. If one command should fail then terminate immediately. An exit log is kept for all the commands. $ ltp-pan -n ex3 -S -A -f /tmp/cmds1 -l ex3.log Here is just a simple stress case. In this case the test will run for 24 hours, printing the output as a human readable format, with the test output at /tmp/output-file and all failed test commands (if you have any) at /tmp/fail-command-file. $ ltp-pan -n stress -e -p -q -S -t 24h -a stress -l logfile -f command-file \ -o /tmp/output-file -C /tmp/fail-command-file
----------cut------
larry ltp-pan -n ex4b -s10 -A -l ex4_%f.log echo hello
curly ltp-pan -n ex4c -S -A -f /tmp/cmds1 -l ex4_%f.log
moe echo done here
----------cut------
The following will run commands from the command file, keeping two at a time running, choosing them sequentially, and terminating if any of them exits non-zero. $ ltp-pan -n ex4 -x2 -A -S -f /tmp/cmds2 Now run the commands in /tmp/cmds2, but this time we want to recover if one of the commands should exit non-zero. In this example it is possible for the "larry" or "curly" tags to exit non-zero. When this happens the ltp-pan will kill all active tags, making sure both larry and curly are dead, and then will continue scheduling--ensuring that our "done here" message comes out no matter what. $ ltp-pan -n ex5 -x2 -A -S -y -f /tmp/cmds2
ZOO If set, should name the directory where the active file should be placed. This is ignored if -a is specified.
active Default name of active file if -a is not specified. This is prefixed by the directory name found in the ZOO environment variable.
PAN_STOP_FILE The creation of this file in the defined TMP directory will cause ltp-pan to execute one more loop and stop. This is useful when testing needs to be stopped before its scheduled stop time (-t). By doing a 'touch' on this file, testing is ended, i.e. touch /tmp/runalltests-2345/PAN_STOP_FILE