From f3763062c3882d21f834511349c270ae9522ed52 Mon Sep 17 00:00:00 2001 From: Randy Witt Date: Mon, 19 Oct 2020 14:42:13 -0700 Subject: [PATCH] numactl: Skip the ptests when numa is not supported When numa is not supported, there is no reason to run the ptests since they will fail. While the best scenario would be for the upstream tests to skip themselves when numa is not supported, for now skip them in run-ptest. (From OE-Core rev: a1e498be7904bb9e961653f6d64acb6bbfe0894c) Signed-off-by: Randy Witt Signed-off-by: Richard Purdie --- .../recipes-support/numactl/numactl/run-ptest | 24 +++++++++++++++---- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/meta/recipes-support/numactl/numactl/run-ptest b/meta/recipes-support/numactl/numactl/run-ptest index 215f7c25b9..bf269da755 100755 --- a/meta/recipes-support/numactl/numactl/run-ptest +++ b/meta/recipes-support/numactl/numactl/run-ptest @@ -1,9 +1,23 @@ #!/bin/sh -make regress1 -make regress2 -if numademo -t -e 10M; then - echo "PASS: numademo" + +# If there is numa support, run the tests. Otherwise skip all the tests. +# Ideally the skipping would happen by the upstream tests. +if ! numactl -s | grep -q "No NUMA support available on this system."; then + make regress1 + make regress2 + if numademo -t -e 10M; then + echo "PASS: numademo" + else + echo "FAIL: numademo" + fi else - echo "FAIL: numademo" + echo "SKIP: ./../test/bind_range" + echo "SKIP: ./../test/checkaffinity" + echo "SKIP: ./../test/checktopology" + echo "SKIP: ./../test/distance" + echo "SKIP: ./../test/nodemap" + echo "SKIP: ./../test/tbitmap" + echo "SKIP: numactl_regress" + echo "SKIP: numademo" fi