On Wed, 2008-11-12 at 17:00 +0530, Subrata Modak wrote:
> Signed-Off-By: Subrata Modak <[EMAIL PROTECTED]>
Merged.
> --
>
> --- ltp-intermediate-20081112/testcases/commands/Makefile.orig
> 2008-11-12 14:27:09.000000000 +0530
> +++ ltp-intermediate-20081112/testcases/commands/Makefile 2008-11-12
> 14:41:32.000000000 +0530
> @@ -1,5 +1,5 @@
> #SUBDIRS = `ls */Makefile | sed "s/Makefile//g" | grep -v at | grep -v
> unzip`
> -SUBDIRS = `ls */Makefile | sed "s/Makefile//g" | grep -v unzip`
> +SUBDIRS = `ls */Makefile | sed "s/Makefile//g"`
>
> all:
> @set -e; for i in $(SUBDIRS); do $(MAKE) -C $$i ; done
> ---
> ltp-intermediate-20081112/testcases/commands/unzip/unzip_tests.sh.orig
> 2008-11-12 14:34:59.000000000 +0530
> +++ ltp-intermediate-20081112/testcases/commands/unzip/unzip_tests.sh
> 2008-11-12 15:30:45.000000000 +0530
> @@ -50,12 +50,12 @@
> #
> # Return: - zero on success.
> # - non-zero on failure.
> +
> chk_ifexists()
> {
> RC=0
> -
> - which $2 &>$LTPTMP/tst_unzip.err || RC=$?
> - if [ $RC -ne 0 ]
> + which $2 > $LTPTMP/tst_unzip.err || RC=$?
> + if [ $? -ne 0 ]
> then
> tst_brkm TBROK NULL "$1: command $2 not found."
> fi
> @@ -92,7 +92,7 @@ init()
> # Initialize global variables.
> export RC=0
> export TST_TOTAL=1
> - export TCID="unzip"
> + export TCID="unzip01"
> export TST_COUNT=0
>
> # Inititalize cleanup function.
> @@ -105,7 +105,7 @@ init()
> chk_ifexists INIT awk || return $RC
>
> # create the temporary directory used by this testcase
> - if [ -z $TMP ]
> + if [ -d $TMP ]
> then
> LTPTMP=/tmp/tst_unzip.$$
> TMP=/tmp
> @@ -113,7 +113,7 @@ init()
> LTPTMP=$TMP/tst_unzip.$$
> fi
>
> - mkdir -p $LTPTMP &>/dev/null || RC=$?
> + mkdir -p $LTPTMP >/dev/null || RC=$?
> if [ $RC -ne 0 ]
> then
> tst_brkm TBROK "INIT: Unable to create temporary directory"
> @@ -162,15 +162,14 @@ test01()
>
> tst_resm TINFO "Test #1: unzip command un-compresses a .zip file."
>
> - unzip $TMP/tst_unzip_file.zip &>$LTPTMP/tst_unzip.out || RC=$?
> + unzip $TMP/tst_unzip_file.zip >$LTPTMP/tst_unzip.out || RC=$?
> if [ $RC -ne 0 ]
> then
> tst_res TFAIL $LTPTMP/tst_unzip.out \
> "Test #1: unzip command failed. Return value = $RC.
> Details:"
> return $RC
> else
> - diff -iwB $LTPTMP/tst_unzip.out $LTPTMP/tst_unzip.out.exp \
> - &>$LTPTMP/tst_unzip.out.err || RC=$?
> + diff -iwB $LTPTMP/tst_unzip.out $LTPTMP/tst_unzip.out.exp >
> $LTPTMP/tst_unzip.out.err || RC=$?
> if [ $RC -ne 0 ]
> then
> tst_res TFAIL $LTPTMP/tst_unzip.err \
> --- ltp-intermediate-20081112/runtest/commands.orig 2008-11-12
> 14:28:58.000000000 +0530
> +++ ltp-intermediate-20081112/runtest/commands 2008-11-12
> 15:33:37.000000000 +0530
> @@ -10,3 +10,5 @@ cron export TCdat=$LTPROOT/testcases/bin
> logrotate export TCdat=$LTPROOT/testcases/bin; logrotate_tests.sh
> mail export TCdat=$LTPROOT/testcases/bin; mail_tests.sh
> cpio export TCdat=$LTPROOT/testcases/bin; cpio_tests.sh
> +unzip01 unzip_tests.sh
> +
>
>
> Regards--
> Subrata
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________ Ltp-list mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ltp-list
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list