summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/setup_interfaces_test26
1 files changed, 25 insertions, 1 deletions
diff --git a/tests/setup_interfaces_test b/tests/setup_interfaces_test
index 35dce72..4a611ab 100755
--- a/tests/setup_interfaces_test
+++ b/tests/setup_interfaces_test
@@ -12,7 +12,10 @@ init_tests \
setup_interfaces_interactive_br0 \
setup_interfaces_interactive_bond0 \
setup_interfaces_interactive_wlan0_psk \
- setup_interfaces_interactive_wlan0_open
+ setup_interfaces_interactive_wlan0_open \
+ setup_interfaces_auto \
+ setup_interfaces_auto_none \
+ setup_interfaces_auto_restart
setup_interfaces_usage_body() {
test_usage setup-interfaces
@@ -233,3 +236,24 @@ setup_interfaces_interactive_wlan0_open_body() {
-o match:"Ip address for wlan0" \
setup-interfaces <answers
}
+
+setup_interfaces_auto_body() {
+ init_env
+ create_fake_ifaces lo eth0
+ atf_check -s exit:0 \
+ setup-interfaces -a
+}
+
+setup_interfaces_auto_none_body() {
+ init_env
+ atf_check -s exit:0 \
+ setup-interfaces -a
+}
+
+setup_interfaces_auto_restart_body() {
+ init_env
+ create_fake_ifaces lo eth0
+ atf_check -s exit:0 \
+ setup-interfaces -a -r
+ atf_check -o match:"status: started" rc-service networking status
+}