blob: 0cfc99b70e86af49fe0742aadae44dd05abfafe8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#!/bin/sh
# This is a testsuite.
# estimated run-time on my PC; 11 minutes.
PBUILDER=/usr/sbin/pbuilder
vmstat -n 1 > normal/vmstat &
VMSTATPID=$!
LC_ALL=C iostat -dxt hda 1 > normal/iostat &
IOSTATPID=$!
if [ -x "${PBUILDER}" ]; then
for distribution in sid sarge; do
sudo ${PBUILDER} create --mirror http://ring.asahi-net.or.jp/archives/linux/debian/debian --distribution "${distribution}" --basetgz $(pwd)/testimage --logfile normal/pbuilder-create-${distribution}.log
for PKG in dsh; do
(
mkdir testbuild
cd testbuild
apt-get source -d ${PKG}
)
sudo ${PBUILDER} build --basetgz $(pwd)/testimage --buildplace $(pwd)/testbuild/ --logfile normal/pbuilder-build-${PKG}-${distribution}.log testbuild/${PKG}*.dsc
(
mkdir testbuild2
cd testbuild2
apt-get source ${PKG}
cd ${PKG}-*
pdebuild --logfile ../../normal/pdebuild-normal-${distribution}.log -- --basetgz $(pwd)/../../testimage --buildplace $(pwd)/../../testbuild2/
pdebuild --use-pdebuild-internal --logfile ../../normal/pdebuild-internal-${distribution}.log -- --basetgz $(pwd)/../../testimage --buildplace $(pwd)/../../testbuild2/
)
done
sudo ${PBUILDER} execute --basetgz $(pwd)/testimage --logfile normal/pbuilder-execute-${distribution}.log ../examples/execute_paramtest.sh test1 test2 test3
sudo rm -rf testbuild testbuild2 testimage
done
fi
kill $VMSTATPID
kill $IOSTATPID
|