ltp icon indicating copy to clipboard operation
ltp copied to clipboard

execution make test failed

Open dabao1990 opened this issue 10 months ago • 5 comments

[root@localhost newlib_tests]#cat /etc/os-release NAME="CentOS Linux" VERSION="8 (Core)" ID="centos" ID_LIKE="rhel fedora" VERSION_ID="8" PLATFORM_ID="platform:el8" PRETTY_NAME="CentOS Linux 8 (Core)" ANSI_COLOR="0;31" CPE_NAME="cpe:/o:centos:centos:8" HOME_URL="https://www.centos.org/" BUG_REPORT_URL="https://bugs.centos.org/"

steps: 1、spack install --overwrite --keep-stage --no-checksum -y ltp@20250130 2、cd ltp@20250130 3、make test -j128

...... runtest TINFO: * tst_needs_cmds02 tst_cmd.c:268: TCONF: Couldn't find 'mkfs.ext45' in $PATH

runtest TINFO: * tst_needs_cmds03 tst_cmd.c:281: TINFO: Parsing mkfs.ext4 version tst_cmd.c:318: TCONF: Invalid op(!)

runtest TINFO: * tst_needs_cmds06 tst_cmd.c:276: TCONF: Illegal format(mkfs.ext4 > 1.43.0 2), should use format like mkfs.ext4 >= 1.43.0

runtest TINFO: * tst_needs_cmds07 tst_cmd.c:268: TCONF: Couldn't find 'mkfs.ext45' in $PATH

runtest TINFO: * tst_needs_cmds08 tst_cmd.c:281: TINFO: Parsing mkfs.xfs version tst_test.c:1900: TINFO: LTP version: 20250130 tst_test.c:1904: TINFO: Tested kernel: 4.18.0-193.el8.aarch64 #1 SMP Fri May 8 11:05:12 UTC 2020 aarch64 tst_kconfig.c:88: TINFO: Parsing kernel config '/lib/modules/4.18.0-193.el8.aarch64/config' tst_test.c:1724: TINFO: Overall timeout per run is 0h 00m 30s tst_needs_cmds08.c:16: TFAIL: Nonexisting parser function for mkfs.xfs is present!

Summary: passed 0 failed 1 broken 0 skipped 0 warnings 0

dabao1990 avatar Feb 06 '25 09:02 dabao1990

Looks like the library unit test got broken when we actually implemented parsers for xfs in 257394e4e356f5e9aad37715370a0fc5e3dc20bf.

@pevik I suppose that we should switch the test to a nonsensical fs e.g. 'mkfs.foo' or something along the lines.

@dabao1990 also note that make test does not run the actual testcases but only unit tests for the LTP library. To actually run LTP tests you need to install LTP and use a testrunner such as kirk.

metan-ucw avatar Feb 06 '25 09:02 metan-ucw

Looks like the library unit test got broken when we actually implemented parsers for xfs in 257394e.

@pevik I suppose that we should switch the test to a nonsensical fs e.g. 'mkfs.foo' or something along the lines.

@dabao1990 also note that make test does not run the actual testcases but only unit tests for the LTP library. To actually run LTP tests you need to install LTP and use a testrunner such as kirk.

So it's a problem, but it's not important

dabao1990 avatar Feb 06 '25 11:02 dabao1990

@dabao1990 Exactly.

metan-ucw avatar Feb 06 '25 14:02 metan-ucw

Looks like the library unit test got broken when we actually implemented parsers for xfs in 257394e.

+1 good catch!

@pevik I suppose that we should switch the test to a nonsensical fs e.g. 'mkfs.foo' or something along the lines.

This does not help:

tst_cmd.c:268: TCONF: Couldn't find 'mkfs.foo' in $PATH

And if I try something real, e.g. mkfs.btrfs it's get catched by check from e0888ac4f20d5791aa84b0074cd51f3ae281b323:

tst_cmd.c:287: TBROK: No version parser for mkfs.btrfs implemented!

I guess we should delete the version check or even whole test, right?

pevik avatar Mar 07 '25 15:03 pevik

Looks like the library unit test got broken when we actually implemented parsers for xfs in 257394e.

+1 good catch!

@pevik I suppose that we should switch the test to a nonsensical fs e.g. 'mkfs.foo' or something along the lines.

This does not help:

tst_cmd.c:268: TCONF: Couldn't find 'mkfs.foo' in $PATH

And if I try something real, e.g. mkfs.btrfs it's get catched by check from e0888ac:

tst_cmd.c:287: TBROK: No version parser for mkfs.btrfs implemented!

I guess we should delete the version check or even whole test, right?

Have you made any decisions on this issue lately? It's still hanging.

simon28li avatar Apr 24 '25 07:04 simon28li