summaryrefslogtreecommitdiffstats
path: root/meta/recipes-support/numactl/numactl
diff options
context:
space:
mode:
authorRandy Witt <randy.e.witt@intel.com>2020-10-19 14:42:13 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-10-30 13:22:47 +0000
commitf3763062c3882d21f834511349c270ae9522ed52 (patch)
tree779cb51b4bb83bdceef86692289584942ba7fe5e /meta/recipes-support/numactl/numactl
parent6e109fc770410b9fd0c64ea943f6e6294f5d4329 (diff)
downloadpoky-f3763062c3882d21f834511349c270ae9522ed52.tar.gz
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 <randy.e.witt@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-support/numactl/numactl')
-rwxr-xr-xmeta/recipes-support/numactl/numactl/run-ptest24
1 files 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 @@
1#!/bin/sh 1#!/bin/sh
2make regress1 2
3make regress2 3# If there is numa support, run the tests. Otherwise skip all the tests.
4if numademo -t -e 10M; then 4# Ideally the skipping would happen by the upstream tests.
5 echo "PASS: numademo" 5if ! numactl -s | grep -q "No NUMA support available on this system."; then
6 make regress1
7 make regress2
8 if numademo -t -e 10M; then
9 echo "PASS: numademo"
10 else
11 echo "FAIL: numademo"
12 fi
6else 13else
7 echo "FAIL: numademo" 14 echo "SKIP: ./../test/bind_range"
15 echo "SKIP: ./../test/checkaffinity"
16 echo "SKIP: ./../test/checktopology"
17 echo "SKIP: ./../test/distance"
18 echo "SKIP: ./../test/nodemap"
19 echo "SKIP: ./../test/tbitmap"
20 echo "SKIP: numactl_regress"
21 echo "SKIP: numademo"
8fi 22fi
9 23