#!/bin/sh
# More regression tests for libnuma/numa api

VALGRIND=${VALGRIND:-}

testdir=`dirname "$0"`
: ${srcdir:=${testdir}/..}
: ${builddir:=${srcdir}}
export PATH=${builddir}:$PATH

T() {
	if ! $VALGRIND "$@" 2>&1 1>/dev/null;  then
	   echo  "FAIL: $1"
	else
	   echo "PASS: $1"
	fi
}

# still broken
#T "${builddir}/test/prefered"
T "${builddir}/test/distance"
T "${builddir}/test/nodemap"
T "${srcdir}/test/checkaffinity"
T "${srcdir}/test/checktopology"
T "${builddir}/test/tbitmap"
T "${srcdir}/test/bind_range"
#T "${builddir}/test/randmap"
