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/bin/iwlist | 66 +++++++++++++++++++++++++++++++++++++++++++++ tests/bin/wpa_passphrase | 9 +++++++ tests/setup_interfaces_test | 27 ++++++++++++++++++- 3 files changed, 101 insertions(+), 1 deletion(-) create mode 100755 tests/bin/iwlist create mode 100755 tests/bin/wpa_passphrase (limited to 'tests') diff --git a/tests/bin/iwlist b/tests/bin/iwlist new file mode 100755 index 0000000..6b92726 --- /dev/null +++ b/tests/bin/iwlist @@ -0,0 +1,66 @@ +#!/bin/sh + +cat<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