linux-test-project / ltp

Linux Test Project (mailing list: https://lists.linux.it/listinfo/ltp)
https://linux-test-project.readthedocs.io/
GNU General Public License v2.0
2.28k stars 999 forks source link

file01.sh: Fix in was not recognized #1051

Open Wjjoye opened 1 year ago

Wjjoye commented 1 year ago

Some test cases fail.

tag=file01_sh stime=1687981530 cmdline="file01.sh" contacts="" analysis=exit <<>> incrementing stop file01 1 TINFO: timeout per run is 0h 5m 0s file01 1 TPASS: file /opt/ltp/testcases/data/file01/in.txt > file.out passed as expected file01 1 TPASS: in.txt: recognized as ASCII text file01 2 TPASS: file /opt/ltp/testcases/data/file01/in.bash > file.out passed as expected file01 2 TFAIL: in.bash: was not recognized /opt/ltp/testcases/data/file01/in.bash: /bin/bash script file01 3 TPASS: file /opt/ltp/testcases/data/file01/in.sh > file.out passed as expected file01 3 TFAIL: in.sh: was not recognized /opt/ltp/testcases/data/file01/in.sh: /bin/sh script file01 4 TPASS: file /opt/ltp/testcases/data/file01/in.ksh > file.out passed as expected file01 4 TFAIL: in.ksh: was not recognized /opt/ltp/testcases/data/file01/in.ksh: /bin/ksh script file01 5 TPASS: file /opt/ltp/testcases/data/file01/in.csh > file.out passed as expected file01 5 TFAIL: in.csh: was not recognized /opt/ltp/testcases/data/file01/in.csh: /bin/csh script file01 6 TPASS: file /opt/ltp/testcases/data/file01/in.c > file.out passed as expected file01 6 TFAIL: in.c: was not recognized /opt/ltp/testcases/data/file01/in.c: ASCII text file01 7 TPASS: file /opt/ltp/testcases/data/file01/in.pl > file.out passed as expected file01 7 TFAIL: in.pl: was not recognized /opt/ltp/testcases/data/file01/in.pl: /usr/bin/perl script file01 8 TPASS: file /opt/ltp/testcases/data/file01/in.py > file.out passed as expected file01 8 TFAIL: in.py: was not recognized /opt/ltp/testcases/data/file01/in.py: python3 script file01 9 TPASS: file /opt/ltp/testcases/data/file01/in.m4 > file.out passed as expected file01 9 TFAIL: in.m4: was not recognized /opt/ltp/testcases/data/file01/in.m4: ASCII text file01 10 TPASS: file /opt/ltp/testcases/data/file01/in > file.out passed as expected file01 10 TFAIL: in: was not recognized /opt/ltp/testcases/data/file01/in: ELF executable, 64-bit LSB arm64, dynamic (/lib/ld-linux-aarch64.so.1), BuildID=d35d56036f83c682c5a2937420fd73c22877b595, stripped file01 11 TPASS: file /opt/ltp/testcases/data/file01/in.ar > file.out passed as expected file01 11 TFAIL: in.ar: was not recognized /opt/ltp/testcases/data/file01/in.ar: ar archive file01 12 TPASS: file /opt/ltp/testcases/data/file01/in.tar > file.out passed as expected file01 12 TPASS: in.tar: recognized as tar archive file01 13 TPASS: file /opt/ltp/testcases/data/file01/in.tar.gz > file.out passed as expected file01 13 TFAIL: in.tar.gz: was not recognized /opt/ltp/testcases/data/file01/in.tar.gz: gzip compressed data file01 14 TPASS: file /opt/ltp/testcases/data/file01/in.tar.bz2 > file.out passed as expected file01 14 TPASS: in.tar.bz2: recognized as bzip2 compressed data, .* file01 15 TPASS: file /opt/ltp/testcases/data/file01/in.src.rpm > file.out passed as expected file01 15 TFAIL: in.src.rpm: was not recognized /opt/ltp/testcases/data/file01/in.src.rpm: data file01 16 TPASS: file /opt/ltp/testcases/data/file01/in.jpg > file.out passed as expected file01 16 TPASS: in.jpg: recognized as JPEG image data file01 17 TPASS: file /opt/ltp/testcases/data/file01/in.png > file.out passed as expected file01 17 TPASS: in.png: recognized as PNG image data file01 18 TPASS: file /opt/ltp/testcases/data/file01/in.wav > file.out passed as expected file01 18 TFAIL: in.wav: was not recognized /opt/ltp/testcases/data/file01/in.wav: data file01 19 TPASS: file /opt/ltp/testcases/data/file01/in.mp3 > file.out passed as expected file01 19 TFAIL: in.mp3: was not recognized /opt/ltp/testcases/data/file01/in.mp3: data file01 20 TPASS: file /opt/ltp/testcases/data/file01/in.zip > file.out passed as expected file01 20 TPASS: in.zip: recognized as Zip archive data file01 21 TINFO: SELinux enabled in enforcing mode, this may affect test results file01 21 TINFO: it can be disabled with TST_DISABLE_SELINUX=1 (requires super/root) file01 21 TINFO: loaded SELinux profiles: none

metan-ucw commented 1 year ago

You haven't provided any information about the system where these tests were executed on, the package and version of the file binary, nor the LTP version. It's impossible to figure out what is happening without comprehensible information about the test execution environment.

Wjjoye commented 1 year ago

LTP version is ltp_1.21,yocto system

pevik commented 1 year ago

What ltp_1.21 is? We have time based releases: https://github.com/linux-test-project/ltp/releases.