From 8ffc2ca8735b2d670614dea9bcccb1211ad7d213 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 5 Jul 2022 17:37:53 +0200 Subject: setup-interfaces: mock apk add and test that vlan gets installed test that vlan gets installed --- tests/setup_interfaces_test | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/setup_interfaces_test b/tests/setup_interfaces_test index fc652c1..c09968c 100755 --- a/tests/setup_interfaces_test +++ b/tests/setup_interfaces_test @@ -3,7 +3,8 @@ . $(atf_get_srcdir)/test_env.sh init_tests \ setup_interfaces_usage \ - setup_interfaces_interactive_dhcp + setup_interfaces_interactive_dhcp \ + setup_interfaces_interactive_vlan setup_interfaces_usage_body() { test_usage setup-interfaces @@ -34,3 +35,21 @@ setup_interfaces_interactive_dhcp_body() { -o match:"Available interfaces are: eth0" \ setup-interfaces answers + atf_check -s exit:0 \ + -o match:"apk add.*vlan" \ + setup-interfaces