[hackers] [scroll] add up.sh to test suite || Jan Klemkow

From: <git_AT_suckless.org>
Date: Sat, 25 Apr 2020 21:56:38 +0200 (CEST)

commit d65e29260f83ac1d9d5fe128540f0079638b4e1a
Author: Jan Klemkow <j.klemkow_AT_wemelug.de>
AuthorDate: Sat Apr 25 21:55:52 2020 +0200
Commit: Jan Klemkow <j.klemkow_AT_wemelug.de>
CommitDate: Sat Apr 25 21:55:52 2020 +0200

    add up.sh to test suite
    
    up.sh tests the scroll up by one page feature

diff --git a/Makefile b/Makefile
index b577876..9f382b7 100644
--- a/Makefile
+++ b/Makefile
_AT_@ -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
new file mode 100644
index 0000000..6a62518
--- /dev/null
+++ b/up.log
_AT_@ -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
+[?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 
\ No newline at end of file
diff --git a/up.sh b/up.sh
index 8f4758c..9b6baf6 100755
--- a/up.sh
+++ b/up.sh
_AT_@ -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
Received on Sat Apr 25 2020 - 21:56:38 CEST

This archive was generated by hypermail 2.3.0 : Sat Apr 25 2020 - 22:00:37 CEST