X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/72a105702165975d1702e64af7d28b60eb311672..f2e52e70789159e58204f2cc770dc5f7a4c6498b:/tools/tesh2/examples/suite-usage.tesh?ds=sidebyside diff --git a/tools/tesh2/examples/suite-usage.tesh b/tools/tesh2/examples/suite-usage.tesh index 9620c533ee..140234b501 100644 --- a/tools/tesh2/examples/suite-usage.tesh +++ b/tools/tesh2/examples/suite-usage.tesh @@ -1,39 +1,24 @@ -#! ./tesh - -# This suite show how to use the suite concept. A suite is specified -# by the metacommand suite have a description and contains some units. - -# declare and define the variable dir -! testdir=temp_testdir - -# delete the temp_testdir if it already exists -$ rm -rf $testdir - -# create the tempory test directory -$ mkdir $testdir - -# enter in the tempory test directory -$ cd $testdir - -$ cd .. - -$ rm -rf $testdir - -# this is the first suite -! suite first suite -! include set-timeout.tesh display how to use the timeout metacommand -! include set-signal.tesh display how to use the signal metacommand -# this unit has no description (the file name of the unit will be used) -! include background.tesh - -# this is the second suite -! suite second suite -! include cd.tesh -! include basic.tesh -! include bg-basic.tesh like basic but used backgrounded commands - -# a simple inclusion -! include catch-return.tesh - - - +# some suites +! suite `description of first suite' +! include catch-return.tesh +! include catch-signal.tesh +! include set-return.tesh + +! suite `description of the second suite' +! include catch-return.tesh +! include catch-signal.tesh +! include set-timeout.tesh + + +# a command +$ echo Hello Tesh +> Hello Tesh + +# some includes +! include catch-wrong-output.tesh + +! include set-signal.tesh + + + +