blob: e019b0d364ecc546c9f518fb0dfe370267c16077 [file] [log] [blame]
Andrew Geissler6ce62a22020-11-30 19:58:47 -06001#!/bin/sh
2
3# If there is numa support, run the tests. Otherwise skip all the tests.
4# Ideally the skipping would happen by the upstream tests.
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
Andrew Geisslerc5535c92023-01-27 16:10:19 -060011 if [ "$?" = 77 ] ; then
12 echo "SKIP: numademo"
13 else
14 echo "FAIL: numademo"
15 fi
Andrew Geissler6ce62a22020-11-30 19:58:47 -060016 fi
17else
18 echo "SKIP: ./../test/bind_range"
19 echo "SKIP: ./../test/checkaffinity"
20 echo "SKIP: ./../test/checktopology"
21 echo "SKIP: ./../test/distance"
22 echo "SKIP: ./../test/nodemap"
23 echo "SKIP: ./../test/tbitmap"
24 echo "SKIP: numactl_regress"
25 echo "SKIP: numademo"
26fi
27