--- On Wed, 5/6/09, rohit verma <[email protected]> wrote:
> From: rohit verma <[email protected]>
> Subject: Re: Patch for [LTP] :Unzip01 Test Not Working Correctly
> To: "CAI Qian" <[email protected]>
> Cc: [email protected]
> Date: Wednesday, May 6, 2009, 12:56 PM
> Hi,
>
> Patch for unzip01 is as follows. I have checked the
> same at on FC10.
> It is working fine. Please check and let me know if
> any issues.
>
> diff -ruxB
> ltp-full-20090430_original/testcases/commands/unzip/unzip_tests.sh
> ltp-full-20090430/testcases/commands/unzip/unzip_tests.sh
> ---
> ltp-full-20090430_original/testcases/commands/unzip/unzip_tests.sh
> 2009-02-26 18:40:54.000000000 +0530
>
> +++
> ltp-full-20090430/testcases/commands/unzip/unzip_tests.sh
> 2009-05-06 14:58:46.000000000 +0530
> @@ -44,7 +44,7 @@
> chk_ifexists()
> {
> RC=0
> - which $2 >
> "$LTPTMP/tst_unzip.err" || RC=$?
>
> + which $2 > "$PWD/tst_unzip.err"
> || RC=$?
> if [ $? -ne 0 ]
> then
> tst_brkm TBROK NULL
> "$1: command $2 not found."
> @@ -98,21 +98,22 @@
> chk_ifexists INIT awk || return
> $RC
>
> # create expected output files.
> tst_unzip.exp
> - cat > $LTPTMP/tst_unzip.out.exp
> <<-EOF
> - Archive: $TMP/tst_unzip_file.zip
> + cat > $PWD/tst_unzip.out.exp <<-EOF
>
> + Archive: $1
> creating: tst_unzip.dir/
> creating: tst_unzip.dir/d.0/
> - extracting: tst_unzip.dir/d.0/f.0
> - extracting: tst_unzip.dir/d.0/f.1
> - extracting: tst_unzip.dir/d.0/f.2
> creating: tst_unzip.dir/d.0/d.1/
>
> - extracting: tst_unzip.dir/d.0/d.1/f.0
> - extracting: tst_unzip.dir/d.0/d.1/f.1
> - extracting: tst_unzip.dir/d.0/d.1/f.2
> creating: tst_unzip.dir/d.0/d.1/d.2/
> - extracting: tst_unzip.dir/d.0/d.1/d.2/f.0
>
> extracting: tst_unzip.dir/d.0/d.1/d.2/f.1
> + extracting: tst_unzip.dir/d.0/d.1/d.2/f.0
> extracting: tst_unzip.dir/d.0/d.1/d.2/f.2
> + extracting: tst_unzip.dir/d.0/d.1/f.1
> + extracting: tst_unzip.dir/d.0/d.1/f.0
>
> + extracting: tst_unzip.dir/d.0/d.1/f.2
> + extracting: tst_unzip.dir/d.0/f.1
> + extracting: tst_unzip.dir/d.0/f.0
> + extracting: tst_unzip.dir/d.0/f.2
> +
> EOF
>
>
> Regards,
> rohit
>
I can't apply the patch on the latest CVS version. Can you re-send it?
# patch -Np1 <unzip.patch
patching file testcases/commands/unzip/unzip_tests.sh
Hunk #1 FAILED at 44.
Hunk #2 FAILED at 98.
2 out of 2 hunks FAILED -- saving rejects to file
testcases/commands/unzip/unzip_tests.sh.rej
]# cat testcases/commands/unzip/unzip_tests.sh.rej
***************
*** 44,50 ****
chk_ifexists()
{
RC=0
- which $2 > "$LTPTMP/tst_unzip.err" || RC=$?
if [ $? -ne 0 ]
then
tst_brkm TBROK NULL "$1: command $2 not found."
--- 44,50 ----
chk_ifexists()
{
RC=0
+ which $2 > "$PWD/tst_unzip.err" || RC=$?
if [ $? -ne 0 ]
then
tst_brkm TBROK NULL "$1: command $2 not found."
***************
*** 98,118 ****
chk_ifexists INIT awk || return $RC
# create expected output files. tst_unzip.exp
- cat > $LTPTMP/tst_unzip.out.exp <<-EOF
- Archive: $TMP/tst_unzip_file.zip
creating: tst_unzip.dir/
creating: tst_unzip.dir/d.0/
- extracting: tst_unzip.dir/d.0/f.0
- extracting: tst_unzip.dir/d.0/f.1
- extracting: tst_unzip.dir/d.0/f.2
creating: tst_unzip.dir/d.0/d.1/
- extracting: tst_unzip.dir/d.0/d.1/f.0
- extracting: tst_unzip.dir/d.0/d.1/f.1
- extracting: tst_unzip.dir/d.0/d.1/f.2
creating: tst_unzip.dir/d.0/d.1/d.2/
- extracting: tst_unzip.dir/d.0/d.1/d.2/f.0
extracting: tst_unzip.dir/d.0/d.1/d.2/f.1
extracting: tst_unzip.dir/d.0/d.1/d.2/f.2
EOF
--- 98,119 ----
chk_ifexists INIT awk || return $RC
# create expected output files. tst_unzip.exp
+ cat > $PWD/tst_unzip.out.exp <<-EOF
+ Archive: $1
creating: tst_unzip.dir/
creating: tst_unzip.dir/d.0/
creating: tst_unzip.dir/d.0/d.1/
creating: tst_unzip.dir/d.0/d.1/d.2/
extracting: tst_unzip.dir/d.0/d.1/d.2/f.1
+ extracting: tst_unzip.dir/d.0/d.1/d.2/f.0
extracting: tst_unzip.dir/d.0/d.1/d.2/f.2
+ extracting: tst_unzip.dir/d.0/d.1/f.1
+ extracting: tst_unzip.dir/d.0/d.1/f.0
+ extracting: tst_unzip.dir/d.0/d.1/f.2
+ extracting: tst_unzip.dir/d.0/f.1
+ extracting: tst_unzip.dir/d.0/f.0
+ extracting: tst_unzip.dir/d.0/f.2
+
EOF
CAI Qian
>
>
> On Mon, Apr 13, 2009 at 4:54 PM,
> CAI Qian <[email protected]>
> wrote:
>
> From: rohit verma <[email protected]>
>
> Subject: [LTP] Reg:Unzip01 Test Not Working Correctly
> Date: Mon, 13 Apr 2009 14:25:21 +0530
>
>
> > Hi,
> >
> > http://www.nabble.com/Unzip01-Test-Not-Working-Correctly-td22575152.html
> >
>
> > Please confirm if the bug related to unzip01 mentioned
> at the above URL is
> > fixed in ltp-full-20090331release.
> >
>
> Not yet.
>
>
>
>
> > I have got the same error in 20090331-release.
> >
> >
> > Regards,
> > Rohit
>
>
>
------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list