OSDN Git Service

Add the non-tty more(1) test.
authorElliott Hughes <enh@google.com>
Sat, 23 Apr 2016 21:20:38 +0000 (14:20 -0700)
committerRob Landley <rob@landley.net>
Sun, 24 Apr 2016 01:40:45 +0000 (20:40 -0500)
(This was supposed to be in the earlier patch, but I was fooled by
"git commit -a" yet again...)

tests/more.test [new file with mode: 0755]

diff --git a/tests/more.test b/tests/more.test
new file mode 100755 (executable)
index 0000000..4dcf6d8
--- /dev/null
@@ -0,0 +1,14 @@
+#!/bin/bash
+
+[ -f testing.sh ] && . testing.sh
+
+#testing "name" "command" "result" "infile" "stdin"
+
+cat >file1 <<EOF
+line1
+line2
+EOF
+
+testing "non-tty" "more file1 | cat -" "line1\nline2\n" "" ""
+
+rm file1