aboutsummaryrefslogtreecommitdiff
path: root/test_pbuilder-satisfydepends-funcs
diff options
context:
space:
mode:
authorLoïc Minier <lool@dooz.org>2010-01-04 12:44:08 +0100
committerLoïc Minier <lool@dooz.org>2010-01-04 12:44:08 +0100
commitdba6e3e7b0c66823103b2197728f9458700eefcc (patch)
tree368b90ebcfac40aee64331f14b579ca38a4703db /test_pbuilder-satisfydepends-funcs
parent59429f3def6cf3e8e932da39af0bc8fb62ac97bd (diff)
downloadpbuilder-dba6e3e7b0c66823103b2197728f9458700eefcc.tar
pbuilder-dba6e3e7b0c66823103b2197728f9458700eefcc.tar.gz
Add get_build_deps() and get_build_conflicts()
Add get_build_deps() and get_build_conflicts() functions wrapping get_control_re() for BD_REGEXP and BC_REGEXP over DEBIAN_CONTROL.
Diffstat (limited to 'test_pbuilder-satisfydepends-funcs')
-rwxr-xr-xtest_pbuilder-satisfydepends-funcs7
1 files changed, 4 insertions, 3 deletions
diff --git a/test_pbuilder-satisfydepends-funcs b/test_pbuilder-satisfydepends-funcs
index 26bf94c..5512bd6 100755
--- a/test_pbuilder-satisfydepends-funcs
+++ b/test_pbuilder-satisfydepends-funcs
@@ -6,6 +6,7 @@
# testsuite to test pbuilder-satisfydepends-funcs.
DEBIAN_CONTROL=""
+BD_REGEXP="build-(depends|depends-indep)"
cleanup() {
if [ -n "$DEBIAN_CONTROL" ]; then
@@ -13,7 +14,7 @@ cleanup() {
fi
}
-test_get_control_re() {
+test_get_build_deps() {
cat <<EOF >"$DEBIAN_CONTROL"
Source: amule
XXXX:
@@ -33,7 +34,7 @@ Description: test
other things
wow
EOF
- get_control_re "$DEBIAN_CONTROL" "build-(depends|depends-indep)"
+ get_build_deps
}
trap cleanup sigpipe sighup exit
@@ -42,6 +43,6 @@ trap cleanup sigpipe sighup exit
DEBIAN_CONTROL="$(tempfile)"
expect_output " autotools-dev, debhelper, quilt, libwxgtk2.8-dev
- test, test1, test2, test3 | test4, test5" test_get_control_re
+ test, test1, test2, test3 | test4, test5" test_get_build_deps
testlib_summary