tests: add wireguard tests

This commit is contained in:
Ariadne Conill 2020-09-04 13:10:57 -06:00
parent f32481deb9
commit acb555b75a
4 changed files with 52 additions and 1 deletions

View file

@ -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
}