aboutsummaryrefslogtreecommitdiff
path: root/test_pbuilder-satisfydepends-funcs
blob: a245fc773864d9c41f5d9d8e494e00de352e1d48 (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
#!/bin/bash

. ./testlib.sh
. ./pbuilder-satisfydepends-funcs

# testsuite to test pbuilder-satisfydepends-checkparams.

test_get_control_re() {
    CONTROL=$(tempfile)
    cat <<EOF > "$CONTROL"
Source: amule
XXXX:
Build-Depends: 
 autotools-dev,
 debhelper,
 quilt,
##
 libwxgtk2.8-dev,
Build-Depends-Indep: test, test1
Desctiption: test
 other things
 wow
EOF
    get_control_re "$CONTROL" "build-(depends|depends-indep)"
}
expect_output " 
 autotools-dev,
 debhelper,
 quilt,
 libwxgtk2.8-dev,
 test, test1" test_get_control_re

testlib_summary