sh-test man page on Inferno

Man page or keyword search:  
man Server   579 pages
apropos Keyword Search (all sections)
Output format
Inferno logo
[printable version]

SH-TEST(1)							    SH-TEST(1)

NAME
       report - shell module for test reporting.

SYNOPSIS
       load test

       report severity verbosity message[...]

DESCRIPTION
       Its is a loadable module for sh(1) that provides a simple error report‐
       ing facility for tests which can be run by itest(1).  It	 provides  one
       command, report, which is used by a test to report a message with spec‐
       ified severity and verbosity.  Severity must be one of INF, WRN, ERR or
       FTL  for	 Information,  warnings, errors and fatal errors respectively.
       Verbosity is an integer between 0  and  9.   For	 informatory  messages
       (severity  INF), the message will only be displayed if the current ver‐
       bosity level is greater than or equal to verbosity.

EXAMPLE
       #!/dis/sh

       load std test

       echo 1 > /tmp/a
       echo 2 >/tmp/b
       report INF 5 testing cmp command
       if {cmp /tmp/a /tmp/b} {
	    report ERR 0 'cmp failed - reported different files as the same'
       }{
	    report INF 6 'cmp ok - reported different files as different'
       }

SEE ALSO
       itest(1)

								    SH-TEST(1)
[top]

List of man pages available for Inferno

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net