ifupdown-ng/tests/linux/ppp_test
Maximilian Wilhelm d9e78e14fb tests: Update tests to reflect create/destroy phase.
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
2020-09-10 00:49:04 +02:00

22 lines
460 B
Text
Executable file

#!/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
atf_check -s exit:0 \
-o match:'pon someisp' \
${EXECUTOR}
}
teardown_body() {
export MOCK=echo IFACE=ppp0 PHASE=destroy IF_PPP_PROVIDER=someisp
atf_check -s exit:0 \
-o match:'poff someisp' \
${EXECUTOR}
}