diff options
author | Thomas De Schampheleire <thomas.de_schampheleire@nokia.com> | 2018-09-13 15:01:46 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-09-22 19:40:35 +0200 |
commit | 6608879d34f9635572415e864b4fcbc497c74bcf (patch) | |
tree | feb2a5a8fc86f5b024d41c9d69de994affc1b8dd /testsuite/head.tests | |
parent | e0f617699f7f1dfa1e56ded54bb1d70fd91c225e (diff) | |
download | busybox-w32-6608879d34f9635572415e864b4fcbc497c74bcf.tar.gz busybox-w32-6608879d34f9635572415e864b4fcbc497c74bcf.tar.bz2 busybox-w32-6608879d34f9635572415e864b4fcbc497c74bcf.zip |
head: convert existing tests to new-style
Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'testsuite/head.tests')
-rwxr-xr-x | testsuite/head.tests | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/testsuite/head.tests b/testsuite/head.tests index 1feecf990..50660d267 100755 --- a/testsuite/head.tests +++ b/testsuite/head.tests | |||
@@ -21,6 +21,16 @@ line 11 | |||
21 | line 12 | 21 | line 12 |
22 | EOF | 22 | EOF |
23 | 23 | ||
24 | testing "head (without args)" \ | ||
25 | "head head.input" \ | ||
26 | "line 1\nline 2\nline 3\nline 4\nline 5\nline 6\nline 7\nline 8\nline 9\nline 10\n" \ | ||
27 | "" "" | ||
28 | |||
29 | testing "head -n <positive number>" \ | ||
30 | "head -n 2 head.input" \ | ||
31 | "line 1\nline 2\n" \ | ||
32 | "" "" | ||
33 | |||
24 | testing "head -n <negative number>" \ | 34 | testing "head -n <negative number>" \ |
25 | "head -n -9 head.input" \ | 35 | "head -n -9 head.input" \ |
26 | "line 1\nline 2\nline 3\n" \ | 36 | "line 1\nline 2\nline 3\n" \ |