소스 검색

add up.sh to test suite

up.sh tests the scroll up by one page feature
Jan Klemkow 5 년 전
부모
커밋
d65e29260f
3개의 변경된 파일77개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      Makefile
  2. 74 0
      up.log
  3. 2 0
      up.sh

+ 1 - 0
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

+ 74 - 0
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
+[?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


+ 2 - 0
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