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 \
|
||||
inet_dhcp \
|
||||
use_dhcp \
|
||||
alias_eth0_home \
|
||||
alias_eth0_work \
|
||||
bonded_bridge
|
||||
|
@ -59,6 +60,14 @@ inet_dhcp_body() {
|
|||
ifdown -S/dev/null -i $FIXTURES/dhcp-eth0.interfaces -n -a
|
||||
}
|
||||
|
||||
use_dhcp_body() {
|
||||
atf_check -s exit:0 -e ignore \
|
||||
-o match:'ip link set down dev lo' \
|
||||
-o match:'ip link set down dev eth0' \
|
||||
-o match:'dhc' \
|
||||
ifdown -S/dev/null -i $FIXTURES/use-dhcp-eth0.interfaces -n -a
|
||||
}
|
||||
|
||||
alias_eth0_home_body() {
|
||||
atf_check -s exit:0 -e ignore \
|
||||
-o match:'ip link set down dev wlan0' \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue