diff options
author | Elliott Hughes <enh@google.com> | 2016-04-23 14:20:38 -0700 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2016-04-23 20:40:45 -0500 |
commit | 675b5dc24069743892e7bc457793dabb6c978e7f (patch) | |
tree | e0be5fce188c7da4caca5e56e56a11f569c4c059 /tests | |
parent | 072ea41682be093fd5fb25e7d6669a65a76144e6 (diff) | |
download | toybox-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-x | tests/more.test | 14 |
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 |