diff --git a/tests/ifquery_test b/tests/ifquery_test index f6afe13..67284ec 100755 --- a/tests/ifquery_test +++ b/tests/ifquery_test @@ -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 +}