diff options
Diffstat (limited to 'tests/setup_timezone_test')
-rwxr-xr-x | tests/setup_timezone_test | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/setup_timezone_test b/tests/setup_timezone_test index 93eb137..391760d 100755 --- a/tests/setup_timezone_test +++ b/tests/setup_timezone_test @@ -7,6 +7,7 @@ init_tests \ setup_timezone_install \ setup_timezone_z_compat \ setup_timezone_none \ + setup_timezone_interactive setup_timezone_usage_body() { test_usage setup-timezone @@ -54,3 +55,18 @@ setup_timezone_none_body() { setup-timezone none } +setup_timezone_interactive_body() { + init_env + mkdir -p usr/share/zoneinfo/Europe + touch usr/share/zoneinfo/Europe/Oslo + ( echo "Europe" + echo "?" + echo "Oslo" + ) > answers + atf_check -s exit:0 \ + -o match:"apk add .*tzdata" \ + -o match:"apk del" \ + -e empty \ + setup-timezone < answers +} + |