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