tests: add tests for use dhcp variant
This commit is contained in:
parent
16af3755e0
commit
7f847ac975
4 changed files with 27 additions and 0 deletions
|
|
@ -9,6 +9,7 @@ tests_init \
|
|||
static_ipv4 \
|
||||
static_ipv6 \
|
||||
dhcp_ipv4 \
|
||||
use_dhcp \
|
||||
state_query_home \
|
||||
state_query_work \
|
||||
state_print
|
||||
|
|
@ -47,6 +48,11 @@ dhcp_ipv4_body() {
|
|||
ifquery -S/dev/null -i $FIXTURES/dhcp-eth0.interfaces eth0
|
||||
}
|
||||
|
||||
use_dhcp_body() {
|
||||
atf_check -s exit:0 -o match:"use dhcp" \
|
||||
ifquery -S/dev/null -i $FIXTURES/use-dhcp-eth0.interfaces eth0
|
||||
}
|
||||
|
||||
state_query_home_body() {
|
||||
atf_check -s exit:0 -o match:"iface home" \
|
||||
ifquery -S $FIXTURES/alias-home.ifstate -i $FIXTURES/alias-home-work.interfaces wlan0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue