tests: add ifquery tests for ppp
This commit is contained in:
parent
dd02502461
commit
0dd8dc1b0e
1 changed files with 13 additions and 1 deletions
|
@ -21,7 +21,9 @@ tests_init \
|
|||
implicit_vlan \
|
||||
vrf_dependency \
|
||||
vrf_ifupdown2_rewrite \
|
||||
vrf_ifupdown2_dependency
|
||||
vrf_ifupdown2_dependency \
|
||||
ppp_dependency \
|
||||
ppp_legacy_rewrite
|
||||
|
||||
noargs_body() {
|
||||
atf_check -s exit:1 -e ignore ifquery -S/dev/null
|
||||
|
@ -130,3 +132,13 @@ vrf_ifupdown2_dependency_body() {
|
|||
atf_check -s exit:0 -o match:"requires vrf-red" \
|
||||
ifquery -E $EXECUTORS_LINUX -i $FIXTURES/vrf-ifupdown2.interfaces eth0
|
||||
}
|
||||
|
||||
ppp_dependency_body() {
|
||||
atf_check -s exit:0 -o match:"requires eth0" \
|
||||
ifquery -E $EXECUTORS_LINUX -i $FIXTURES/ppp.interfaces ppp0
|
||||
}
|
||||
|
||||
ppp_legacy_rewrite_body() {
|
||||
atf_check -s exit:0 -o match:"ppp-provider someisp" \
|
||||
ifquery -E $EXECUTORS_LINUX -i $FIXTURES/ppp-legacy.interfaces ppp0
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue