aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2016-04-23 14:20:38 -0700
committerRob Landley <rob@landley.net>2016-04-23 20:40:45 -0500
commit675b5dc24069743892e7bc457793dabb6c978e7f (patch)
treee0be5fce188c7da4caca5e56e56a11f569c4c059 /tests
parent072ea41682be093fd5fb25e7d6669a65a76144e6 (diff)
downloadtoybox-675b5dc24069743892e7bc457793dabb6c978e7f.tar.gz
Add the non-tty more(1) test.
(This was supposed to be in the earlier patch, but I was fooled by "git commit -a" yet again...)
Diffstat (limited to 'tests')
-rwxr-xr-xtests/more.test14
1 files changed, 14 insertions, 0 deletions
diff --git a/tests/more.test b/tests/more.test
new file mode 100755
index 00000000..4dcf6d85
--- /dev/null
+++ b/tests/more.test
@@ -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