diff options
Diffstat (limited to 'tests/setup_timezone_test')
-rwxr-xr-x | tests/setup_timezone_test | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/tests/setup_timezone_test b/tests/setup_timezone_test index 53fccd9..68ca961 100755 --- a/tests/setup_timezone_test +++ b/tests/setup_timezone_test @@ -2,9 +2,21 @@ . $(atf_get_srcdir)/test_env.sh init_tests \ - setup_timezone_usage + setup_timezone_usage \ + setup_timezone_copy \ setup_timezone_usage_body() { test_usage setup-timezone } +setup_timezone_copy_body() { + init_env + mkdir -p usr/share/zoneinfo/Europe + touch usr/share/zoneinfo/Europe/Oslo + atf_check -s exit:0 \ + -o match:"apk add .*tzdata" \ + -o match:"apk del" \ + -e empty \ + setup-timezone Europe/Oslo +} + |