blob: 726713cbf2a6f252a9ab496a1372d9aaa1a95cd9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/usr/bin/env atf-sh
. $(atf_get_srcdir)/test_env.sh
init_tests \
setup_mta_usage \
setup_mta
setup_mta_usage_body() {
test_usage setup-mta
}
setup_mta_body() {
init_env
atf_check -s exit:0 \
-o match:"apk add ssmtp" \
-e empty \
setup-mta smtp.example.com
grep -q 'mailhub=smtp.example.com' etc/ssmtp/ssmtp.conf || atf_fail "smtp.example.com not set in etc/ssmtp/ssmtp.conf"
}
|