Blame


1 85b37c72 2022-12-30 thomas .include "../../got-version.mk"
2 85b37c72 2022-12-30 thomas
3 ead70407 2022-11-17 thomas REGRESS_TARGETS=test_repo_read test_repo_read_group \
4 5667a3a5 2022-11-17 thomas test_repo_read_denied_user test_repo_read_denied_group \
5 ead70407 2022-11-17 thomas test_repo_read_bad_user test_repo_read_bad_group \
6 6d7eb4f7 2023-04-04 thomas test_repo_write test_repo_write_empty test_request_bad \
7 ce1bfad9 2024-03-30 thomas test_repo_write_protected test_email_notification
8 f2900386 2022-10-31 thomas NOOBJ=Yes
9 163d9376 2023-01-19 thomas CLEANFILES=gotd.conf
10 f2900386 2022-10-31 thomas
11 f2900386 2022-10-31 thomas .PHONY: ensure_root prepare_test_repo check_test_repo start_gotd
12 f2900386 2022-10-31 thomas
13 f2900386 2022-10-31 thomas GOTD_TEST_ROOT=/tmp
14 f2900386 2022-10-31 thomas GOTD_DEVUSER?=gotdev
15 a0934206 2022-10-31 thomas GOTD_DEVUSER_HOME!=userinfo $(GOTD_DEVUSER) | awk '/^dir/ {print $$2}'
16 d6e78555 2023-06-01 thomas GOTD_TEST_REPO!?=mktemp -d "$(GOTD_TEST_ROOT)/gotd-test-repo-XXXXXXXXXX"
17 ce1bfad9 2024-03-30 thomas GOTD_TEST_REPO_NAME=test-repo
18 ce1bfad9 2024-03-30 thomas GOTD_TEST_REPO_URL=ssh://${GOTD_DEVUSER}@127.0.0.1/$(GOTD_TEST_REPO_NAME)
19 ce1bfad9 2024-03-30 thomas GOTD_TEST_SMTP_PORT=2525
20 f2900386 2022-10-31 thomas
21 2bf2e644 2022-12-11 thomas GOTD_TEST_USER?=${DOAS_USER}
22 2bf2e644 2022-12-11 thomas .if empty(GOTD_TEST_USER)
23 2bf2e644 2022-12-11 thomas GOTD_TEST_USER=${SUDO_USER}
24 2bf2e644 2022-12-11 thomas .endif
25 2bf2e644 2022-12-11 thomas .if empty(GOTD_TEST_USER)
26 2bf2e644 2022-12-11 thomas GOTD_TEST_USER=${USER}
27 2bf2e644 2022-12-11 thomas .endif
28 a0934206 2022-10-31 thomas GOTD_TEST_USER_HOME!=userinfo $(GOTD_TEST_USER) | awk '/^dir/ {print $$2}'
29 f2900386 2022-10-31 thomas
30 f2900386 2022-10-31 thomas # gotd.conf parameters
31 f2900386 2022-10-31 thomas GOTD_USER?=got
32 f2900386 2022-10-31 thomas GOTD_SOCK=${GOTD_DEVUSER_HOME}/gotd.sock
33 f2900386 2022-10-31 thomas
34 85b37c72 2022-12-30 thomas .if "${GOT_RELEASE}" == "Yes"
35 85b37c72 2022-12-30 thomas PREFIX ?= /usr/local
36 85b37c72 2022-12-30 thomas BINDIR ?= ${PREFIX}/bin
37 85b37c72 2022-12-30 thomas .else
38 85b37c72 2022-12-30 thomas PREFIX ?= ${GOTD_TEST_USER_HOME}
39 85b37c72 2022-12-30 thomas BINDIR ?= ${PREFIX}/bin
40 85b37c72 2022-12-30 thomas .endif
41 85b37c72 2022-12-30 thomas
42 ce1bfad9 2024-03-30 thomas GOTD_START_CMD?=env ${GOTD_ENV} $(BINDIR)/gotd -vv -f $(PWD)/gotd.conf
43 85b37c72 2022-12-30 thomas GOTD_STOP_CMD?=$(BINDIR)/gotctl -f $(GOTD_SOCK) stop
44 f2900386 2022-10-31 thomas GOTD_TRAP=trap "$(GOTD_STOP_CMD)" HUP INT QUIT PIPE TERM
45 f2900386 2022-10-31 thomas
46 ce1bfad9 2024-03-30 thomas GOTD_ENV=GOT_NOTIFY_EMAIL_TIMEOUT=1
47 ce1bfad9 2024-03-30 thomas
48 f2900386 2022-10-31 thomas GOTD_TEST_ENV=GOTD_TEST_ROOT=$(GOTD_TEST_ROOT) \
49 f2900386 2022-10-31 thomas GOTD_TEST_REPO_URL=$(GOTD_TEST_REPO_URL) \
50 ce1bfad9 2024-03-30 thomas GOTD_TEST_REPO_NAME=$(GOTD_TEST_REPO_NAME) \
51 f2900386 2022-10-31 thomas GOTD_TEST_REPO=$(GOTD_TEST_REPO) \
52 f2900386 2022-10-31 thomas GOTD_SOCK=$(GOTD_SOCK) \
53 a07c01e0 2022-11-08 thomas GOTD_DEVUSER=$(GOTD_DEVUSER) \
54 ce1bfad9 2024-03-30 thomas GOTD_USER=$(GOTD_USER) \
55 ce1bfad9 2024-03-30 thomas GOTD_TEST_SMTP_PORT=$(GOTD_TEST_SMTP_PORT) \
56 f2900386 2022-10-31 thomas HOME=$(GOTD_TEST_USER_HOME) \
57 f2900386 2022-10-31 thomas PATH=$(GOTD_TEST_USER_HOME)/bin:$(PATH)
58 f2900386 2022-10-31 thomas
59 f2900386 2022-10-31 thomas ensure_root:
60 f2900386 2022-10-31 thomas @if [[ `id -u` -ne 0 ]]; then \
61 69e99a59 2022-12-08 thomas echo gotd test suite must be started by root >&2; \
62 f2900386 2022-10-31 thomas false; \
63 69e99a59 2022-12-08 thomas fi ; \
64 69e99a59 2022-12-08 thomas if [[ "$(GOTD_TEST_USER)" = "root" ]]; then \
65 69e99a59 2022-12-08 thomas echo GOTD_TEST_USER must be a non-root user >&2; \
66 69e99a59 2022-12-08 thomas false; \
67 f2900386 2022-10-31 thomas fi
68 f2900386 2022-10-31 thomas
69 729a7e24 2022-11-17 thomas start_gotd_ro: ensure_root
70 f9a4feb6 2023-01-06 thomas @echo 'listen on "$(GOTD_SOCK)"' > $(PWD)/gotd.conf
71 f2900386 2022-10-31 thomas @echo "user $(GOTD_USER)" >> $(PWD)/gotd.conf
72 f2900386 2022-10-31 thomas @echo 'repository "test-repo" {' >> $(PWD)/gotd.conf
73 f2900386 2022-10-31 thomas @echo ' path "$(GOTD_TEST_REPO)"' >> $(PWD)/gotd.conf
74 729a7e24 2022-11-17 thomas @echo ' permit ro $(GOTD_DEVUSER)' >> $(PWD)/gotd.conf
75 f2900386 2022-10-31 thomas @echo "}" >> $(PWD)/gotd.conf
76 f2900386 2022-10-31 thomas @$(GOTD_TRAP); $(GOTD_START_CMD)
77 f2900386 2022-10-31 thomas @$(GOTD_TRAP); sleep .5
78 f2900386 2022-10-31 thomas
79 ff260661 2022-11-17 thomas start_gotd_ro_group: ensure_root
80 f9a4feb6 2023-01-06 thomas @echo 'listen on "$(GOTD_SOCK)"' > $(PWD)/gotd.conf
81 ff260661 2022-11-17 thomas @echo "user $(GOTD_USER)" >> $(PWD)/gotd.conf
82 ff260661 2022-11-17 thomas @echo 'repository "test-repo" {' >> $(PWD)/gotd.conf
83 ff260661 2022-11-17 thomas @echo ' path "$(GOTD_TEST_REPO)"' >> $(PWD)/gotd.conf
84 ff260661 2022-11-17 thomas @echo ' permit ro :$(GOTD_DEVUSER)' >> $(PWD)/gotd.conf
85 ff260661 2022-11-17 thomas @echo "}" >> $(PWD)/gotd.conf
86 ff260661 2022-11-17 thomas @$(GOTD_TRAP); $(GOTD_START_CMD)
87 ff260661 2022-11-17 thomas @$(GOTD_TRAP); sleep .5
88 ff260661 2022-11-17 thomas
89 b40156b3 2022-11-17 thomas # try a permit rule followed by a deny rule; last matched rule wins
90 b40156b3 2022-11-17 thomas start_gotd_ro_denied_user: ensure_root
91 f9a4feb6 2023-01-06 thomas @echo 'listen on "$(GOTD_SOCK)"' > $(PWD)/gotd.conf
92 b40156b3 2022-11-17 thomas @echo "user $(GOTD_USER)" >> $(PWD)/gotd.conf
93 b40156b3 2022-11-17 thomas @echo 'repository "test-repo" {' >> $(PWD)/gotd.conf
94 b40156b3 2022-11-17 thomas @echo ' path "$(GOTD_TEST_REPO)"' >> $(PWD)/gotd.conf
95 b40156b3 2022-11-17 thomas @echo ' permit ro $(GOTD_DEVUSER)' >> $(PWD)/gotd.conf
96 b40156b3 2022-11-17 thomas @echo ' deny $(GOTD_DEVUSER)' >> $(PWD)/gotd.conf
97 b40156b3 2022-11-17 thomas @echo "}" >> $(PWD)/gotd.conf
98 b40156b3 2022-11-17 thomas @$(GOTD_TRAP); $(GOTD_START_CMD)
99 b40156b3 2022-11-17 thomas @$(GOTD_TRAP); sleep .5
100 b40156b3 2022-11-17 thomas
101 5667a3a5 2022-11-17 thomas # try a permit rule followed by a deny rule; last matched rule wins
102 5667a3a5 2022-11-17 thomas start_gotd_ro_denied_group: ensure_root
103 f9a4feb6 2023-01-06 thomas @echo 'listen on "$(GOTD_SOCK)"' > $(PWD)/gotd.conf
104 5667a3a5 2022-11-17 thomas @echo "user $(GOTD_USER)" >> $(PWD)/gotd.conf
105 5667a3a5 2022-11-17 thomas @echo 'repository "test-repo" {' >> $(PWD)/gotd.conf
106 5667a3a5 2022-11-17 thomas @echo ' path "$(GOTD_TEST_REPO)"' >> $(PWD)/gotd.conf
107 5667a3a5 2022-11-17 thomas @echo ' permit ro $(GOTD_DEVUSER)' >> $(PWD)/gotd.conf
108 5667a3a5 2022-11-17 thomas @echo ' deny :$(GOTD_DEVUSER)' >> $(PWD)/gotd.conf
109 5667a3a5 2022-11-17 thomas @echo "}" >> $(PWD)/gotd.conf
110 5667a3a5 2022-11-17 thomas @$(GOTD_TRAP); $(GOTD_START_CMD)
111 5667a3a5 2022-11-17 thomas @$(GOTD_TRAP); sleep .5
112 5667a3a5 2022-11-17 thomas
113 ead70407 2022-11-17 thomas # $GOTD_DEVUSER should not equal $GOTD_USER
114 ead70407 2022-11-17 thomas start_gotd_ro_bad_user: ensure_root
115 f9a4feb6 2023-01-06 thomas @echo 'listen on "$(GOTD_SOCK)"' > $(PWD)/gotd.conf
116 ead70407 2022-11-17 thomas @echo "user $(GOTD_USER)" >> $(PWD)/gotd.conf
117 ead70407 2022-11-17 thomas @echo 'repository "test-repo" {' >> $(PWD)/gotd.conf
118 ead70407 2022-11-17 thomas @echo ' path "$(GOTD_TEST_REPO)"' >> $(PWD)/gotd.conf
119 ead70407 2022-11-17 thomas @echo ' permit ro $(GOTD_USER)' >> $(PWD)/gotd.conf
120 ead70407 2022-11-17 thomas @echo "}" >> $(PWD)/gotd.conf
121 ead70407 2022-11-17 thomas @$(GOTD_TRAP); $(GOTD_START_CMD)
122 ead70407 2022-11-17 thomas @$(GOTD_TRAP); sleep .5
123 ead70407 2022-11-17 thomas
124 ff260661 2022-11-17 thomas # $GOTD_DEVUSER should not be in group wheel
125 ff260661 2022-11-17 thomas start_gotd_ro_bad_group: ensure_root
126 f9a4feb6 2023-01-06 thomas @echo 'listen on "$(GOTD_SOCK)"' > $(PWD)/gotd.conf
127 ff260661 2022-11-17 thomas @echo "user $(GOTD_USER)" >> $(PWD)/gotd.conf
128 ff260661 2022-11-17 thomas @echo 'repository "test-repo" {' >> $(PWD)/gotd.conf
129 ff260661 2022-11-17 thomas @echo ' path "$(GOTD_TEST_REPO)"' >> $(PWD)/gotd.conf
130 ff260661 2022-11-17 thomas @echo ' permit ro :wheel' >> $(PWD)/gotd.conf
131 ff260661 2022-11-17 thomas @echo "}" >> $(PWD)/gotd.conf
132 ff260661 2022-11-17 thomas @$(GOTD_TRAP); $(GOTD_START_CMD)
133 ff260661 2022-11-17 thomas @$(GOTD_TRAP); sleep .5
134 ff260661 2022-11-17 thomas
135 729a7e24 2022-11-17 thomas start_gotd_rw: ensure_root
136 f9a4feb6 2023-01-06 thomas @echo 'listen on "$(GOTD_SOCK)"' > $(PWD)/gotd.conf
137 729a7e24 2022-11-17 thomas @echo "user $(GOTD_USER)" >> $(PWD)/gotd.conf
138 729a7e24 2022-11-17 thomas @echo 'repository "test-repo" {' >> $(PWD)/gotd.conf
139 729a7e24 2022-11-17 thomas @echo ' path "$(GOTD_TEST_REPO)"' >> $(PWD)/gotd.conf
140 729a7e24 2022-11-17 thomas @echo ' permit rw $(GOTD_DEVUSER)' >> $(PWD)/gotd.conf
141 729a7e24 2022-11-17 thomas @echo "}" >> $(PWD)/gotd.conf
142 729a7e24 2022-11-17 thomas @$(GOTD_TRAP); $(GOTD_START_CMD)
143 729a7e24 2022-11-17 thomas @$(GOTD_TRAP); sleep .5
144 729a7e24 2022-11-17 thomas
145 6d7eb4f7 2023-04-04 thomas start_gotd_rw_protected: ensure_root
146 6d7eb4f7 2023-04-04 thomas @echo 'listen on "$(GOTD_SOCK)"' > $(PWD)/gotd.conf
147 6d7eb4f7 2023-04-04 thomas @echo "user $(GOTD_USER)" >> $(PWD)/gotd.conf
148 6d7eb4f7 2023-04-04 thomas @echo 'repository "test-repo" {' >> $(PWD)/gotd.conf
149 6d7eb4f7 2023-04-04 thomas @echo ' path "$(GOTD_TEST_REPO)"' >> $(PWD)/gotd.conf
150 6d7eb4f7 2023-04-04 thomas @echo ' permit rw $(GOTD_DEVUSER)' >> $(PWD)/gotd.conf
151 6d7eb4f7 2023-04-04 thomas @echo ' protect branch "foo"' >> $(PWD)/gotd.conf
152 6d7eb4f7 2023-04-04 thomas @echo ' protect tag namespace "refs/tags/"' >> $(PWD)/gotd.conf
153 6d7eb4f7 2023-04-04 thomas @echo ' protect branch "refs/heads/main"' >> $(PWD)/gotd.conf
154 6d7eb4f7 2023-04-04 thomas @echo "}" >> $(PWD)/gotd.conf
155 6d7eb4f7 2023-04-04 thomas @$(GOTD_TRAP); $(GOTD_START_CMD)
156 6d7eb4f7 2023-04-04 thomas @$(GOTD_TRAP); sleep .5
157 6d7eb4f7 2023-04-04 thomas
158 ce1bfad9 2024-03-30 thomas start_gotd_email_notification: ensure_root
159 ce1bfad9 2024-03-30 thomas @echo 'listen on "$(GOTD_SOCK)"' > $(PWD)/gotd.conf
160 ce1bfad9 2024-03-30 thomas @echo "user $(GOTD_USER)" >> $(PWD)/gotd.conf
161 ce1bfad9 2024-03-30 thomas @echo 'repository "test-repo" {' >> $(PWD)/gotd.conf
162 ce1bfad9 2024-03-30 thomas @echo ' path "$(GOTD_TEST_REPO)"' >> $(PWD)/gotd.conf
163 ce1bfad9 2024-03-30 thomas @echo ' permit rw $(GOTD_DEVUSER)' >> $(PWD)/gotd.conf
164 ce1bfad9 2024-03-30 thomas @echo ' notify {' >> $(PWD)/gotd.conf
165 ce1bfad9 2024-03-30 thomas @echo -n ' email to ${GOTD_DEVUSER}' >> $(PWD)/gotd.conf
166 ce1bfad9 2024-03-30 thomas @echo ' relay 127.0.0.1 port ${GOTD_TEST_SMTP_PORT}' >> $(PWD)/gotd.conf
167 ce1bfad9 2024-03-30 thomas @echo " }" >> $(PWD)/gotd.conf
168 ce1bfad9 2024-03-30 thomas @echo "}" >> $(PWD)/gotd.conf
169 ce1bfad9 2024-03-30 thomas @$(GOTD_TRAP); $(GOTD_START_CMD)
170 ce1bfad9 2024-03-30 thomas @$(GOTD_TRAP); sleep .5
171 ce1bfad9 2024-03-30 thomas
172 f2900386 2022-10-31 thomas prepare_test_repo: ensure_root
173 f2900386 2022-10-31 thomas @chown ${GOTD_USER} "${GOTD_TEST_REPO}"
174 f2900386 2022-10-31 thomas @su -m ${GOTD_USER} -c 'env $(GOTD_TEST_ENV) sh ./prepare_test_repo.sh'
175 f2900386 2022-10-31 thomas
176 a07c01e0 2022-11-08 thomas prepare_test_repo_empty: ensure_root
177 a07c01e0 2022-11-08 thomas @chown ${GOTD_USER} "${GOTD_TEST_REPO}"
178 a07c01e0 2022-11-08 thomas @su -m ${GOTD_USER} -c 'env $(GOTD_TEST_ENV) sh ./prepare_test_repo.sh 1'
179 a07c01e0 2022-11-08 thomas
180 729a7e24 2022-11-17 thomas test_repo_read: prepare_test_repo start_gotd_ro
181 f2900386 2022-10-31 thomas @-$(GOTD_TRAP); su ${GOTD_TEST_USER} -c \
182 f2900386 2022-10-31 thomas 'env $(GOTD_TEST_ENV) sh ./repo_read.sh'
183 f2900386 2022-10-31 thomas @$(GOTD_STOP_CMD) 2>/dev/null
184 f2900386 2022-10-31 thomas @su -m ${GOTD_USER} -c 'env $(GOTD_TEST_ENV) sh ./check_test_repo.sh'
185 f2900386 2022-10-31 thomas
186 ff260661 2022-11-17 thomas test_repo_read_group: prepare_test_repo start_gotd_ro_group
187 ff260661 2022-11-17 thomas @-$(GOTD_TRAP); su ${GOTD_TEST_USER} -c \
188 ff260661 2022-11-17 thomas 'env $(GOTD_TEST_ENV) sh ./repo_read.sh'
189 ff260661 2022-11-17 thomas @$(GOTD_STOP_CMD) 2>/dev/null
190 ff260661 2022-11-17 thomas @su -m ${GOTD_USER} -c 'env $(GOTD_TEST_ENV) sh ./check_test_repo.sh'
191 ff260661 2022-11-17 thomas
192 b40156b3 2022-11-17 thomas test_repo_read_denied_user: prepare_test_repo start_gotd_ro_denied_user
193 b40156b3 2022-11-17 thomas @-$(GOTD_TRAP); su ${GOTD_TEST_USER} -c \
194 b40156b3 2022-11-17 thomas 'env $(GOTD_TEST_ENV) sh ./repo_read_access_denied.sh'
195 b40156b3 2022-11-17 thomas @$(GOTD_STOP_CMD) 2>/dev/null
196 b40156b3 2022-11-17 thomas @su -m ${GOTD_USER} -c 'env $(GOTD_TEST_ENV) sh ./check_test_repo.sh'
197 b40156b3 2022-11-17 thomas
198 5667a3a5 2022-11-17 thomas test_repo_read_denied_group: prepare_test_repo start_gotd_ro_denied_group
199 5667a3a5 2022-11-17 thomas @-$(GOTD_TRAP); su ${GOTD_TEST_USER} -c \
200 5667a3a5 2022-11-17 thomas 'env $(GOTD_TEST_ENV) sh ./repo_read_access_denied.sh'
201 5667a3a5 2022-11-17 thomas @$(GOTD_STOP_CMD) 2>/dev/null
202 5667a3a5 2022-11-17 thomas @su -m ${GOTD_USER} -c 'env $(GOTD_TEST_ENV) sh ./check_test_repo.sh'
203 5667a3a5 2022-11-17 thomas
204 ead70407 2022-11-17 thomas test_repo_read_bad_user: prepare_test_repo start_gotd_ro_bad_user
205 ead70407 2022-11-17 thomas @-$(GOTD_TRAP); su ${GOTD_TEST_USER} -c \
206 ead70407 2022-11-17 thomas 'env $(GOTD_TEST_ENV) sh ./repo_read_access_denied.sh'
207 ead70407 2022-11-17 thomas @$(GOTD_STOP_CMD) 2>/dev/null
208 ead70407 2022-11-17 thomas @su -m ${GOTD_USER} -c 'env $(GOTD_TEST_ENV) sh ./check_test_repo.sh'
209 ead70407 2022-11-17 thomas
210 ff260661 2022-11-17 thomas test_repo_read_bad_group: prepare_test_repo start_gotd_ro_bad_group
211 ff260661 2022-11-17 thomas @-$(GOTD_TRAP); su ${GOTD_TEST_USER} -c \
212 ff260661 2022-11-17 thomas 'env $(GOTD_TEST_ENV) sh ./repo_read_access_denied.sh'
213 ff260661 2022-11-17 thomas @$(GOTD_STOP_CMD) 2>/dev/null
214 ff260661 2022-11-17 thomas @su -m ${GOTD_USER} -c 'env $(GOTD_TEST_ENV) sh ./check_test_repo.sh'
215 ff260661 2022-11-17 thomas
216 729a7e24 2022-11-17 thomas test_repo_write: prepare_test_repo start_gotd_rw
217 f2900386 2022-10-31 thomas @-$(GOTD_TRAP); su ${GOTD_TEST_USER} -c \
218 f2900386 2022-10-31 thomas 'env $(GOTD_TEST_ENV) sh ./repo_write.sh'
219 f2900386 2022-10-31 thomas @$(GOTD_STOP_CMD) 2>/dev/null
220 f2900386 2022-10-31 thomas @su -m ${GOTD_USER} -c 'env $(GOTD_TEST_ENV) sh ./check_test_repo.sh'
221 a07c01e0 2022-11-08 thomas
222 729a7e24 2022-11-17 thomas test_repo_write_empty: prepare_test_repo_empty start_gotd_rw
223 a07c01e0 2022-11-08 thomas @-$(GOTD_TRAP); su ${GOTD_TEST_USER} -c \
224 a07c01e0 2022-11-08 thomas 'env $(GOTD_TEST_ENV) sh ./repo_write_empty.sh'
225 a07c01e0 2022-11-08 thomas @$(GOTD_STOP_CMD) 2>/dev/null
226 a07c01e0 2022-11-08 thomas @su -m ${GOTD_USER} -c 'env $(GOTD_TEST_ENV) sh ./check_test_repo.sh'
227 6d7eb4f7 2023-04-04 thomas
228 6d7eb4f7 2023-04-04 thomas test_repo_write_protected: prepare_test_repo start_gotd_rw_protected
229 6d7eb4f7 2023-04-04 thomas @-$(GOTD_TRAP); su ${GOTD_TEST_USER} -c \
230 6d7eb4f7 2023-04-04 thomas 'env $(GOTD_TEST_ENV) sh ./repo_write_protected.sh'
231 6d7eb4f7 2023-04-04 thomas @$(GOTD_STOP_CMD) 2>/dev/null
232 6d7eb4f7 2023-04-04 thomas @su -m ${GOTD_USER} -c 'env $(GOTD_TEST_ENV) sh ./check_test_repo.sh'
233 f2900386 2022-10-31 thomas
234 581fa623 2022-12-30 thomas test_request_bad: prepare_test_repo_empty start_gotd_ro
235 79f1ca78 2022-12-30 thomas @-$(GOTD_TRAP); su -m ${GOTD_TEST_USER} -c \
236 581fa623 2022-12-30 thomas 'env $(GOTD_TEST_ENV) sh ./request_bad.sh'
237 79f1ca78 2022-12-30 thomas @$(GOTD_STOP_CMD) 2>/dev/null
238 79f1ca78 2022-12-30 thomas
239 ce1bfad9 2024-03-30 thomas test_email_notification: prepare_test_repo start_gotd_email_notification
240 ce1bfad9 2024-03-30 thomas @-$(GOTD_TRAP); su -m ${GOTD_TEST_USER} -c \
241 ce1bfad9 2024-03-30 thomas 'env $(GOTD_TEST_ENV) sh ./email_notification.sh'
242 ce1bfad9 2024-03-30 thomas @$(GOTD_STOP_CMD) 2>/dev/null
243 ce1bfad9 2024-03-30 thomas
244 f2900386 2022-10-31 thomas .include <bsd.regress.mk>