aboutsummaryrefslogtreecommitdiff
path: root/testsuite/run-test-uml.sh
diff options
context:
space:
mode:
Diffstat (limited to 'testsuite/run-test-uml.sh')
-rwxr-xr-xtestsuite/run-test-uml.sh35
1 files changed, 35 insertions, 0 deletions
diff --git a/testsuite/run-test-uml.sh b/testsuite/run-test-uml.sh
new file mode 100755
index 0000000..70fd352
--- /dev/null
+++ b/testsuite/run-test-uml.sh
@@ -0,0 +1,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 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 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 ../../pdebuild-user-mode-linux-normal-${distribution}.log -- --uml-image $(pwd)/../../testimage --buildplace $(pwd)/../../testbuild2/
+ pdebuild-user-mode-linux --use-pdebuild-internal --logfile ../../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 pbuilder-user-mode-linux-execute-${distribution}.log ../examples/execute_paramtest.sh test1 test2 test3
+ rm -rf testbuild testbuild2 testimage
+ done
+fi
+
+
+