xbps/run-tests
Juan RP a498e7aee2
run-tests: use LD_LIBRARY_PATH instead.
Somehow musl does not like this LD_PRELOAD.

Signed-off-by: Juan RP <xtraeme@gmail.com>
2019-06-14 10:14:36 +02:00

17 lines
348 B
Bash
Executable File

#!/bin/sh
for f in bin/*; do
export PATH=$PWD/$f:$PATH
done
export PATH=$PATH:/usr/local/bin
NPROCS=1
if [ -r /proc/cpuinfo ]; then
NPROCS=$(grep ^proc /proc/cpuinfo|wc -l)
fi
LD_LIBRARY_PATH=$PWD/lib kyua --variable parallelism=$NPROCS test -r result.db -k tests/xbps/Kyuafile
rv=$?
kyua report --verbose -r result.db
rm -f result.db
exit $rv