summaryrefslogtreecommitdiffstats
path: root/tests/elementary_moves
diff options
context:
space:
mode:
authorpgen <p.gen.progs@gmail.com>2018-05-11 15:52:00 +0200
committerpgen <p.gen.progs@gmail.com>2018-05-11 17:37:28 +0200
commitb1dcb7e0487b48eedd140385428ae8dafd5ec564 (patch)
tree010edc40219b63f3867857370ed62c425f15bded /tests/elementary_moves
parent95c9eb53593c554ff443cb94a220062b6e36bb31 (diff)
Add the first roll of an automated testing system.
Diffstat (limited to 'tests/elementary_moves')
-rw-r--r--tests/elementary_moves/t0001.good11
-rw-r--r--tests/elementary_moves/t0001.in10
-rw-r--r--tests/elementary_moves/t0001.tst4
-rw-r--r--tests/elementary_moves/t0002.good11
l---------tests/elementary_moves/t0002.in1
-rw-r--r--tests/elementary_moves/t0002.tst4
-rw-r--r--tests/elementary_moves/t0003.good11
l---------tests/elementary_moves/t0003.in1
-rw-r--r--tests/elementary_moves/t0003.tst4
-rw-r--r--tests/elementary_moves/t0004.good11
l---------tests/elementary_moves/t0004.in1
-rw-r--r--tests/elementary_moves/t0004.tst4
-rw-r--r--tests/elementary_moves/t0005.good13
-rw-r--r--tests/elementary_moves/t0005.in2
-rw-r--r--tests/elementary_moves/t0005.tst4
-rw-r--r--tests/elementary_moves/t0006.good13
-rw-r--r--tests/elementary_moves/t0006.in2
-rw-r--r--tests/elementary_moves/t0006.tst4
-rw-r--r--tests/elementary_moves/t0007.good13
-rw-r--r--tests/elementary_moves/t0007.in2
-rw-r--r--tests/elementary_moves/t0007.tst4
-rw-r--r--tests/elementary_moves/t0008.good13
-rw-r--r--tests/elementary_moves/t0008.in2
-rw-r--r--tests/elementary_moves/t0008.tst4
-rw-r--r--tests/elementary_moves/t0009.good13
-rw-r--r--tests/elementary_moves/t0009.in2
-rw-r--r--tests/elementary_moves/t0009.tst4
27 files changed, 168 insertions, 0 deletions
diff --git a/tests/elementary_moves/t0001.good b/tests/elementary_moves/t0001.good
new file mode 100644
index 0000000..0201c13
--- /dev/null
+++ b/tests/elementary_moves/t0001.good
@@ -0,0 +1,11 @@
+$ OUT=$(smenu t0001.in)
+
+1 2 3 4 5 6 7 8 9 10
+6:07
+$
+
+$ echo ":$OUT:"
+
+:4:
+
+$ exit 0
diff --git a/tests/elementary_moves/t0001.in b/tests/elementary_moves/t0001.in
new file mode 100644
index 0000000..f00c965
--- /dev/null
+++ b/tests/elementary_moves/t0001.in
@@ -0,0 +1,10 @@
+1
+2
+3
+4
+5
+6
+7
+8
+9
+10
diff --git a/tests/elementary_moves/t0001.tst b/tests/elementary_moves/t0001.tst
new file mode 100644
index 0000000..8f44bfa
--- /dev/null
+++ b/tests/elementary_moves/t0001.tst
@@ -0,0 +1,4 @@
+\S[10]OUT=$(smenu t0001.in)
+\S[100]\s[120]lll\r
+\s[0]echo ":$OUT:"
+exit 0
diff --git a/tests/elementary_moves/t0002.good b/tests/elementary_moves/t0002.good
new file mode 100644
index 0000000..c9d6f3b
--- /dev/null
+++ b/tests/elementary_moves/t0002.good
@@ -0,0 +1,11 @@
+$ OUT=$(smenu t0002.in)
+
+1 2 3 4 5 6 7 8 9 10
+0:07
+$
+
+$ echo ":$OUT:"
+
+:1:
+
+$ exit 0
diff --git a/tests/elementary_moves/t0002.in b/tests/elementary_moves/t0002.in
new file mode 120000
index 0000000..e43a8d5
--- /dev/null
+++ b/tests/elementary_moves/t0002.in
@@ -0,0 +1 @@
+./t0001.in \ No newline at end of file
diff --git a/tests/elementary_moves/t0002.tst b/tests/elementary_moves/t0002.tst
new file mode 100644
index 0000000..4f58b81
--- /dev/null
+++ b/tests/elementary_moves/t0002.tst
@@ -0,0 +1,4 @@
+\S[10]OUT=$(smenu t0002.in)
+\S[100]\s[120]hhh\r
+\s[0]echo ":$OUT:"
+exit 0
diff --git a/tests/elementary_moves/t0003.good b/tests/elementary_moves/t0003.good
new file mode 100644
index 0000000..94cbf36
--- /dev/null
+++ b/tests/elementary_moves/t0003.good
@@ -0,0 +1,11 @@
+$ OUT=$(smenu t0003.in)
+
+1 2 3 4 5 6 7 8 9 10
+18:07 19:07
+$
+
+$ echo ":$OUT:"
+
+:10:
+
+$ exit 0
diff --git a/tests/elementary_moves/t0003.in b/tests/elementary_moves/t0003.in
new file mode 120000
index 0000000..e43a8d5
--- /dev/null
+++ b/tests/elementary_moves/t0003.in
@@ -0,0 +1 @@
+./t0001.in \ No newline at end of file
diff --git a/tests/elementary_moves/t0003.tst b/tests/elementary_moves/t0003.tst
new file mode 100644
index 0000000..893859e
--- /dev/null
+++ b/tests/elementary_moves/t0003.tst
@@ -0,0 +1,4 @@
+\S[10]OUT=$(smenu t0003.in)
+\S[100]\s[120]llllllllll\r
+\s[0]echo ":$OUT:"
+exit 0
diff --git a/tests/elementary_moves/t0004.good b/tests/elementary_moves/t0004.good
new file mode 100644
index 0000000..d68a7b6
--- /dev/null
+++ b/tests/elementary_moves/t0004.good
@@ -0,0 +1,11 @@
+$ OUT=$(smenu t0004.in)
+
+1 2 3 4 5 6 7 8 9 10
+8:07
+$
+
+$ echo ":$OUT:"
+
+:5:
+
+$ exit 0
diff --git a/tests/elementary_moves/t0004.in b/tests/elementary_moves/t0004.in
new file mode 120000
index 0000000..e43a8d5
--- /dev/null
+++ b/tests/elementary_moves/t0004.in
@@ -0,0 +1 @@
+./t0001.in \ No newline at end of file
diff --git a/tests/elementary_moves/t0004.tst b/tests/elementary_moves/t0004.tst
new file mode 100644
index 0000000..a7730cb
--- /dev/null
+++ b/tests/elementary_moves/t0004.tst
@@ -0,0 +1,4 @@
+\S[10]OUT=$(smenu t0004.in)
+\S[100]\s[120]lllhhhllll\r
+\s[0]echo ":$OUT:"
+exit 0
diff --git a/tests/elementary_moves/t0005.good b/tests/elementary_moves/t0005.good
new file mode 100644
index 0000000..91f19db
--- /dev/null
+++ b/tests/elementary_moves/t0005.good
@@ -0,0 +1,13 @@
+$ OUT=$(smenu -l t0005.in)
+
+1 2 3 4 5
+8:07
+6 7 8 9 10
+
+$
+
+$ echo ":$OUT:"
+
+:5:
+
+$ exit 0
diff --git a/tests/elementary_moves/t0005.in b/tests/elementary_moves/t0005.in
new file mode 100644
index 0000000..f808638
--- /dev/null
+++ b/tests/elementary_moves/t0005.in
@@ -0,0 +1,2 @@
+1 2 3 4 5
+6 7 8 9 10
diff --git a/tests/elementary_moves/t0005.tst b/tests/elementary_moves/t0005.tst
new file mode 100644
index 0000000..94a5fa3
--- /dev/null
+++ b/tests/elementary_moves/t0005.tst
@@ -0,0 +1,4 @@
+\S[10]OUT=$(smenu -l t0005.in)
+\S[100]\s[120]ljlkljlk\r
+\s[0]echo ":$OUT:"
+exit 0
diff --git a/tests/elementary_moves/t0006.good b/tests/elementary_moves/t0006.good
new file mode 100644
index 0000000..938244e
--- /dev/null
+++ b/tests/elementary_moves/t0006.good
@@ -0,0 +1,13 @@
+$ OUT=$(smenu -l t0006.in)
+
+1 2 3 4 5
+8:07
+6 7 8 9 10
+
+$
+
+$ echo ":$OUT:"
+
+:5:
+
+$ exit 0
diff --git a/tests/elementary_moves/t0006.in b/tests/elementary_moves/t0006.in
new file mode 100644
index 0000000..f808638
--- /dev/null
+++ b/tests/elementary_moves/t0006.in
@@ -0,0 +1,2 @@
+1 2 3 4 5
+6 7 8 9 10
diff --git a/tests/elementary_moves/t0006.tst b/tests/elementary_moves/t0006.tst
new file mode 100644
index 0000000..09b9cb9
--- /dev/null
+++ b/tests/elementary_moves/t0006.tst
@@ -0,0 +1,4 @@
+\S[10]OUT=$(smenu -l t0006.in)
+\S[100]\s[120]ljjlkkljjlkk\r
+\s[0]echo ":$OUT:"
+exit 0
diff --git a/tests/elementary_moves/t0007.good b/tests/elementary_moves/t0007.good
new file mode 100644
index 0000000..923ffb9
--- /dev/null
+++ b/tests/elementary_moves/t0007.good
@@ -0,0 +1,13 @@
+$ OUT=$(smenu -l t0007.in)
+
+1 2 3 4 5
+8:07
+6 7 8 9 10
+
+$
+
+$ echo ":$OUT:"
+
+:5:
+
+$ exit 0
diff --git a/tests/elementary_moves/t0007.in b/tests/elementary_moves/t0007.in
new file mode 100644
index 0000000..f808638
--- /dev/null
+++ b/tests/elementary_moves/t0007.in
@@ -0,0 +1,2 @@
+1 2 3 4 5
+6 7 8 9 10
diff --git a/tests/elementary_moves/t0007.tst b/tests/elementary_moves/t0007.tst
new file mode 100644
index 0000000..0f4d899
--- /dev/null
+++ b/tests/elementary_moves/t0007.tst
@@ -0,0 +1,4 @@
+\S[10]OUT=$(smenu -l t0007.in)
+\S[100]\s[120]lljjllkklljjllkkhhjjhhkkhhjjllkk\r
+\s[0]echo ":$OUT:"
+exit 0
diff --git a/tests/elementary_moves/t0008.good b/tests/elementary_moves/t0008.good
new file mode 100644
index 0000000..73b428d
--- /dev/null
+++ b/tests/elementary_moves/t0008.good
@@ -0,0 +1,13 @@
+$ OUT=$(smenu -N. -l t0008.in)
+
+ 1) 1 2) 2 3) 3 4) 4 5) 5
+0:01 1:01 2:01 3:01 7:01 8:01 9:01 10:01 14:01 15:01 16:01 17:01 21:01 22:01 23:01 24:01 28:01 29:01 30:01 31:01 33:07
+ 6) 6 7) 7 8) 8 9) 9 10) 10
+0:01 1:01 2:01 3:01 7:01 8:01 9:01 10:01 14:01 15:01 16:01 17:01 21:01 22:01 23:01 24:01 28:01 29:01 30:01 31:01
+$
+
+$ echo ":$OUT:"
+
+:5:
+
+$ exit 0
diff --git a/tests/elementary_moves/t0008.in b/tests/elementary_moves/t0008.in
new file mode 100644
index 0000000..f808638
--- /dev/null
+++ b/tests/elementary_moves/t0008.in
@@ -0,0 +1,2 @@
+1 2 3 4 5
+6 7 8 9 10
diff --git a/tests/elementary_moves/t0008.tst b/tests/elementary_moves/t0008.tst
new file mode 100644
index 0000000..364cb9b
--- /dev/null
+++ b/tests/elementary_moves/t0008.tst
@@ -0,0 +1,4 @@
+\S[10]OUT=$(smenu -N. -l t0008.in)
+\S[100]\s[120]lljjllkklljjllkkhhjjhhkkhhjjllkk\r
+\s[0]echo ":$OUT:"
+exit 0
diff --git a/tests/elementary_moves/t0009.good b/tests/elementary_moves/t0009.good
new file mode 100644
index 0000000..7796f3f
--- /dev/null
+++ b/tests/elementary_moves/t0009.good
@@ -0,0 +1,13 @@
+$ OUT=$(smenu -U 4 -l t0009.in)
+
+ 1) 1 2) 2 3) 3 4 4) 5
+0:01 1:01 2:01 3:01 7:01 8:01 9:01 10:01 14:01 15:01 16:01 17:01 28:01 29:01 30:01 31:01 33:07
+ 5) 6 6) 7 7) 8 8) 9 9) 10
+0:01 1:01 2:01 3:01 7:01 8:01 9:01 10:01 14:01 15:01 16:01 17:01 21:01 22:01 23:01 24:01 28:01 29:01 30:01 31:01
+$
+
+$ echo ":$OUT:"
+
+:5:
+
+$ exit 0
diff --git a/tests/elementary_moves/t0009.in b/tests/elementary_moves/t0009.in
new file mode 100644
index 0000000..f808638
--- /dev/null
+++ b/tests/elementary_moves/t0009.in
@@ -0,0 +1,2 @@
+1 2 3 4 5
+6 7 8 9 10
diff --git a/tests/elementary_moves/t0009.tst b/tests/elementary_moves/t0009.tst
new file mode 100644
index 0000000..6f1fcbc
--- /dev/null
+++ b/tests/elementary_moves/t0009.tst
@@ -0,0 +1,4 @@
+\S[10]OUT=$(smenu -U 4 -l t0009.in)
+\S[100]\s[120]lljjllkklljjllkkhhjjhhkkhhjjllkk\r
+\s[0]echo ":$OUT:"
+exit 0