1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
#!/bin/sh
set -e
echo "importing upstream testsuite.."
for file in runit-*/src/*.check runit-*/src/*.dist; do
cp $file "$AUTOPKGTEST_TMP"
done
cp runit-*/src/check-diff "$AUTOPKGTEST_TMP"
echo "done"
cd "$AUTOPKGTEST_TMP"
echo "Running upstream testsuite.."
# check-local, IT = chpst runit runit-init runsv runsvchdir runsvdir sv svlogd utmpset
for i in chpst runit runit-init runsv runsvchdir runsvdir sv svlogd utmpset ; do
echo "Checking $i..."
ctmp="`pwd`/check-tmp" ./$i.check 2>&1 |cat -v >$i.local
./check-diff $i && echo "..ok" || ( cat $i.local; echo "$i failed."; exit 1 ) || exit 1
done
echo "done"
|