From 9da508d6a39eb24fdc70eb5a525be58d2c06202a Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 6 Jul 2022 09:03:11 +0200 Subject: setup-interfaces: add test for interactive wifi setup --- tests/setup_interfaces_test | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'tests/setup_interfaces_test') diff --git a/tests/setup_interfaces_test b/tests/setup_interfaces_test index c189918..e210b26 100755 --- a/tests/setup_interfaces_test +++ b/tests/setup_interfaces_test @@ -8,7 +8,8 @@ init_tests \ setup_interfaces_interactive_vlan_ng \ setup_interfaces_interactive_vlan0_ng \ setup_interfaces_interactive_br0 \ - setup_interfaces_interactive_bond0 + setup_interfaces_interactive_bond0 \ + setup_interfaces_interactive_wlan0 setup_interfaces_usage_body() { test_usage setup-interfaces @@ -152,3 +153,27 @@ setup_interfaces_interactive_bond0_body() { -o match:"apk add.*bonding" \ setup-interfaces answers + atf_check -s exit:0 \ + -o match:"Available interfaces are: eth0 wlan2" \ + -o match:"Type the \"Telenor0366rar\" network Pre-Shared Key" \ + -o match:"Ip address for wlan2" \ + setup-interfaces