Command line call examplesΒΆ
A call example of the the command line interface, for syntax details refer to the call wrapper epyunit .
The test executable is a simple shell script named ‘myscript.sh’ [doc] [source] demonstrating some of the major cases. The indication supported by this simulated blackbox here consists of ‘signalling’ strings, exit values, and none of them as the user defined default case.
The commandline wrapper calls are:
case ‘A’:
epyunit \ --ok-stdout="arbitrary signalling OK string" \ myscript.sh OK
case ‘B’:
epyunit \ --nok-stderr="arbitrary signalling ERROR string" \ myscript.sh NOK
case ‘C’:
epyunit \ --ok-stdout="arbitrary signalling OK string" \ --nok-stderr="arbitrary signalling ERROR string" \ --prio-ok myscript.sh PRIO
case ‘D’:
epyunit \ --ok-stdout="arbitrary signalling OK string" \ --nok-stderr="arbitrary signalling ERROR string" \ --exit-ok \ myscript.sh EXITOK
case ‘E’:
epyunit \ --ok-stdout="arbitrary signalling OK string" \ --nok-stderr="arbitrary signalling ERROR string" \ --exit-nok \ myscript.sh EXITNOK
case ‘F’:
epyunit \ --ok-stdout="arbitrary signalling NOK string" \ --nok-stderr="arbitrary signalling ERROR string" \ --exit=7 \ myscript.sh EXIT7
case ‘G’:
epyunit \ --ok-stdout="arbitrary signalling OK string" \ --nok-stderr="arbitrary signalling ERROR string" \ --exit-ignore \ --default-ok \ myscript.sh
The complete source is contained in the module directory ‘epyunit/myscript.py’.
For detailed examples refer to the subdirectories of the source package for:
For examples of application within Eclipse refer to