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

List:       busybox
Subject:    Re: [PATCH 1/2] cpio: add ownership (-R) test cases
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2016-11-04 21:33:58
Message-ID: CAK1hOcOTtCX9QstreB_iwuT=7oTJfRa=4CfKn9aX8+=FNjnGUQ () mail ! gmail ! com
[Download RAW message or body]

applied, thanks!

On Wed, Nov 2, 2016 at 11:25 PM, Aaro Koskinen <aaro.koskinen@iki.fi> wrote:
> Add ownership (-R) test cases.
> 
> Signed-off-by: Aaro Koskinen <aaro.koskinen@iki.fi>
> ---
> testsuite/cpio.tests | 24 ++++++++++++++++++++++++
> 1 file changed, 24 insertions(+)
> 
> diff --git a/testsuite/cpio.tests b/testsuite/cpio.tests
> index 4cd441a..d44c95b 100755
> --- a/testsuite/cpio.tests
> +++ b/testsuite/cpio.tests
> @@ -127,6 +127,30 @@ testing "cpio extracts in existing directory" \
> " "" ""
> SKIP=
> 
> +testing "cpio uses by default uid/gid" \
> +"echo $0 | cpio -o -H newc | cpio -tv 2>&1 | tail -n +2 | awk ' { print \$2 } '; \
> echo \$?" \ +"\
> +$user/$group
> +0
> +" "" ""
> +SKIP=
> +
> +testing "cpio -R with create" \
> +"echo $0 | cpio -o -H newc -R 1234:5678 | cpio -tv 2>&1 | tail -n +2 | awk ' { \
> print \$2 } '; echo \$?" \ +"\
> +1234/5678
> +0
> +" "" ""
> +SKIP=
> +
> +testing "cpio -R with extract" \
> +"echo $0 | cpio -o -H newc | cpio -tv -R 8765:4321 2>&1 | tail -n +2 | awk ' { \
> print \$2 } '; echo \$?" \ +"\
> +8765/4321
> +0
> +" "" ""
> +SKIP=
> +
> # Clean up
> rm -rf cpio.testdir cpio.testdir2 2>/dev/null
> 
> --
> 2.9.2
> 
_______________________________________________
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