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/scrolling | |
parent | 95c9eb53593c554ff443cb94a220062b6e36bb31 (diff) |
Add the first roll of an automated testing system.
Diffstat (limited to 'tests/scrolling')
-rw-r--r-- | tests/scrolling/data1 | 6 | ||||
-rw-r--r-- | tests/scrolling/t0001.good | 17 | ||||
l--------- | tests/scrolling/t0001.in | 1 | ||||
-rw-r--r-- | tests/scrolling/t0001.tst | 4 | ||||
-rw-r--r-- | tests/scrolling/t0002.good | 17 | ||||
l--------- | tests/scrolling/t0002.in | 1 | ||||
-rw-r--r-- | tests/scrolling/t0002.tst | 4 |
7 files changed, 50 insertions, 0 deletions
diff --git a/tests/scrolling/data1 b/tests/scrolling/data1 new file mode 100644 index 0000000..7b221cd --- /dev/null +++ b/tests/scrolling/data1 @@ -0,0 +1,6 @@ +1 2 3 4 5 +6 7 8 9 10 +11 12 13 14 15 +16 17 18 19 20 +21 22 23 24 25 +26 27 28 29 30 diff --git a/tests/scrolling/t0001.good b/tests/scrolling/t0001.good new file mode 100644 index 0000000..aa1ca2f --- /dev/null +++ b/tests/scrolling/t0001.good @@ -0,0 +1,17 @@ +$ OUT=$(LC_ALL=en_US.UTF-8 smenu -n 4 -l t0001.in) + +1 2 3 4 5 ┐ +6:07 16:20 +6 7 8 9 10 ║ +16:20 +11 12 13 14 15 │ +16:20 +16 17 18 19 20 ▼ +16:20 +$ + +$ echo ":$OUT:" + +:4: + +$ exit 0 diff --git a/tests/scrolling/t0001.in b/tests/scrolling/t0001.in new file mode 120000 index 0000000..0abc8f1 --- /dev/null +++ b/tests/scrolling/t0001.in @@ -0,0 +1 @@ +data1
\ No newline at end of file diff --git a/tests/scrolling/t0001.tst b/tests/scrolling/t0001.tst new file mode 100644 index 0000000..b23f66e --- /dev/null +++ b/tests/scrolling/t0001.tst @@ -0,0 +1,4 @@ +\S[10]OUT=$(LC_ALL=en_US.UTF-8 smenu -n 4 -l t0001.in) +\S[100]\s[120]lljjlljjhhjjhhkkhhkkhhjjllkk\r +\s[0]echo ":$OUT:" +exit 0 diff --git a/tests/scrolling/t0002.good b/tests/scrolling/t0002.good new file mode 100644 index 0000000..f61747d --- /dev/null +++ b/tests/scrolling/t0002.good @@ -0,0 +1,17 @@ +$ OUT=$(LC_ALL=en_US smenu -n 4 -l t0002.in) + +1 2 3 4 5 \ +6:07 16:20 +6 7 8 9 10 + +16:20 +11 12 13 14 15 | +16:20 +16 17 18 19 20 v +16:20 +$ + +$ echo ":$OUT:" + +:4: + +$ exit 0 diff --git a/tests/scrolling/t0002.in b/tests/scrolling/t0002.in new file mode 120000 index 0000000..0abc8f1 --- /dev/null +++ b/tests/scrolling/t0002.in @@ -0,0 +1 @@ +data1
\ No newline at end of file diff --git a/tests/scrolling/t0002.tst b/tests/scrolling/t0002.tst new file mode 100644 index 0000000..2acf1a5 --- /dev/null +++ b/tests/scrolling/t0002.tst @@ -0,0 +1,4 @@ +\S[10]OUT=$(LC_ALL=en_US smenu -n 4 -l t0002.in) +\S[100]\s[120]lljjlljjhhjjhhkkhhkkhhjjllkk\r +\s[0]echo ":$OUT:" +exit 0 |