aboutsummaryrefslogtreecommitdiff
path: root/scripts/test/tail.test
diff options
context:
space:
mode:
authorElie De Brauwer <eliedebrauwer@gmail.com>2012-07-05 22:58:28 +0200
committerElie De Brauwer <eliedebrauwer@gmail.com>2012-07-05 22:58:28 +0200
commitbf3d3a7a831418d60d832fac1ecf95f4b867a0d0 (patch)
treeacb058251d28404a589b9f63265768894b0f1514 /scripts/test/tail.test
parentc2f62a97261dd471456b72ada279d3a14360a5cd (diff)
downloadtoybox-bf3d3a7a831418d60d832fac1ecf95f4b867a0d0.tar.gz
- Do not abort testing after running the sort tests
- Add tail testcases for input not ending on a newline - Fix condition where input coming from stdin does not have a trailing newline
Diffstat (limited to 'scripts/test/tail.test')
-rwxr-xr-xscripts/test/tail.test3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts/test/tail.test b/scripts/test/tail.test
index 2c8f3c2d..77e572e1 100755
--- a/scripts/test/tail.test
+++ b/scripts/test/tail.test
@@ -22,6 +22,9 @@ testing "tail -c+ in bounds" "tail -c +27 file1" \
testing "tail -c+ out of bonds" "tail -c +999 file1" "" "" ""
rm file1
+testing "tail stdin no trailing newline" "tail -n 1 - " "c" "" "a\nb\nc"
+testing "tail file no trailing newline" "tail -n 1 input" "c" "a\nb\nc" ""
+
optional TAIL_SEEK
testing "tail noseek -n in bounds" "tail -n 3" "nine\nten\neleven\n" \
"" "$BIGTEST"