Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
The path of tesh is added in the environment variable PATH so, do not use the relativ...
authorcherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 25 Jun 2008 07:53:01 +0000 (07:53 +0000)
committercherierm <cherierm@48e7efb5-ca39-0410-a469-dd3cf9ba447f>
Wed, 25 Jun 2008 07:53:01 +0000 (07:53 +0000)
git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5803 48e7efb5-ca39-0410-a469-dd3cf9ba447f

tools/tesh2/examples/IO-orders.tesh
tools/tesh2/examples/catch-return.tesh
tools/tesh2/examples/catch-signal.tesh
tools/tesh2/examples/catch-timeout.tesh
tools/tesh2/examples/catch-wrong-output.tesh
tools/tesh2/examples/cd.tesh
tools/tesh2/examples/jobs.tesh
tools/tesh2/examples/keep-going-unit.tesh
tools/tesh2/examples/keep-going.tesh
tools/tesh2/examples/set-ignore-output.tesh
tools/tesh2/examples/var.tesh

index 3cc8033..20386a2 100644 (file)
@@ -8,7 +8,7 @@ p Order: in, out, cmd
 > Test unit from stdin
 > [stdin:3] cat
 > Test unit from stdin OK
-$ ./tesh --log="log.thresh:info tesh.fmt:%m%n"
+$ tesh --log="log.thresh:info tesh.fmt:%m%n"
 
 p Order: out, in, cmd
 < > TOTO
@@ -17,7 +17,7 @@ p Order: out, in, cmd
 > Test unit from stdin
 > [stdin:3] cat
 > Test unit from stdin OK
-$ ./tesh --log="log.thresh:info tesh.fmt:%m%n"
+$ tesh --log="log.thresh:info tesh.fmt:%m%n"
 
 p Order: out, cmd, in
 < > TOTO
@@ -26,7 +26,7 @@ p Order: out, cmd, in
 > Test unit from stdin
 > [stdin:2] cat
 > Test unit from stdin OK
-$ ./tesh --log="log.thresh:info tesh.fmt:%m%n"
+$ tesh --log="log.thresh:info tesh.fmt:%m%n"
 
 p Order: in, cmd, out
 < < TOTO
@@ -35,5 +35,5 @@ p Order: in, cmd, out
 > Test unit from stdin
 > [stdin:2] cat
 > Test unit from stdin OK
-$ ./tesh --log="log.thresh:info tesh.fmt:%m%n"
+$ tesh --log="log.thresh:info tesh.fmt:%m%n"
 
index 6411ec9..1f8812f 100644 (file)
@@ -1 +1 @@
-#! ./tesh\r# This suite builds and uses a program returning 1.\r# tesh must detect this condition and report the issue.\r\r$ rm -rf temp_testdir\r$ mkdir temp_testdir\r\r$ cd temp_testdir\r\r< #include <stdlib.h>\r< int main(void) {\r<   exit(1);\r< }\r$ cat > return1.c\r\r$ gcc -o return1 return1.c\r\r! expect return $EEXITCODENOTMATCH\r< $ ./return1\r../tesh --log="log.thresh:info tesh.fmt:%m%n"\r> Test unit from stdin\r> [stdin:1] ./return1\r> [stdin:1] ./return1 : NOK (returned code `1' instead `0')\r> Output of <stdin:1> so far: \r> ||\r> Test unit `stdin': NOK (<stdin:1> exit code mismatch)\r\r\r\r$ cd ..\r$ rm -rf temp_testdir\r
\ No newline at end of file
+#! ./tesh\r# This suite builds and uses a program returning 1.\r# tesh must detect this condition and report the issue.\r\r$ rm -rf temp_testdir\r$ mkdir temp_testdir\r\r$ cd temp_testdir\r\r< #include <stdlib.h>\r< int main(void) {\r<   exit(1);\r< }\r$ cat > return1.c\r\r$ gcc -o return1 return1.c\r\r! expect return $EEXITCODENOTMATCH\r< $ ./return1\r$ tesh --log="log.thresh:info tesh.fmt:%m%n"\r> Test unit from stdin\r> [stdin:1] ./return1\r> [stdin:1] ./return1 : NOK (returned code `1' instead `0')\r> Output of <stdin:1> so far: \r> ||\r> Test unit `stdin': NOK (<stdin:1> exit code mismatch)\r\r\r\r$ cd ..\r$ rm -rf temp_testdir\r
\ No newline at end of file
index c2e425d..1740613 100644 (file)
@@ -17,7 +17,7 @@ $ gcc -o segfault segfault.c
 
 ! expect return $EUNXPSIG
 < $ ./segfault
-$ ../tesh --log="log.thresh:info tesh.fmt:%m%n"
+$ tesh --log="log.thresh:info tesh.fmt:%m%n"
 > Test unit from stdin
 > [stdin:1] ./segfault
 > [stdin:1] `./segfault' : NOK (unexpected signal `SIGSEGV' caught)
index 9045377..1f2e8f9 100644 (file)
@@ -12,4 +12,4 @@
 > [stdin:2] Kill the process `sleep 6'
 > [stdin:2] No output before timeout
 > Test unit `stdin': NOK (<stdin:2> command timed out)
-$ ./tesh --log="log.thresh:info tesh.fmt:%m%n"
+$ tesh --log="log.thresh:info tesh.fmt:%m%n"
index 75999b6..b4179ac 100644 (file)
@@ -6,7 +6,7 @@ p This tests whether TESH detects wrong outputs
 < > TOTO
 < < TUTU
 < $ cat
