diff options
Diffstat (limited to 'testsuite/tail')
-rw-r--r-- | testsuite/tail/tail-n-works | 4 | ||||
-rw-r--r-- | testsuite/tail/tail-works | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/testsuite/tail/tail-n-works b/testsuite/tail/tail-n-works new file mode 100644 index 0000000..0e1319f --- /dev/null +++ b/testsuite/tail/tail-n-works @@ -0,0 +1,4 @@ +$ECHO -ne "abc\ndef\n123\n" >input +$ECHO -ne "def\n123\n" >logfile.ok +busybox tail -n 2 input > logfile.bb +cmp logfile.ok logfile.bb diff --git a/testsuite/tail/tail-works b/testsuite/tail/tail-works new file mode 100644 index 0000000..f3434d1 --- /dev/null +++ b/testsuite/tail/tail-works @@ -0,0 +1,4 @@ +$ECHO -ne "abc\ndef\n123\n" >input +$ECHO -ne "def\n123\n" >logfile.ok +busybox tail -2 input > logfile.bb +cmp logfile.ok logfile.bb |