(This was supposed to be in the earlier patch, but I was fooled by "git commit -a" yet again...) --- tests/more.test | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 tests/more.test
From 8486532a9e1aca764ab8292d7538538d4c0ea226 Mon Sep 17 00:00:00 2001 From: Elliott Hughes <[email protected]> Date: Sat, 23 Apr 2016 14:20:38 -0700 Subject: [PATCH] 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...) --- tests/more.test | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100755 tests/more.test diff --git a/tests/more.test b/tests/more.test new file mode 100755 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 -- 2.8.0.rc3.226.g39d4020
_______________________________________________ Toybox mailing list [email protected] http://lists.landley.net/listinfo.cgi/toybox-landley.net
