Files
poky/meta/recipes-support/numactl/numactl/run-ptest
Xiangyu Chen 05fac8d648 numactl: skip test case when target platform doesn't have 2 CPU node
when current test platform doesn't have 2 or more CPU node, the test
case would report FAIL, according to numa test script and numademo
code, when return code=77 should be skip test, so using SKIP instead
of FAIL in test script.

(From OE-Core rev: fd0a82400d419bce8605a9445db9b20b8ddc01a7)

Signed-off-by: Xiangyu Chen <xiangyu.chen@windriver.com>
Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2023-01-20 16:40:47 +00:00

671 B
Executable File

#!/bin/sh

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 if [ "$?" = 77 ] ; then echo "SKIP: numademo" else echo "FAIL: numademo" fi fi else 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