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

. ./testlib.sh

# testsuite to test pbuilder-satisfydepends-checkparams.

# mock function
checkbuilddep_internal() {
    : # do nothing function    
}

test_chrootexec1() {
    set -- --chroot /tmp --internal-chrootexec 'chroot /tmp-hoge '
    . ./pbuilder-satisfydepends-checkparams
}

test_chrootexec2() {
    set -- --internal-chrootexec 'chroot /tmp-hoge ' --chroot /tmp
    . ./pbuilder-satisfydepends-checkparams
}

expect_success test_chrootexec1
expect_fail test_chrootexec2
testlib_summary