tests: Add test for dummy link creation.

Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
This commit is contained in:
Maximilian Wilhelm 2020-09-05 00:28:12 +02:00
parent 4a05010539
commit 32b7dda832

View file

@ -13,7 +13,8 @@ tests_init \
vlan_guessed_pre_up \
vlan_guessed_post_down \
vlan_explicit_depend \
vlan_guessed_depend
vlan_guessed_depend \
dummy_pre_up
up_body() {
export IFACE=lo PHASE=up MOCK=echo
@ -77,3 +78,9 @@ vlan_guessed_depend_body() {
atf_check -s exit:0 -o match:'eth0' \
${EXECUTOR}
}
dummy_pre_up_body() {
export IFACE=yolo IF_LINK_TYPE=dummy PHASE=pre-up MOCK=echo
atf_check -s exit:0 -o match:'ip link add yolo type dummy' \
${EXECUTOR}
}