#!/bin/bash
set -e
# Makefile writes into CWD
DIR=$(mktemp -d)
cp -a /usr/libexec/psutils/* "$DIR"
pushd "$DIR"
unset PSUTILS_UNINSTALLED
make -j "$(getconf _NPROCESSORS_ONLN)" check-TESTS
popd
rm -r "$DIR"
