Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Huge code cleanup + implementation of the background commands. Damn thing, that was...
[simgrid.git] / tools / tesh / IO-orders.tesh
diff --git a/tools/tesh/IO-orders.tesh b/tools/tesh/IO-orders.tesh
new file mode 100644 (file)
index 0000000..4862eb1
--- /dev/null
@@ -0,0 +1,57 @@
+
+p This tests that TESH accepts any order for the input/output
+
+p Order: in, out, cmd
+< < TOTO
+< > TOTO
+< $ cat
+> [0.000000] [tesh/INFO] Test suite from stdin
+> [0.000000] [tesh/INFO] [stdin:3] cat
+> [0.000000] [tesh/INFO] Test suite from stdin OK
+$ ./tesh
+
+p Order: out, in, cmd
+< > TOTO
+< < TOTO
+< $ cat
+> [0.000000] [tesh/INFO] Test suite from stdin
+> [0.000000] [tesh/INFO] [stdin:3] cat
+> [0.000000] [tesh/INFO] Test suite from stdin OK
+$ ./tesh
+
+p Order: out, cmd, in
+< > TOTO
+< $ cat
+< < TOTO
+> [0.000000] [tesh/INFO] Test suite from stdin
+> [0.000000] [tesh/INFO] [stdin:2] cat
+> [0.000000] [tesh/INFO] Test suite from stdin OK
+$ ./tesh
+
+p Order: in, cmd, out
+< < TOTO
+< $ cat
+< > TOTO
+> [0.000000] [tesh/INFO] Test suite from stdin
+> [0.000000] [tesh/INFO] [stdin:2] cat
+> [0.000000] [tesh/INFO] Test suite from stdin OK
+$ ./tesh
+
+p Order: cmd, out, in
+< $ cat
+< > TOTO
+< < TOTO
+> [0.000000] [tesh/INFO] Test suite from stdin
+> [0.000000] [tesh/INFO] [stdin:1] cat
+> [0.000000] [tesh/INFO] Test suite from stdin OK
+$ ./tesh
+
+p Order: cmd, in, out
+< $ cat
+< < TOTO
+< > TOTO
+> [0.000000] [tesh/INFO] Test suite from stdin
+> [0.000000] [tesh/INFO] [stdin:1] cat
+> [0.000000] [tesh/INFO] Test suite from stdin OK
+$ ./tesh
+