diff options
author | pgen <p.gen.progs@gmail.com> | 2018-05-11 15:52:00 +0200 |
---|---|---|
committer | pgen <p.gen.progs@gmail.com> | 2018-05-11 17:37:28 +0200 |
commit | b1dcb7e0487b48eedd140385428ae8dafd5ec564 (patch) | |
tree | 010edc40219b63f3867857370ed62c425f15bded /tests/tagging | |
parent | 95c9eb53593c554ff443cb94a220062b6e36bb31 (diff) |
Add the first roll of an automated testing system.
Diffstat (limited to 'tests/tagging')
43 files changed, 236 insertions, 0 deletions
diff --git a/tests/tagging/.out b/tests/tagging/.out new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/tagging/.out diff --git a/tests/tagging/data1 b/tests/tagging/data1 new file mode 100644 index 0000000..8495cff --- /dev/null +++ b/tests/tagging/data1 @@ -0,0 +1,3 @@ +a b c d +e f g h +u j k l diff --git a/tests/tagging/data2 b/tests/tagging/data2 new file mode 100644 index 0000000..dbbfda9 --- /dev/null +++ b/tests/tagging/data2 @@ -0,0 +1 @@ +" a " "b " " c" diff --git a/tests/tagging/t0001.good b/tests/tagging/t0001.good new file mode 100644 index 0000000..b632d9b --- /dev/null +++ b/tests/tagging/t0001.good @@ -0,0 +1,11 @@ +$ OUT=$(smenu -T " " t0001.in) + +a b c d e f g h u j k l +2:04 6:04 8:07 10:04 14:04 +$ + +$ echo ":$OUT:" + +:b d f h: + +$ exit 0 diff --git a/tests/tagging/t0001.in b/tests/tagging/t0001.in new file mode 120000 index 0000000..0abc8f1 --- /dev/null +++ b/tests/tagging/t0001.in @@ -0,0 +1 @@ +data1
\ No newline at end of file diff --git a/tests/tagging/t0001.tst b/tests/tagging/t0001.tst new file mode 100644 index 0000000..add3e24 --- /dev/null +++ b/tests/tagging/t0001.tst @@ -0,0 +1,4 @@ +\S[10]OUT=$(smenu -T " " t0001.in) +\S[100]\s[120]ltlltlltllthhh\r +\s[0]echo ":$OUT:" +exit 0 diff --git a/tests/tagging/t0002.good b/tests/tagging/t0002.good new file mode 100644 index 0000000..92e8370 --- /dev/null +++ b/tests/tagging/t0002.good @@ -0,0 +1,11 @@ +$ OUT=$(smenu -P " " t0002.in) + +a b c d e f g h u j k l +2:04 6:04 8:07 10:04 14:04 +$ + +$ echo ":$OUT:" + +:b d f h: + +$ exit 0 diff --git a/tests/tagging/t0002.in b/tests/tagging/t0002.in new file mode 120000 index 0000000..0abc8f1 --- /dev/null +++ b/tests/tagging/t0002.in @@ -0,0 +1 @@ +data1
\ No newline at end of file diff --git a/tests/tagging/t0002.tst b/tests/tagging/t0002.tst new file mode 100644 index 0000000..2da7c4c --- /dev/null +++ b/tests/tagging/t0002.tst @@ -0,0 +1,4 @@ +\S[10]OUT=$(smenu -P " " t0002.in) +\S[100]\s[120]ltlltlltllthhh\r +\s[0]echo ":$OUT:" +exit 0 diff --git a/tests/tagging/t0003.good b/tests/tagging/t0003.good new file mode 100644 index 0000000..4ef6ead --- /dev/null +++ b/tests/tagging/t0003.good @@ -0,0 +1,11 @@ +$ OUT=$(smenu -T " " t0003.in) + +a b c d e f g h u j k l +0:07 +$ + +$ echo ":$OUT:" + +:a: + +$ exit 0 diff --git a/tests/tagging/t0003.in b/tests/tagging/t0003.in new file mode 120000 index 0000000..0abc8f1 --- /dev/null +++ b/tests/tagging/t0003.in @@ -0,0 +1 @@ +data1
\ No newline at end of file diff --git a/tests/tagging/t0003.tst b/tests/tagging/t0003.tst new file mode 100644 index 0000000..c1fcdc6 --- /dev/null +++ b/tests/tagging/t0003.tst @@ -0,0 +1,4 @@ +\S[10]OUT=$(smenu -T " " t0003.in) +\S[100]\s[120]ltlltlltthhthhthhthht\r +\s[0]echo ":$OUT:" +exit 0 diff --git a/tests/tagging/t0004.good b/tests/tagging/t0004.good new file mode 100644 index 0000000..ff13871 --- /dev/null +++ b/tests/tagging/t0004.good @@ -0,0 +1,11 @@ +$ OUT=$(smenu -P " " t0004.in) + +a b c d e f g h u j k l +0:07 +$ + +$ echo ":$OUT:" + +:a: + +$ exit 0 diff --git a/tests/tagging/t0004.in b/tests/tagging/t0004.in new file mode 120000 index 0000000..0abc8f1 --- /dev/null +++ b/tests/tagging/t0004.in @@ -0,0 +1 @@ +data1
\ No newline at end of file diff --git a/tests/tagging/t0004.tst b/tests/tagging/t0004.tst new file mode 100644 index 0000000..733c5a1 --- /dev/null +++ b/tests/tagging/t0004.tst @@ -0,0 +1,4 @@ +\S[10]OUT=$(smenu -P " " t0004.in) +\S[100]\s[120]ltlltlltthhthhthhthht\r +\s[0]echo ":$OUT:" +exit 0 diff --git a/tests/tagging/t0005.good b/tests/tagging/t0005.good new file mode 100644 index 0000000..07c5101 --- /dev/null +++ b/tests/tagging/t0005.good @@ -0,0 +1,11 @@ +$ OUT=$(smenu -T\\ue296b8 t0005.in) + +a b c d e f g h u j k l +0:04 2:07 4:04 6:04 8:04 10:04 +$ + +$ echo ":$OUT:" + +:a▸c▸d▸e▸f: + +$ exit 0 diff --git a/tests/tagging/t0005.in b/tests/tagging/t0005.in new file mode 120000 index 0000000..0abc8f1 --- /dev/null +++ b/tests/tagging/t0005.in @@ -0,0 +1 @@ +data1
\ No newline at end of file diff --git a/tests/tagging/t0005.tst b/tests/tagging/t0005.tst new file mode 100644 index 0000000..e12e6d4 --- /dev/null +++ b/tests/tagging/t0005.tst @@ -0,0 +1,4 @@ +\S[10]OUT=$(smenu -T\\\\ue296b8 t0005.in) +\S[100]\s[120]ltlltllththhththhtl\r +\s[0]echo ":$OUT:" +exit 0 diff --git a/tests/tagging/t0006.good b/tests/tagging/t0006.good new file mode 100644 index 0000000..38678f1 --- /dev/null +++ b/tests/tagging/t0006.good @@ -0,0 +1,11 @@ +$ OUT=$(smenu -P\\ue296b8 t0006.in) + +a b c d e f g h u j k l +0:04 2:07 4:04 6:04 8:04 10:04 +$ + +$ echo ":$OUT:" + +:d▸f▸e▸c▸a: + +$ exit 0 diff --git a/tests/tagging/t0006.in b/tests/tagging/t0006.in new file mode 120000 index 0000000..0abc8f1 --- /dev/null +++ b/tests/tagging/t0006.in @@ -0,0 +1 @@ +data1
\ No newline at end of file diff --git a/tests/tagging/t0006.tst b/tests/tagging/t0006.tst new file mode 100644 index 0000000..6dd5780 --- /dev/null +++ b/tests/tagging/t0006.tst @@ -0,0 +1,4 @@ +\S[10]OUT=$(smenu -P\\\\ue296b8 t0006.in) +\S[100]\s[120]ltlltllththhththhtl\r +\s[0]echo ":$OUT:" +exit 0 diff --git a/tests/tagging/t0007.good b/tests/tagging/t0007.good new file mode 100644 index 0000000..9f0cbbe --- /dev/null +++ b/tests/tagging/t0007.good @@ -0,0 +1,15 @@ +$ OUT=$(smenu -c -P\\ue296b8 t0007.in) + +a b c d +6:07 +e f g h + +u j k l +0:04 2:04 +$ + +$ echo ":$OUT:" + +:u▸j▸d: + +$ exit 0 diff --git a/tests/tagging/t0007.in b/tests/tagging/t0007.in new file mode 120000 index 0000000..0abc8f1 --- /dev/null +++ b/tests/tagging/t0007.in @@ -0,0 +1 @@ +data1
\ No newline at end of file diff --git a/tests/tagging/t0007.tst b/tests/tagging/t0007.tst new file mode 100644 index 0000000..5260ae7 --- /dev/null +++ b/tests/tagging/t0007.tst @@ -0,0 +1,4 @@ +\S[10]OUT=$(smenu -c -P\\\\ue296b8 t0007.in) +\S[100]\s[120]lllltllthhtjtlthhhthhht\r +\s[0]echo ":$OUT:" +exit 0 diff --git a/tests/tagging/t0008.good b/tests/tagging/t0008.good new file mode 100644 index 0000000..46e2057 --- /dev/null +++ b/tests/tagging/t0008.good @@ -0,0 +1,11 @@ +$ OUT=$(smenu -k -P: t0008.in) + + a b c +0:07 1:07 2:07 7:04 8:04 +$ + +$ echo ":$OUT:" + +: c: a : + +$ exit 0 diff --git a/tests/tagging/t0008.in b/tests/tagging/t0008.in new file mode 120000 index 0000000..fee93d1 --- /dev/null +++ b/tests/tagging/t0008.in @@ -0,0 +1 @@ +data2
\ No newline at end of file diff --git a/tests/tagging/t0008.tst b/tests/tagging/t0008.tst new file mode 100644 index 0000000..4090436 --- /dev/null +++ b/tests/tagging/t0008.tst @@ -0,0 +1,4 @@ +\S[10]OUT=$(smenu -k -P: t0008.in) +\S[100]\s[120]llththtlthh\r +\s[0]echo ":$OUT:" +exit 0 diff --git a/tests/tagging/t0009.good b/tests/tagging/t0009.good new file mode 100644 index 0000000..04ca8e8 --- /dev/null +++ b/tests/tagging/t0009.good @@ -0,0 +1,15 @@ +$ OUT=$(smenu -c -T " " t0009.in) + +a b c d + +e f g h +2:07 4:04 6:04 +u j k l +0:04 +$ + +$ echo ":$OUT:" + +:g h u: + +$ exit 0 diff --git a/tests/tagging/t0009.in b/tests/tagging/t0009.in new file mode 120000 index 0000000..0abc8f1 --- /dev/null +++ b/tests/tagging/t0009.in @@ -0,0 +1 @@ +data1
\ No newline at end of file diff --git a/tests/tagging/t0009.tst b/tests/tagging/t0009.tst new file mode 100644 index 0000000..2e71bb0 --- /dev/null +++ b/tests/tagging/t0009.tst @@ -0,0 +1,4 @@ +\S[10]OUT=$(smenu -c -T " " t0009.in) +\S[100]\s[120]jjththth\r +\s[0]echo ":$OUT:" +exit 0 diff --git a/tests/tagging/t0010.good b/tests/tagging/t0010.good new file mode 100644 index 0000000..16dcf78 --- /dev/null +++ b/tests/tagging/t0010.good @@ -0,0 +1,15 @@ +$ OUT=$(smenu -c -T -p t0010.in) + +a b c d + +e f g h +2:07 4:04 6:04 +u j k l +0:04 +$ + +$ echo ":$OUT:" + +:f g h u: + +$ exit 0 diff --git a/tests/tagging/t0010.in b/tests/tagging/t0010.in new file mode 120000 index 0000000..0abc8f1 --- /dev/null +++ b/tests/tagging/t0010.in @@ -0,0 +1 @@ +data1
\ No newline at end of file diff --git a/tests/tagging/t0010.tst b/tests/tagging/t0010.tst new file mode 100644 index 0000000..d050dc7 --- /dev/null +++ b/tests/tagging/t0010.tst @@ -0,0 +1,4 @@ +\S[10]OUT=$(smenu -c -T -p t0010.in) +\S[100]\s[120]jjththth\r +\s[0]echo ":$OUT:" +exit 0 diff --git a/tests/tagging/t0010.tst.out b/tests/tagging/t0010.tst.out new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/tests/tagging/t0010.tst.out diff --git a/tests/tagging/t0011.good b/tests/tagging/t0011.good new file mode 100644 index 0000000..2ea85c7 --- /dev/null +++ b/tests/tagging/t0011.good @@ -0,0 +1,15 @@ +$ OUT=$(smenu -c -P " " t0011.in) + +a b c d + +e f g h +2:07 4:04 6:04 +u j k l +0:04 +$ + +$ echo ":$OUT:" + +:u h g: + +$ exit 0 diff --git a/tests/tagging/t0011.in b/tests/tagging/t0011.in new file mode 120000 index 0000000..0abc8f1 --- /dev/null +++ b/tests/tagging/t0011.in @@ -0,0 +1 @@ +data1
\ No newline at end of file diff --git a/tests/tagging/t0011.tst b/tests/tagging/t0011.tst new file mode 100644 index 0000000..b7dff5a --- /dev/null +++ b/tests/tagging/t0011.tst @@ -0,0 +1,4 @@ +\S[10]OUT=$(smenu -c -P " " t0011.in) +\S[100]\s[120]jjththth\r +\s[0]echo ":$OUT:" +exit 0 diff --git a/tests/tagging/t0012.good b/tests/tagging/t0012.good new file mode 100644 index 0000000..5e538cd --- /dev/null +++ b/tests/tagging/t0012.good @@ -0,0 +1,15 @@ +$ OUT=$(smenu -c -P -p t0012.in) + +a b c d + +e f g h +2:07 4:04 6:04 +u j k l +0:04 +$ + +$ echo ":$OUT:" + +:u h g f: + +$ exit 0 diff --git a/tests/tagging/t0012.in b/tests/tagging/t0012.in new file mode 120000 index 0000000..0abc8f1 --- /dev/null +++ b/tests/tagging/t0012.in @@ -0,0 +1 @@ +data1
\ No newline at end of file diff --git a/tests/tagging/t0012.tst b/tests/tagging/t0012.tst new file mode 100644 index 0000000..d638b52 --- /dev/null +++ b/tests/tagging/t0012.tst @@ -0,0 +1,4 @@ +\S[10]OUT=$(smenu -c -P -p t0012.in) +\S[100]\s[120]jjththth\r +\s[0]echo ":$OUT:" +exit 0 diff --git a/tests/tagging/t0013.good b/tests/tagging/t0013.good new file mode 100644 index 0000000..402456e --- /dev/null +++ b/tests/tagging/t0013.good @@ -0,0 +1,15 @@ +$ OUT=$(smenu -c -P -N'b|d|g' " " t0013.in) + + a 1) b c 2) d +7:01 8:01 9:01 10:01 21:01 22:01 23:01 24:01 + e f 3) g h +12:07 14:01 15:01 16:01 17:01 19:04 26:04 + u j k l +5:04 +$ + +$ echo ":$OUT:" + +:u h g: + +$ exit 0 diff --git a/tests/tagging/t0013.in b/tests/tagging/t0013.in new file mode 120000 index 0000000..0abc8f1 --- /dev/null +++ b/tests/tagging/t0013.in @@ -0,0 +1 @@ +data1
\ No newline at end of file diff --git a/tests/tagging/t0013.tst b/tests/tagging/t0013.tst new file mode 100644 index 0000000..5100589 --- /dev/null +++ b/tests/tagging/t0013.tst @@ -0,0 +1,4 @@ +\S[10]OUT=$(smenu -c -P -N'b|d|g' " " t0013.in) +\S[100]\s[120]jjththth\r +\s[0]echo ":$OUT:" +exit 0 |