All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH] vmcp: skip test on non-s390x architectures
@ 2026-03-24 14:33 sowmya.indranna--- via ltp
  2026-03-24 16:00 ` Cyril Hrubis
  0 siblings, 1 reply; 3+ messages in thread
From: sowmya.indranna--- via ltp @ 2026-03-24 14:33 UTC (permalink / raw)
  To: ltp; +Cc: Sowmya Indranna

From: Sowmya Indranna <sowmya.indranna@ibm.com>

The vmcp test is specific to s390x systems and is not supported on
other architectures such as ppc64le. Currently, the test fails on
unsupported platforms.

Add an architecture check to skip execution on non-s390x systems
by reporting TCONF, avoiding false test failures.

Signed-off-by: Sowmya Indranna <sowmya.indranna@ibm.com>
---
 testcases/commands/vmcp/vmcp_m.sh | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/testcases/commands/vmcp/vmcp_m.sh b/testcases/commands/vmcp/vmcp_m.sh
index 3924a6e11..e40dec4bd 100644
--- a/testcases/commands/vmcp/vmcp_m.sh
+++ b/testcases/commands/vmcp/vmcp_m.sh
@@ -15,6 +15,15 @@ TST_CNT=2
 TST_TESTFUNC=vmcp_main
 TST_NEEDS_CMDS="vmcp"
 
+# Check if running on s390x architecture
+check_arch()
+{
+	local arch=$(uname -m)
+	if [ "$arch" != "s390x" ]; then
+		tst_brk TCONF "vmcp test requires s390x architecture, current: $arch"
+	fi
+}
+
 vmcp_run()
 {
 
-- 
2.39.1


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [LTP] [PATCH] vmcp: skip test on non-s390x architectures
  2026-03-24 14:33 [LTP] [PATCH] vmcp: skip test on non-s390x architectures sowmya.indranna--- via ltp
@ 2026-03-24 16:00 ` Cyril Hrubis
  2026-03-24 16:05   ` Sowmya Indranna via ltp
  0 siblings, 1 reply; 3+ messages in thread
From: Cyril Hrubis @ 2026-03-24 16:00 UTC (permalink / raw)
  To: sowmya.indranna; +Cc: ltp

Hi!
> The vmcp test is specific to s390x systems and is not supported on
> other architectures such as ppc64le. Currently, the test fails on
> unsupported platforms.
> 
> Add an architecture check to skip execution on non-s390x systems
> by reporting TCONF, avoiding false test failures.
> 
> Signed-off-by: Sowmya Indranna <sowmya.indranna@ibm.com>
> ---
>  testcases/commands/vmcp/vmcp_m.sh | 9 +++++++++
>  1 file changed, 9 insertions(+)
> 
> diff --git a/testcases/commands/vmcp/vmcp_m.sh b/testcases/commands/vmcp/vmcp_m.sh
> index 3924a6e11..e40dec4bd 100644
> --- a/testcases/commands/vmcp/vmcp_m.sh
> +++ b/testcases/commands/vmcp/vmcp_m.sh
> @@ -15,6 +15,15 @@ TST_CNT=2
>  TST_TESTFUNC=vmcp_main
>  TST_NEEDS_CMDS="vmcp"
>  
> +# Check if running on s390x architecture
> +check_arch()
> +{
> +	local arch=$(uname -m)
> +	if [ "$arch" != "s390x" ]; then
> +		tst_brk TCONF "vmcp test requires s390x architecture, current: $arch"
> +	fi
> +}

The test has TST_NEEDS_CMDS="vmcp" it shouldn't even start unless there
is vmcp installed. And would expect that vmcp is not installed unless we
are on s390x.

-- 
Cyril Hrubis
chrubis@suse.cz

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [LTP] [PATCH] vmcp: skip test on non-s390x architectures
  2026-03-24 16:00 ` Cyril Hrubis
@ 2026-03-24 16:05   ` Sowmya Indranna via ltp
  0 siblings, 0 replies; 3+ messages in thread
From: Sowmya Indranna via ltp @ 2026-03-24 16:05 UTC (permalink / raw)
  To: Cyril Hrubis; +Cc: ltp@lists.linux.it

Agree, the test results in failed state when run which should be part of skip tests, complete details are in the issue https://github.com/linux-test-project/ltp/issues/1298 for reference.

Thanks
Sowmya Indranna
________________________________
From: Cyril Hrubis <chrubis@suse.cz>
Sent: Tuesday, March 24, 2026 9:30 PM
To: Sowmya Indranna <Sowmya.Indranna@ibm.com>
Cc: ltp@lists.linux.it <ltp@lists.linux.it>
Subject: [EXTERNAL] Re: [LTP] [PATCH] vmcp: skip test on non-s390x architectures

Hi!
> The vmcp test is specific to s390x systems and is not supported on
> other architectures such as ppc64le. Currently, the test fails on
> unsupported platforms.
>
> Add an architecture check to skip execution on non-s390x systems
> by reporting TCONF, avoiding false test failures.
>
> Signed-off-by: Sowmya Indranna <sowmya.indranna@ibm.com>
> ---
>  testcases/commands/vmcp/vmcp_m.sh | 9 +++++++++
>  1 file changed, 9 insertions(+)
>
> diff --git a/testcases/commands/vmcp/vmcp_m.sh b/testcases/commands/vmcp/vmcp_m.sh
> index 3924a6e11..e40dec4bd 100644
> --- a/testcases/commands/vmcp/vmcp_m.sh
> +++ b/testcases/commands/vmcp/vmcp_m.sh
> @@ -15,6 +15,15 @@ TST_CNT=2
>  TST_TESTFUNC=vmcp_main
>  TST_NEEDS_CMDS="vmcp"
>
> +# Check if running on s390x architecture
> +check_arch()
> +{
> +     local arch=$(uname -m)
> +     if [ "$arch" != "s390x" ]; then
> +             tst_brk TCONF "vmcp test requires s390x architecture, current: $arch"
> +     fi
> +}

The test has TST_NEEDS_CMDS="vmcp" it shouldn't even start unless there
is vmcp installed. And would expect that vmcp is not installed unless we
are on s390x.

--
Cyril Hrubis
chrubis@suse.cz

-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-03-24 16:05 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-24 14:33 [LTP] [PATCH] vmcp: skip test on non-s390x architectures sowmya.indranna--- via ltp
2026-03-24 16:00 ` Cyril Hrubis
2026-03-24 16:05   ` Sowmya Indranna via ltp

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.