]> code.ossystems Code Review - openembedded-core.git/commitdiff
numactl: Skip the ptests when numa is not supported
authorRandy Witt <randy.e.witt@intel.com>
Mon, 19 Oct 2020 21:42:13 +0000 (14:42 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 30 Oct 2020 12:37:53 +0000 (12:37 +0000)
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.

Signed-off-by: Randy Witt <randy.e.witt@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-support/numactl/numactl/run-ptest

index 215f7c25b99956d1bcaf81fc2270def25ae21ea6..bf269da7559e88b74a1a2af0655b07a10d4ec2bd 100755 (executable)
@@ -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