tests: ifquery: add testcases for ifquery -U
This commit is contained in:
parent
c7eeef27a4
commit
c8dad76fe1
1 changed files with 17 additions and 1 deletions
|
@ -34,7 +34,9 @@ tests_init \
|
|||
vlan_explicit_learned_dependency \
|
||||
vlan_guessed_learned_dependency \
|
||||
vlan_complex_learned_dependency \
|
||||
wireguard
|
||||
wireguard \
|
||||
allow_undefined_positive \
|
||||
allow_undefined_negative
|
||||
|
||||
noargs_body() {
|
||||
atf_check -s exit:1 -e ignore ifquery -S/dev/null
|
||||
|
@ -226,3 +228,17 @@ wireguard_body() {
|
|||
-o match:"use wireguard" \
|
||||
ifquery -E $EXECUTORS_LINUX -i $FIXTURES/wireguard.interfaces wg0
|
||||
}
|
||||
|
||||
allow_undefined_positive_body() {
|
||||
atf_check -s exit:0 \
|
||||
-o ignore \
|
||||
-e ignore \
|
||||
ifquery -U -i /dev/null -p address foo
|
||||
}
|
||||
|
||||
allow_undefined_negative_body() {
|
||||
atf_check -s exit:1 \
|
||||
-o ignore \
|
||||
-e ignore \
|
||||
ifquery -i /dev/null -p address foo
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue