Hi,

O/P of 'File' test case  with fedora core-10 as follows

*file01      0  INFO  :  TEST #1: file commad recogizes ASCII text files
file01      7  PASS  :  file: Recognised ASCII file correctly
file02      0  INFO  :  TEST #2: file command recognizes bash shell scripts
file02      2  PASS  :  file: Recognised bash shell script correctly
file03      0  INFO  :  TEST #3: file command recognizes korn shell scripts
file03      3  PASS  :  file: recognised korn shell script
file04      0  INFO  :  TEST #4: file command recognizes C shell scripts
file04      4  PASS  :  file: Recognised C shell script correctly
file05      0  INFO  :  TEST #5: file command recognizes C programs text
file05      5  PASS  :  file: Recognised C program text correctly
file06      0  INFO  :  TEST #6: file command recognizes ELF executables
file06      6  PASS  :  file: Recognized ELF binary executable
file07      0  INFO  :  TEST #7: file command recognizes tar files.
file07      7  PASS  :  file: Recognised tar files
file08      0  INFO  :  TEST #8: file command recognizes tar zip files
file08      8  PASS  :  file: Recognised tar zip file
file09      0  INFO  :  TEST #9: file command recognizes RPM files
file09      9  BROK  :  rpm command brok. Reason:
error: File /root/rpmbuild/SOURCES/cprog.c: No such file or directory
file09     10  BROK  :  Remaining cases broken
file09      9  FAIL  :  file: Failed to Recognize RPM file. Reason:
/usr/src/redhat/SRPMS/cprog-0.0.7-3.src.rpm: cannot open
`/usr/src/redhat/SRPMS/cprog-0.0.7-3.src.rpm' (No such file or directory)
file10      0  INFO  :  TEST #10: file command recognizes vmlinuz file
file10     10  PASS  :  file: Recognised vmlinuz file correctly *
**

Default path for 'rpmbuild' command in fc10  is /root/rpmbuild/SOURCES
folder instead of  "/usr/src/redhat" which was present in fc8 rpmbuild.

In FC10 rpmbuild looks for the cprog.c file  in user's home directory. (i.e
/root/rpmbuild  for root user)

Please visit the below URL for more information

http://www.mail-archive.com/[email protected]/msg27958.html

As per the 'file' test program, it creates the 'cprog.c' file in
/usr/src/redhat and recognize RPM file in same path
which should be changed accordingly to user's home directory.

Please check the  line number 394 : bDIR=/usr/src/redhat. in file_tests.sh

So I request you to incorporate the changes according to rpmbuild of fc10 in
file_tests.sh.

Regards,
rohit









 <http://www.mail-archive.com/[email protected]/msg27958.html>
**

**
**
**
**
**
**
**
**
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations 
Conference from O'Reilly Media. Velocity features a full day of 
expert-led, hands-on workshops and two days of sessions from industry 
leaders in dedicated Performance & Operations tracks. Use code vel09scf 
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to