mirror of
https://git.yoctoproject.org/poky
synced 2026-07-03 20:13:42 +02:00
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>
671 B
Executable File
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