-$ ./tesh --log="log.thresh:info tesh.fmt:%m%n"
+$ tesh --log="log.thresh:info tesh.fmt:%m%n"
 > Test unit from stdin
 > [stdin:3] cat
 > [stdin:3] `cat' : NOK (outputs mismatch):
index e268620..7f8cde7 100644 (file)
@@ -16,7 +16,7 @@ $ ls
 > [stdin:1] cd toto
 > [stdin:1] Chdir to toto failed: no such file or directory
 > Test unit `stdin': NOK (<stdin:1> no such file or directory)
-$ ../tesh --log="log.thresh:info tesh.fmt:%m%n"
+$ tesh --log="log.thresh:info tesh.fmt:%m%n"
 
 # The next command checks that there is a testdir_temp in the upper directory, 
 # ie that mkdir and cd both worked.
index 4198bb3..0a2a916 100644 (file)
@@ -20,7 +20,7 @@ $ gcc -o job job.c
 # Ignore output of the command because we can't known the order of the execution of the Tesh files.\r
 ! output ignore\r
 \r
-$ ./tesh --log="log.thresh:info tesh.fmt:%m%n" --silent --jobs --directory=examples jobs1.tesh jobs2.tesh jobs3.tesh jobs4.tesh jobs5.tesh jobs6.tesh jobs7.tesh jobs8.tesh jobs9.tesh \r
+$ tesh --log="log.thresh:info tesh.fmt:%m%n" --silent --jobs --directory=${teshexample_dir:=.} jobs1.tesh jobs2.tesh jobs3.tesh jobs4.tesh jobs5.tesh jobs6.tesh jobs7.tesh jobs8.tesh jobs9.tesh \r
 \r
 \r
 $ rm -f job\r
index 342893a..b2b00cb 100644 (file)
@@ -39,7 +39,7 @@ $ gcc -o job job.c
 < ! expect return 0\r
 < > Hello Tesh\r
 < $ ./job\r
-$ ./tesh --log="log.thresh:info tesh.fmt:%m%n"\r
+$ tesh --log="log.thresh:info tesh.fmt:%m%n"\r
 > Test unit from stdin\r
 > [stdin:3] ./job\r
 > [stdin:3] ./job : NOK (returned code `0' instead `1')\r
@@ -71,7 +71,7 @@ $ ./tesh --log="log.thresh:info tesh.fmt:%m%n"
 < ! expect return 0\r
 < > Hello Tesh\r
 < $ ./job\r
-$ ./tesh --log="log.thresh:info tesh.fmt:%m%n"  --keep-going-unit\r
+$ tesh --log="log.thresh:info tesh.fmt:%m%n"  --keep-going-unit\r
 > Test unit from stdin\r
 > [stdin:3] ./job\r
 > [stdin:3] ./job : NOK (returned code `0' instead `1')\r
index 7cd7929..4118f3b 100644 (file)
@@ -63,7 +63,7 @@ $ cat > file2.tesh
 ! expect return $EEXITCODENOTMATCH\r
 \r
 # in this case the option `keep-going' is not specified so Tesh detects the error and interrupt all the folowing units.\r
-$ ./tesh --log="log.thresh:info tesh.fmt:%m%n" file1.tesh file2.tesh\r
+$ tesh --log="log.thresh:info tesh.fmt:%m%n" file1.tesh file2.tesh\r
 > Test unit from file1.tesh\r
 > [file1.tesh:3] ./job\r
 > [file1.tesh:3] ./job : NOK (returned code `0' instead `1')\r
@@ -117,7 +117,7 @@ $ cat > file2.tesh
 ! expect return $EEXITCODENOTMATCH\r
 \r
 # in this case the option `keep-going' is specified so, Tesh execute all the other units.\r
-$ ./tesh --log="log.thresh:info tesh.fmt:%m%n" file1.tesh file2.tesh  --keep-going\r
+$ tesh --log="log.thresh:info tesh.fmt:%m%n" file1.tesh file2.tesh  --keep-going\r
 > Test unit from file1.tesh\r
 > [file1.tesh:3] ./job\r
 > [file1.tesh:3] ./job : NOK (returned code `0' instead `1')\r
index 818cf38..ea4db9d 100644 (file)
@@ -6,7 +6,7 @@ p This tests whether TESH accepts to ignore command output
 < > TOTO
 < < TUTU
 < $ cat
-$ ./tesh --log="log.thresh:info tesh.fmt:%m%n"
+$ tesh --log="log.thresh:info tesh.fmt:%m%n"
 > Test unit from stdin
 > [stdin:4] cat
 > (ignoring the output of <stdin:4> as requested)
index 5269643..ecc2639 100644 (file)
@@ -23,7 +23,7 @@ D Usage of tesh variables
 ! expect return $ESYNTAX
 < ! include-file=
 < ! include $include-file
-$ ./tesh --log="log.thresh:info tesh.fmt:%m%n"
+$ tesh --log="log.thresh:info tesh.fmt:%m%n"
 > Test unit from stdin
 > [stdin:1] Undefined variable `(include-file)'
 > Test unit `stdin': NOK (<stdin:1> syntax error)
@@ -100,7 +100,7 @@ p On this platform ENOENT is: $ENOENT
 ! expect return $ESYNTAX
 < ! ENOENT=300
 < $ echo $ENOENT
-$ ./tesh --log="log.thresh:info tesh.fmt:%m%n"
+$ tesh --log="log.thresh:info tesh.fmt:%m%n"
 > Test unit from stdin
 > [stdin:1] A system variable named `(ENOENT)' already exists
 > Test unit `stdin': NOK (<stdin:1> syntax error)