File: upstream-testsuite

package info (click to toggle)
runit 2.2.0-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,568 kB
  • sloc: ansic: 6,071; sh: 3,419; makefile: 399
file content (19 lines) | stat: -rw-r--r-- 619 bytes parent folder | download | duplicates (2)
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"