Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Last corrections of Tesh tool.
[simgrid.git] / tools / tesh2 / examples / suite-usage.tesh
index 9620c53..140234b 100644 (file)
@@ -1,39 +1,24 @@
-#! ./tesh\r
-\r
-# This suite show how to use the suite concept. A suite is specified\r
-# by the metacommand suite have a description and contains some units.\r
-\r
-# declare and define the variable dir\r
-! testdir=temp_testdir\r
-\r
-# delete the temp_testdir if it already exists\r
-$ rm -rf $testdir\r
-\r
-# create the tempory test directory\r
-$ mkdir $testdir\r
-\r
-# enter in the tempory test directory\r
-$ cd $testdir\r
-\r
-$ cd ..\r
-\r
-$ rm -rf $testdir\r
-\r
-# this is the first suite\r
-! suite first suite\r
-! include set-timeout.tesh display how to use the timeout metacommand\r
-! include set-signal.tesh display how to use the signal metacommand\r
-# this unit has no description (the file name of the unit will be used)\r
-! include background.tesh\r
-\r
-# this is the second suite\r
-! suite second suite\r
-! include cd.tesh\r
-! include basic.tesh\r
-! include bg-basic.tesh like basic but used backgrounded commands\r
-\r
-# a simple inclusion\r
-! include catch-return.tesh            \r
-\r
-\r
-\r
+# 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
+
+
+
+