blob: 49a1c370105ff5d625153d50df6eea581fd463c5 (
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
|
#!/bin/sh
# This is a testsuite.
# estimated run-time on my PC; 45 minutes.
PBUILDER_UML=/usr/bin/pbuilder-user-mode-linux
pbuilder-user-mode-linux test --configfile non-existing-configfile
if [ -x "${PBUILDER_UML}" ]; then
for distribution in sid sarge; do
pbuilder-user-mode-linux create --mirror http://ring.asahi-net.or.jp/archives/linux/debian/debian --distribution "${distribution}" --uml-image $(pwd)/testimage --logfile uml/pbuilder-user-mode-linux-create-${distribution}.log
for PKG in dsh; do
(
mkdir testbuild
cd testbuild
apt-get source -d ${PKG}
)
pbuilder-user-mode-linux build --uml-image $(pwd)/testimage --buildplace $(pwd)/testbuild/ --logfile uml/pbuilder-user-mode-linux-build-${PKG}-${distribution}.log testbuild/${PKG}*.dsc
(
mkdir testbuild2
cd testbuild2
apt-get source ${PKG}
cd ${PKG}-*
pdebuild-user-mode-linux --logfile ../../uml/pdebuild-user-mode-linux-normal-${distribution}.log -- --uml-image $(pwd)/../../testimage --buildplace $(pwd)/../../testbuild2/
pdebuild-user-mode-linux --use-pdebuild-internal --logfile ../../uml/pdebuild-user-mode-linux-internal-${distribution}.log -- --uml-image $(pwd)/../../testimage --buildplace $(pwd)/../../testbuild2/
)
done
pbuilder-user-mode-linux execute --uml-image $(pwd)/testimage --logfile uml/pbuilder-user-mode-linux-execute-${distribution}.log ../examples/execute_paramtest.sh test1 test2 test3
rm -rf testbuild testbuild2 testimage
done
fi
|