tests: Add test for dummy link creation.
Signed-off-by: Maximilian Wilhelm <max@sdn.clinic>
This commit is contained in:
parent
4a05010539
commit
32b7dda832
1 changed files with 8 additions and 1 deletions
|
@ -13,7 +13,8 @@ tests_init \
|
||||||
vlan_guessed_pre_up \
|
vlan_guessed_pre_up \
|
||||||
vlan_guessed_post_down \
|
vlan_guessed_post_down \
|
||||||
vlan_explicit_depend \
|
vlan_explicit_depend \
|
||||||
vlan_guessed_depend
|
vlan_guessed_depend \
|
||||||
|
dummy_pre_up
|
||||||
|
|
||||||
up_body() {
|
up_body() {
|
||||||
export IFACE=lo PHASE=up MOCK=echo
|
export IFACE=lo PHASE=up MOCK=echo
|
||||||
|
@ -77,3 +78,9 @@ vlan_guessed_depend_body() {
|
||||||
atf_check -s exit:0 -o match:'eth0' \
|
atf_check -s exit:0 -o match:'eth0' \
|
||||||
${EXECUTOR}
|
${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}
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue