2014-10-06 16:07:04 +05:30
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
for f in bin/*; do
|
|
|
|
export PATH=$PWD/$f:$PATH
|
|
|
|
done
|
2014-10-06 17:46:50 +05:30
|
|
|
export PATH=$PATH:/usr/local/bin
|
2014-10-06 16:07:04 +05:30
|
|
|
export LD_PRELOAD=$PWD/lib/libxbps.so
|
2014-11-06 15:12:55 +05:30
|
|
|
|
2019-04-21 01:16:28 +05:30
|
|
|
NPROCS=1
|
|
|
|
if [ -r /proc/cpuinfo ]; then
|
2019-04-21 01:24:08 +05:30
|
|
|
NPROCS=$(grep ^proc /proc/cpuinfo|wc -l)
|
2019-04-21 01:16:28 +05:30
|
|
|
fi
|
|
|
|
kyua --variable parallelism=$NPROCS test -r result.db -k tests/xbps/Kyuafile
|
2014-11-06 15:12:55 +05:30
|
|
|
rv=$?
|
|
|
|
kyua report --verbose -r result.db
|
|
|
|
rm -f result.db
|
|
|
|
exit $rv
|