Menu

TestSpecification

Todd Shoenfelt

Test Specifcations

Test Batch

The test batch configuration file (-s argument to pest.pl) contains a list of one or more test specifications described below.

Parameters

These parameters describe the process(es) and their execution attributes.

- testid: 234
  hosttype: linux
  command: sleep 15
  presleep: 1
  postsleep: 1
  count: 2
  bg: 1

- testid: 111
  command: exit 1
  haltfail: 1

- testid: 246
  host: 127.0.0.1
  command: hostname
  wait: [234]

- testid: 244
  hosttype: windows
  command: dir C:\
  • testid - A unique test case indentifier corresponding to your test case database.
  • host - The host name or IP address corresponding to a host in your testbed specification on which to execute the command. (can't be used with 'hosttype')
  • hosttype - A host type corresponding to a type in your testbed specification. This results in the commamnd being run on all the hosts of that type. (can't be used with 'host')
  • command - The command to run on the remote host.
  • presleep - High resolution seconds to sleep before executing the command.
  • postsleep - High resolution seconds to sleep after a command completes.
  • count - The number of times to execute the command on each host.
  • bg - Background the command and don't wait on it to complete before starting the next command.
  • haltfail - If this process fails, forcibly kill all remaining processes and exit the harness.
  • wait - Wait on a list of tests before starting this one.

Related

Wiki: ConfigFiles

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.