mirror of
https://git.yoctoproject.org/poky
synced 2026-05-09 17:39:31 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
6e109fc770
commit
f3763062c3
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user