OSDN Git Service
(root)
/
android-x86
/
external-toybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
072ea41
)
Add the non-tty more(1) test.
author
Elliott Hughes
<enh@google.com>
Sat, 23 Apr 2016 21:20:38 +0000
(14:20 -0700)
committer
Rob 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]
patch
|
blob
diff --git a/tests/more.test
b/tests/more.test
new file mode 100755
(executable)
index 0000000..
4dcf6d8
--- /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