tests: add wireguard tests
This commit is contained in:
parent
f32481deb9
commit
acb555b75a
4 changed files with 52 additions and 1 deletions
|
|
@ -33,7 +33,8 @@ tests_init \
|
|||
gre_dependency \
|
||||
vlan_explicit_learned_dependency \
|
||||
vlan_guessed_learned_dependency \
|
||||
vlan_complex_learned_dependency
|
||||
vlan_complex_learned_dependency \
|
||||
wireguard
|
||||
|
||||
noargs_body() {
|
||||
atf_check -s exit:1 -e ignore ifquery -S/dev/null
|
||||
|
|
@ -218,3 +219,10 @@ vlan_complex_learned_dependency_body() {
|
|||
-o match:"vlan-raw-device eth0" \
|
||||
ifquery -E $EXECUTORS_LINUX -i $FIXTURES/vlan-complex.interfaces servers
|
||||
}
|
||||
|
||||
wireguard_body() {
|
||||
atf_check -s exit:0 \
|
||||
-o match:"requires eth0" \
|
||||
-o match:"use wireguard" \
|
||||
ifquery -E $EXECUTORS_LINUX -i $FIXTURES/wireguard.interfaces wg0
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue