diff options
author | Loïc Minier <lool@dooz.org> | 2010-01-05 16:11:01 +0100 |
---|---|---|
committer | Loïc Minier <lool@dooz.org> | 2010-01-05 16:11:01 +0100 |
commit | c7f3bdfd896bbe42a0885c6ae7a1c5ed830bf68a (patch) | |
tree | 5c8b7ae21ef20ff28ea68ad5c337c6ea8ebeb3c2 /test_pbuilder-satisfydepends-classic | |
parent | e11ca9bef2f4dc3a19c75d12ae8e4450d20975ad (diff) | |
download | pbuilder-c7f3bdfd896bbe42a0885c6ae7a1c5ed830bf68a.tar pbuilder-c7f3bdfd896bbe42a0885c6ae7a1c5ed830bf68a.tar.gz |
Add testsuite for pbuilder-satisfydepends-classic
Diffstat (limited to 'test_pbuilder-satisfydepends-classic')
-rwxr-xr-x | test_pbuilder-satisfydepends-classic | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/test_pbuilder-satisfydepends-classic b/test_pbuilder-satisfydepends-classic new file mode 100755 index 0000000..f38882a --- /dev/null +++ b/test_pbuilder-satisfydepends-classic @@ -0,0 +1,62 @@ +#!/bin/bash +#for flavour in aptitude classic experimental gdebi; do +# (. ./pbuilder-satisfydepends-"$flavour") +#done + +. ./testlib.sh + +DEBIAN_CONTROL="" + +cleanup() { + if [ -n "$DEBIAN_CONTROL" ]; then + rm -f "$DEBIAN_CONTROL" + fi + testlib_cleanup_env +} + +trap cleanup sigpipe sighup exit + +# setup a fake installed environment +testlib_setup_env + +set -- --echo --control "$DEBIAN_CONTROL" +# this is just to source the functions +. ./pbuilder-satisfydepends-classic >/dev/null 2>&1 || true + +DEBIAN_CONTROL="`mktemp -t`" +cat >"$DEBIAN_CONTROL" <<EOF +Build-Depends: debhelper (>= 5.0.0), gnome-pkg-tools, autotools-dev, cdbs, libglib2.0-dev (>= 2.12), libgtk2.0-dev (>= 2.10), libgnome2-dev (>= 2.16.0), libgnomeui-dev (>= 2.16.0), libglade2-dev, libgnomevfs2-dev (>= 2.9.2), libgconf2-dev, libxft-dev, libperl-dev, python-dev, tcl8.4-dev, libxml-parser-perl, libdbus-glib-1-dev (>= 0.60), libtool, scrollkeeper, libgnutls-dev, libnotify-dev (>= 0.3.2-0), libsexy-dev (>= 0.1.7), gnome-doc-utils, libssl-dev (>= 0.9.8b-1), liblaunchpad-integration-dev + +EOF + +test_split_deps() { + get_build_deps | split_deps +} + +expect_output "debhelper/(>=/5.0.0) +/gnome-pkg-tools +/autotools-dev +/cdbs +/libglib2.0-dev/(>=/2.12) +/libgtk2.0-dev/(>=/2.10) +/libgnome2-dev/(>=/2.16.0) +/libgnomeui-dev/(>=/2.16.0) +/libglade2-dev +/libgnomevfs2-dev/(>=/2.9.2) +/libgconf2-dev +/libxft-dev +/libperl-dev +/python-dev +/tcl8.4-dev +/libxml-parser-perl +/libdbus-glib-1-dev/(>=/0.60) +/libtool +/scrollkeeper +/libgnutls-dev +/libnotify-dev/(>=/0.3.2-0) +/libsexy-dev/(>=/0.1.7) +/gnome-doc-utils +/libssl-dev/(>=/0.9.8b-1) +/liblaunchpad-integration-dev" test_split_deps + +testlib_summary |