* Re: [LTP] [11/12 FAILURE] LTP? file test fails
[not found] <1254189541.713331279696879608.JavaMail.root@zmail04.collab.prod.int.phx2.redhat.com>
@ 2010-07-21 7:24 ` Caspar Zhang
2010-07-21 9:22 ` Garrett Cooper
0 siblings, 1 reply; 3+ messages in thread
From: Caspar Zhang @ 2010-07-21 7:24 UTC (permalink / raw)
To: Garrett Cooper; +Cc: Linus Test Project
[-- Attachment #1: Type: text/plain, Size: 2862 bytes --]
----- "Garrett Cooper" <yanegomi@gmail.com> wrote:
>
On May 5, 2010, at 11:58 PM, Subrata Modak wrote:
Subject: LTPś file_test fails
>
> Issues Description below:
> ====================================
> # vi runtest/file_test
> file export TCdat=$LTPROOT/testcases/bin; file_test.sh
> <EOF>
>
> Run LTP with the following command:
> # ./runltp -f file_test
> <<<test_output>>>
> file01 0 TINFO : TEST #1: file command recogizes ASCII text files
> file01 1 TPASS : file: Recognised ASCII file correctly
> file02 0 TINFO : TEST #2: file command recognizes bash shell scripts
> file02 2 TPASS : file: Recognised bash shell script correctly
> file03 0 TINFO : TEST #3: file command recognizes korn shell scripts
> file03 3 TPASS : file: recognised korn shell script
> file04 0 TINFO : TEST #4: file command recognizes C shell scripts
> file04 4 TPASS : file: Recognised C shell script correctly
> file05 0 TINFO : TEST #5: file command recognizes C programs text
> file05 5 TPASS : file: Recognised C program text correctly
> file06 0 TINFO : TEST #6: file command recognizes ELF executables
> file06 6 TPASS : file: Recognized ELF binary executable
> file07 0 TINFO : TEST #7: file command recognizes tar files.
> file07 7 TPASS : file: Recognised tar files
> file08 0 TINFO : TEST #8: file command recognizes tar zip files
> file08 8 TPASS : file: Recognised tar zip file
> file09 0 TINFO : TEST #9: file command recognizes RPM files
> file09 9 TFAIL : file: Failed to Recognize RPM file. Reason:
> /root/rpmbuild/SRPMS/cprog-0.0.7-3.src.rpm: RPM v3.0 src
> file10 0 TINFO : TEST #10: file command recognizes vmlinu file
> file10 10 TPASS : file: Recognised vmlinu file correctly
> <<<execution_status>>>
> initiation_status="ok"
> duration=0 termination_type=exited termination_id=1 corefile=no
> cutime=7 cstime=18
> <<<test_end>>>
>
> This is why:
> grep "RPM v3 src" $LTPTMP/file.out > /dev/null 2>&1
> change that to
> egrep "RPM v3(\.0)? src" $LTPTMP/file.out > /dev/null 2>&1
> -- that should work.
Hi Garrett, this fix does work. However I haven't see it in June release
nor in git repo.
Acked/Tested-By: Caspar Zhang <czhang@redhat.com>
--- a/testcases/commands/ade/file/file_test.sh 2010-04-01 14:23:09.000000000 +0800
+++ b/testcases/commands/ade/file/file_test.sh 2010-05-14 16:42:53.943380955 +0800
@@ -556,7 +556,7 @@
if [ $? -eq 0 ]
then
- grep "RPM v3 src" $LTPTMP/file.out > /dev/null 2>&1
+ egrep "RPM v3(\.0)? src" $LTPTMP/file.out > /dev/null 2>&1
if [ $? -eq 0 ]
then
$LTPBIN/tst_resm TPASS "file: Recognised RPM file correctly"
Thanks,
Caspar
--
Quality Assurance Associate (Kernel) in
Red Hat Inc. (Beijing R&D Branch)
TEL: +86-10-62608150
Web: http://www.redhat.com/
[-- Attachment #2: commands-file01-rpm-check-fix.patch --]
[-- Type: text/x-patch, Size: 530 bytes --]
diff -Naur a/testcases/commands/ade/file/file_test.sh b/testcases/commands/ade/file/file_test.sh
--- a/testcases/commands/ade/file/file_test.sh 2010-04-01 14:23:09.000000000 +0800
+++ b/testcases/commands/ade/file/file_test.sh 2010-05-14 16:42:53.943380955 +0800
@@ -556,7 +556,7 @@
if [ $? -eq 0 ]
then
- grep "RPM v3 src" $LTPTMP/file.out > /dev/null 2>&1
+ egrep "RPM v3(\.0)? src" $LTPTMP/file.out > /dev/null 2>&1
if [ $? -eq 0 ]
then
$LTPBIN/tst_resm TPASS "file: Recognised RPM file correctly"
[-- Attachment #3: Type: text/plain, Size: 235 bytes --]
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
[-- Attachment #4: Type: text/plain, Size: 155 bytes --]
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LTP] [11/12 FAILURE] LTP? file test fails
2010-07-21 7:24 ` [LTP] [11/12 FAILURE] LTP? file test fails Caspar Zhang
@ 2010-07-21 9:22 ` Garrett Cooper
0 siblings, 0 replies; 3+ messages in thread
From: Garrett Cooper @ 2010-07-21 9:22 UTC (permalink / raw)
To: Caspar Zhang; +Cc: Linus Test Project
On Wed, Jul 21, 2010 at 12:24 AM, Caspar Zhang <czhang@redhat.com> wrote:
>
> ----- "Garrett Cooper" <yanegomi@gmail.com> wrote:
>>
>
> On May 5, 2010, at 11:58 PM, Subrata Modak wrote:
>
>
>
> Subject: LTPś file_test fails
>>
>> Issues Description below:
>> ====================================
>> # vi runtest/file_test
>> file export TCdat=$LTPROOT/testcases/bin; file_test.sh
>> <EOF>
>>
>> Run LTP with the following command:
>> # ./runltp -f file_test
>> <<<test_output>>>
>> file01 0 TINFO : TEST #1: file command recogizes ASCII text files
>> file01 1 TPASS : file: Recognised ASCII file correctly
>> file02 0 TINFO : TEST #2: file command recognizes bash shell scripts
>> file02 2 TPASS : file: Recognised bash shell script correctly
>> file03 0 TINFO : TEST #3: file command recognizes korn shell scripts
>> file03 3 TPASS : file: recognised korn shell script
>> file04 0 TINFO : TEST #4: file command recognizes C shell scripts
>> file04 4 TPASS : file: Recognised C shell script correctly
>> file05 0 TINFO : TEST #5: file command recognizes C programs text
>> file05 5 TPASS : file: Recognised C program text correctly
>> file06 0 TINFO : TEST #6: file command recognizes ELF executables
>> file06 6 TPASS : file: Recognized ELF binary executable
>> file07 0 TINFO : TEST #7: file command recognizes tar files.
>> file07 7 TPASS : file: Recognised tar files
>> file08 0 TINFO : TEST #8: file command recognizes tar zip files
>> file08 8 TPASS : file: Recognised tar zip file
>> file09 0 TINFO : TEST #9: file command recognizes RPM files
>> file09 9 TFAIL : file: Failed to Recognize RPM file. Reason:
>> /root/rpmbuild/SRPMS/cprog-0.0.7-3.src.rpm: RPM v3.0 src
>> file10 0 TINFO : TEST #10: file command recognizes vmlinu file
>> file10 10 TPASS : file: Recognised vmlinu file correctly
>> <<<execution_status>>>
>> initiation_status="ok"
>> duration=0 termination_type=exited termination_id=1 corefile=no
>> cutime=7 cstime=18
>> <<<test_end>>>
>>
>> This is why:
>> grep "RPM v3 src" $LTPTMP/file.out > /dev/null 2>&1
>> change that to
>> egrep "RPM v3(\.0)? src" $LTPTMP/file.out > /dev/null 2>&1
>> -- that should work.
>
> Hi Garrett, this fix does work. However I haven't see it in June release
> nor in git repo.
Thanks for the reminder. Pushed into git.
Thanks,
-Garrett
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [LTP] [11/12 FAILURE] LTP? file test fails
2010-05-06 6:58 ` [11/12 FAILURE] LTPX file test fails Subrata Modak
@ 2010-05-06 8:01 ` Garrett Cooper
0 siblings, 0 replies; 3+ messages in thread
From: Garrett Cooper @ 2010-05-06 8:01 UTC (permalink / raw)
To: Subrata Modak
Cc: Linus Test Project, B N Poornima, Sachin P Sant,
SUZUKI K. POULOSE, Sharyathi Nagesh
[-- Attachment #1.1: Type: text/plain, Size: 2181 bytes --]
On May 5, 2010, at 11:58 PM, Subrata Modak wrote:
> Subject: LTPś file_test fails
>
> Issues Description below:
> ====================================
> # vi runtest/file_test
> file export TCdat=$LTPROOT/testcases/bin; file_test.sh
> <EOF>
>
> Run LTP with the following command:
> # ./runltp -f file_test
> <<<test_output>>>
> file01 0 TINFO : TEST #1: file command recogizes ASCII text files
> file01 1 TPASS : file: Recognised ASCII file correctly
> file02 0 TINFO : TEST #2: file command recognizes bash shell scripts
> file02 2 TPASS : file: Recognised bash shell script correctly
> file03 0 TINFO : TEST #3: file command recognizes korn shell scripts
> file03 3 TPASS : file: recognised korn shell script
> file04 0 TINFO : TEST #4: file command recognizes C shell scripts
> file04 4 TPASS : file: Recognised C shell script correctly
> file05 0 TINFO : TEST #5: file command recognizes C programs text
> file05 5 TPASS : file: Recognised C program text correctly
> file06 0 TINFO : TEST #6: file command recognizes ELF executables
> file06 6 TPASS : file: Recognized ELF binary executable
> file07 0 TINFO : TEST #7: file command recognizes tar files.
> file07 7 TPASS : file: Recognised tar files
> file08 0 TINFO : TEST #8: file command recognizes tar zip files
> file08 8 TPASS : file: Recognised tar zip file
> file09 0 TINFO : TEST #9: file command recognizes RPM files
> file09 9 TFAIL : file: Failed to Recognize RPM file. Reason:
> /root/rpmbuild/SRPMS/cprog-0.0.7-3.src.rpm: RPM v3.0 src
> file10 0 TINFO : TEST #10: file command recognizes vmlinu file
> file10 10 TPASS : file: Recognised vmlinu file correctly
> <<<execution_status>>>
> initiation_status="ok"
> duration=0 termination_type=exited termination_id=1 corefile=no
> cutime=7 cstime=18
> <<<test_end>>>
This is why:
grep "RPM v3 src" $LTPTMP/file.out > /dev/null 2>&1
change that to
egrep "RPM v3(\.0)? src" $LTPTMP/file.out > /dev/null 2>&1
-- that should work.
HTH,
-Garrett
[-- Attachment #1.2: Type: text/html, Size: 5228 bytes --]
[-- Attachment #2: Type: text/plain, Size: 79 bytes --]
------------------------------------------------------------------------------
[-- Attachment #3: Type: text/plain, Size: 155 bytes --]
_______________________________________________
Ltp-list mailing list
Ltp-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ltp-list
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2010-07-21 9:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <1254189541.713331279696879608.JavaMail.root@zmail04.collab.prod.int.phx2.redhat.com>
2010-07-21 7:24 ` [LTP] [11/12 FAILURE] LTP? file test fails Caspar Zhang
2010-07-21 9:22 ` Garrett Cooper
2010-05-06 6:55 [LTP] [00/12 FAILURE] Reporting LTP run issues on Fedora 13 ppc6 Subrata Modak
2010-05-06 6:58 ` [11/12 FAILURE] LTPX file test fails Subrata Modak
2010-05-06 8:01 ` [LTP] [11/12 FAILURE] LTP? " Garrett Cooper
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.