add up.sh to test suite - scroll - scrollbackbuffer program for st | |
git clone git://git.suckless.org/scroll | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit d65e29260f83ac1d9d5fe128540f0079638b4e1a | |
parent fe9ce22d65c5e0effefc1f005c2cb4d860abb13e | |
Author: Jan Klemkow <[email protected]> | |
Date: Sat, 25 Apr 2020 21:55:52 +0200 | |
add up.sh to test suite | |
up.sh tests the scroll up by one page feature | |
Diffstat: | |
M Makefile | 1 + | |
A up.log | 75 +++++++++++++++++++++++++++++… | |
M up.sh | 2 ++ | |
3 files changed, 78 insertions(+), 0 deletions(-) | |
--- | |
diff --git a/Makefile b/Makefile | |
@@ -20,6 +20,7 @@ test: scroll ptty | |
# check exit passthrough of child | |
if ! ./ptty ./scroll true; then exit 1; fi | |
if ./ptty ./scroll false; then exit 1; fi | |
+ ./up.sh | |
clean: | |
rm -f scroll ptty | |
diff --git a/up.log b/up.log | |
@@ -0,0 +1,74 @@ | |
+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 | |
+31 | |
+32 | |
+33 | |
+34 | |
+35 | |
+36 | |
+37 | |
+38 | |
+39 | |
+40 | |
+41 | |
+42 | |
+43 | |
+44 | |
+45 | |
+46 | |
+47 | |
+48 | |
+49 | |
+[25T[0;0H[?25l1 | |
+2 | |
+3 | |
+4 | |
+5 | |
+6 | |
+7 | |
+8 | |
+9 | |
+10 | |
+11 | |
+12 | |
+13 | |
+14 | |
+15 | |
+16 | |
+17 | |
+18 | |
+19 | |
+20 | |
+21 | |
+22 | |
+23 | |
+24 | |
+25[25;0H | |
+\ No newline at end of file | |
diff --git a/up.sh b/up.sh | |
@@ -11,3 +11,5 @@ done > tmp.log | |
(sleep 1; printf "\033[5;2~"; sleep 1; ) \ | |
| ./ptty ./scroll tail -fn 50 tmp.log > out.log | |
+ | |
+cmp out.log up.log |