ifupdown-ng/tests/linux/ppp_test

23 lines
460 B
Text
Raw Permalink Normal View History

2020-08-19 12:15:00 +00:00
#!/usr/bin/env atf-sh
. $(atf_get_srcdir)/../test_env.sh
EXECUTOR="$(atf_get_srcdir)/../../executor-scripts/linux/ppp"
tests_init \
bringup \
teardown \
bringup_body() {
export MOCK=echo IFACE=ppp0 PHASE=create IF_PPP_PROVIDER=someisp
2020-08-19 12:15:00 +00:00
atf_check -s exit:0 \
-o match:'pon someisp' \
${EXECUTOR}
}
teardown_body() {
export MOCK=echo IFACE=ppp0 PHASE=destroy IF_PPP_PROVIDER=someisp
2020-08-19 12:15:00 +00:00
atf_check -s exit:0 \
-o match:'poff someisp' \
${EXECUTOR}
}