[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: [PATCH 2/2] head: convert existing tests to new-style
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2018-09-22 17:41:03
Message-ID: CAK1hOcP73Lu1HmMRrECS+qhUfKtpGkjGYcbYyB5A7wHy3w9d+w () mail ! gmail ! com
[Download RAW message or body]

Applied, thanks!
On Thu, Sep 13, 2018 at 3:00 PM Thomas De Schampheleire
<patrickdepinguin@gmail.com> wrote:
>
> From: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
>
> Signed-off-by: Thomas De Schampheleire <thomas.de_schampheleire@nokia.com>
> ---
>  testsuite/head.tests        | 10 ++++++++++
>  testsuite/head/head-n-works |  4 ----
>  testsuite/head/head-works   |  4 ----
>  3 files changed, 10 insertions(+), 8 deletions(-)
>  delete mode 100644 testsuite/head/head-n-works
>  delete mode 100644 testsuite/head/head-works
>
> 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
>  line 12
>  EOF
>
> +testing "head (without args)" \
> +       "head head.input" \
> +       "line 1\nline 2\nline 3\nline 4\nline 5\nline 6\nline 7\nline 8\nline 9\nline 10\n" \
> +       "" ""
> +
> +testing "head -n <positive number>" \
> +       "head -n 2 head.input" \
> +       "line 1\nline 2\n" \
> +       "" ""
> +
>  testing "head -n <negative number>" \
>         "head -n -9 head.input" \
>         "line 1\nline 2\nline 3\n" \
> diff --git a/testsuite/head/head-n-works b/testsuite/head/head-n-works
> deleted file mode 100644
> index db4325556..000000000
> --- a/testsuite/head/head-n-works
> +++ /dev/null
> @@ -1,4 +0,0 @@
> -[ -n "$d" ] || d=..
> -head -n 2 "$d/README" > logfile.gnu
> -busybox head -n 2 "$d/README" > logfile.bb
> -cmp logfile.gnu logfile.bb
> diff --git a/testsuite/head/head-works b/testsuite/head/head-works
> deleted file mode 100644
> index 56ad3e36b..000000000
> --- a/testsuite/head/head-works
> +++ /dev/null
> @@ -1,4 +0,0 @@
> -[ -n "$d" ] || d=..
> -head "$d/README" > logfile.gnu
> -busybox head "$d/README" > logfile.bb
> -cmp logfile.gnu logfile.bb
> --
> 2.16.4
>
> _______________________________________________
> busybox mailing list
> busybox@busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox
_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic