Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
some new files used to check Tesh
[simgrid.git] / tools / tesh2 / examples / jobs.tesh
diff --git a/tools/tesh2/examples/jobs.tesh b/tools/tesh2/examples/jobs.tesh
new file mode 100644 (file)
index 0000000..4e9a0da
--- /dev/null
@@ -0,0 +1,28 @@
+#! ./tesh\r
+\r
+D this Tesh unit tests the option of the command line `--jobs'\r
+\r
+< #include <stdlib.h>\r
+< #include <stdio.h>\r
+< \r
+< int\r
+< main(int argc, char* argv[])\r
+< {\r
+<      printf("Hello Tesh\n");\r
+<      \r
+<      return EXIT_SUCCESS;\r
+< }\r
+< \r
+$ cat > job.c\r
+\r
+$ gcc -o job job.c\r
+\r
+# 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
+\r
+\r
+$ rm -f job\r
+\r
+$ rm -f job.c
\ No newline at end of file