Skip to content

execution make test failed #1221

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
dabao1990 opened this issue Feb 6, 2025 · 5 comments
Open

execution make test failed #1221

dabao1990 opened this issue Feb 6, 2025 · 5 comments
Assignees
Labels

Comments

@dabao1990
Copy link

[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

@metan-ucw
Copy link
Member

metan-ucw commented Feb 6, 2025

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.

@dabao1990
Copy link
Author

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

@metan-ucw
Copy link
Member

@dabao1990 Exactly.

@pevik
Copy link
Member

pevik commented Mar 7, 2025

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?

@pevik pevik self-assigned this Mar 7, 2025
@simon28li
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants