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 a9c0a12c 2024-04-12 thomas test_repo_write_protected test_repo_write_readonly \
8 a9c0a12c 2024-04-12 thomas test_email_notification 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 3cb20d61 2024-04-12 thomas start_gotd_implicit_ro: ensure_root
83 3cb20d61 2024-04-12 thomas @echo 'listen on "$(GOTD_SOCK)"' > $(PWD)/gotd.conf
84 3cb20d61 2024-04-12 thomas @echo "user $(GOTD_USER)" >> $(PWD)/gotd.conf
85 3cb20d61 2024-04-12 thomas @echo 'repository "test-repo" {' >> $(PWD)/gotd.conf
86 3cb20d61 2024-04-12 thomas @echo ' path "$(GOTD_TEST_REPO)"' >> $(PWD)/gotd.conf
87 3cb20d61 2024-04-12 thomas @echo "}" >> $(PWD)/gotd.conf
88 3cb20d61 2024-04-12 thomas @$(GOTD_TRAP); $(GOTD_START_CMD)
89 3cb20d61 2024-04-12 thomas @$(GOTD_TRAP); sleep .5
90 3cb20d61 2024-04-12 thomas
91 ff260661 2022-11-17 thomas start_gotd_ro_group: ensure_root
92 f9a4feb6 2023-01-06 thomas @echo 'listen on "$(GOTD_SOCK)"' > $(PWD)/gotd.conf
93 ff260661 2022-11-17 thomas @echo "user $(GOTD_USER)" >> $(PWD)/gotd.conf
94 ff260661 2022-11-17 thomas @echo 'repository "test-repo" {' >> $(PWD)/gotd.conf
95 ff260661 2022-11-17 thomas @echo ' path "$(GOTD_TEST_REPO)"' >> $(PWD)/gotd.conf
96 ff260661 2022-11-17 thomas @echo ' permit ro :$(GOTD_DEVUSER)' >> $(PWD)/gotd.conf
97 ff260661 2022-11-17 thomas @echo "}" >> $(PWD)/gotd.conf
98 ff260661 2022-11-17 thomas @$(GOTD_TRAP); $(GOTD_START_CMD)
99 ff260661 2022-11-17 thomas @$(GOTD_TRAP); sleep .5
100 ff260661 2022-11-17 thomas
101 b40156b3 2022-11-17 thomas # try a permit rule followed by a deny rule; last matched rule wins
102 b40156b3 2022-11-17 thomas start_gotd_ro_denied_user: ensure_root
103 f9a4feb6 2023-01-06 thomas @echo 'listen on "$(GOTD_SOCK)"' > $(PWD)/gotd.conf
104 b40156b3 2022-11-17 thomas @echo "user $(GOTD_USER)" >> $(PWD)/gotd.conf
105 b40156b3 2022-11-17 thomas @echo 'repository "test-repo" {' >> $(PWD)/gotd.conf
106 b40156b3 2022-11-17 thomas @echo ' path "$(GOTD_TEST_REPO)"' >> $(PWD)/gotd.conf
107 b40156b3 2022-11-17 thomas @echo ' permit ro $(GOTD_DEVUSER)' >> $(PWD)/gotd.conf
108 b40156b3 2022-11-17 thomas @echo ' deny $(GOTD_DEVUSER)' >> $(PWD)/gotd.conf
109 b40156b3 2022-11-17 thomas @echo "}" >> $(PWD)/gotd.conf
110 b40156b3 2022-11-17 thomas @$(GOTD_TRAP); $(GOTD_START_CMD)
111 b40156b3 2022-11-17 thomas @$(GOTD_TRAP); sleep .5
112 b40156b3 2022-11-17 thomas
113 5667a3a5 2022-11-17 thomas # try a permit rule followed by a deny rule; last matched rule wins
114 5667a3a5 2022-11-17 thomas start_gotd_ro_denied_group: ensure_root
115 f9a4feb6 2023-01-06 thomas @echo 'listen on "$(GOTD_SOCK)"' > $(PWD)/gotd.conf
116 5667a3a5 2022-11-17 thomas @echo "user $(GOTD_USER)" >> $(PWD)/gotd.conf
117 5667a3a5 2022-11-17 thomas @echo 'repository "test-repo" {' >> $(PWD)/gotd.conf
118 5667a3a5 2022-11-17 thomas @echo ' path "$(GOTD_TEST_REPO)"' >> $(PWD)/gotd.conf
119 5667a3a5 2022-11-17 thomas @echo ' permit ro $(GOTD_DEVUSER)' >> $(PWD)/gotd.conf
120 5667a3a5 2022-11-17 thomas @echo ' deny :$(GOTD_DEVUSER)' >> $(PWD)/gotd.conf
121 5667a3a5 2022-11-17 thomas @echo "}" >> $(PWD)/gotd.conf
122 5667a3a5 2022-11-17 thomas @$(GOTD_TRAP); $(GOTD_START_CMD)
123 5667a3a5 2022-11-17 thomas @$(GOTD_TRAP); sleep .5
124 5667a3a5 2022-11-17 thomas
125 ead70407 2022-11-17 thomas # $GOTD_DEVUSER should not equal $GOTD_USER
126 ead70407 2022-11-17 thomas start_gotd_ro_bad_user: ensure_root
127 f9a4feb6 2023-01-06 thomas @echo 'listen on "$(GOTD_SOCK)"' > $(PWD)/gotd.conf
128 ead70407 2022-11-17 thomas @echo "user $(GOTD_USER)" >> $(PWD)/gotd.conf
129 ead70407 2022-11-17 thomas @echo 'repository "test-repo" {' >> $(PWD)/gotd.conf
130 ead70407 2022-11-17 thomas @echo ' path "$(GOTD_TEST_REPO)"' >> $(PWD)/gotd.conf
131 ead70407 2022-11-17 thomas @echo ' permit ro $(GOTD_USER)' >> $(PWD)/gotd.conf
132 ead70407 2022-11-17 thomas @echo "}" >> $(PWD)/gotd.conf
133 ead70407 2022-11-17 thomas @$(GOTD_TRAP); $(GOTD_START_CMD)
134 ead70407 2022-11-17 thomas @$(GOTD_TRAP); sleep .5
135 ead70407 2022-11-17 thomas
136 ff260661 2022-11-17 thomas # $GOTD_DEVUSER should not be in group wheel
137 ff260661 2022-11-17 thomas start_gotd_ro_bad_group: ensure_root
138 f9a4feb6 2023-01-06 thomas @echo 'listen on "$(GOTD_SOCK)"' > $(PWD)/gotd.conf
139 ff260661 2022-11-17 thomas @echo "user $(GOTD_USER)" >> $(PWD)/gotd.conf
140 ff260661 2022-11-17 thomas @echo 'repository "test-repo" {' >> $(PWD)/gotd.conf
141 ff260661 2022-11-17 thomas @echo ' path "$(GOTD_TEST_REPO)"' >> $(PWD)/gotd.conf
142 ff260661 2022-11-17 thomas @echo ' permit ro :wheel' >> $(PWD)/gotd.conf
143 ff260661 2022-11-17 thomas @echo "}" >> $(PWD)/gotd.conf
144 ff260661 2022-11-17 thomas @$(GOTD_TRAP); $(GOTD_START_CMD)
145 ff260661 2022-11-17 thomas @$(GOTD_TRAP); sleep .5
146 ff260661 2022-11-17 thomas
147 729a7e24 2022-11-17 thomas start_gotd_rw: ensure_root
148 f9a4feb6 2023-01-06 thomas @echo 'listen on "$(GOTD_SOCK)"' > $(PWD)/gotd.conf
149 729a7e24 2022-11-17 thomas @echo "user $(GOTD_USER)" >> $(PWD)/gotd.conf
150 729a7e24 2022-11-17 thomas @echo 'repository "test-repo" {' >> $(PWD)/gotd.conf
151 729a7e24 2022-11-17 thomas @echo ' path "$(GOTD_TEST_REPO)"' >> $(PWD)/gotd.conf
152 729a7e24 2022-11-17 thomas @echo ' permit rw $(GOTD_DEVUSER)' >> $(PWD)/gotd.conf
153 729a7e24 2022-11-17 thomas @echo "}" >> $(PWD)/gotd.conf
154 729a7e24 2022-11-17 thomas @$(GOTD_TRAP); $(GOTD_START_CMD)
155 729a7e24 2022-11-17 thomas @$(GOTD_TRAP); sleep .5
156 729a7e24 2022-11-17 thomas
157 6d7eb4f7 2023-04-04 thomas start_gotd_rw_protected: ensure_root
158 6d7eb4f7 2023-04-04 thomas @echo 'listen on "$(GOTD_SOCK)"' > $(PWD)/gotd.conf
159 6d7eb4f7 2023-04-04 thomas @echo "user $(GOTD_USER)" >> $(PWD)/gotd.conf
160 6d7eb4f7 2023-04-04 thomas @echo 'repository "test-repo" {' >> $(PWD)/gotd.conf
161 6d7eb4f7 2023-04-04 thomas @echo ' path "$(GOTD_TEST_REPO)"' >> $(PWD)/gotd.conf
162 6d7eb4f7 2023-04-04 thomas @echo ' permit rw $(GOTD_DEVUSER)' >> $(PWD)/gotd.conf
163 6d7eb4f7 2023-04-04 thomas @echo ' protect branch "foo"' >> $(PWD)/gotd.conf
164 6d7eb4f7 2023-04-04 thomas @echo ' protect tag namespace "refs/tags/"' >> $(PWD)/gotd.conf
165 6d7eb4f7 2023-04-04 thomas @echo ' protect branch "refs/heads/main"' >> $(PWD)/gotd.conf
166 6d7eb4f7 2023-04-04 thomas @echo "}" >> $(PWD)/gotd.conf
167 6d7eb4f7 2023-04-04 thomas @$(GOTD_TRAP); $(GOTD_START_CMD)
168 6d7eb4f7 2023-04-04 thomas @$(GOTD_TRAP); sleep .5
169 6d7eb4f7 2023-04-04 thomas
170 ce1bfad9 2024-03-30 thomas start_gotd_email_notification: ensure_root
171 ce1bfad9 2024-03-30 thomas @echo 'listen on "$(GOTD_SOCK)"' > $(PWD)/gotd.conf
172 ce1bfad9 2024-03-30 thomas @echo "user $(GOTD_USER)" >> $(PWD)/gotd.conf
173 ce1bfad9 2024-03-30 thomas @echo 'repository "test-repo" {' >> $(PWD)/gotd.conf
174 ce1bfad9 2024-03-30 thomas @echo ' path "$(GOTD_TEST_REPO)"' >> $(PWD)/gotd.conf
175 ce1bfad9 2024-03-30 thomas @echo ' permit rw $(GOTD_DEVUSER)' >> $(PWD)/gotd.conf
176 ce1bfad9 2024-03-30 thomas @echo ' notify {' >> $(PWD)/gotd.conf
177 ce1bfad9 2024-03-30 thomas @echo -n ' email to ${GOTD_DEVUSER}' >> $(PWD)/gotd.conf
178 ce1bfad9 2024-03-30 thomas @echo ' relay 127.0.0.1 port ${GOTD_TEST_SMTP_PORT}' >> $(PWD)/gotd.conf
179 ce1bfad9 2024-03-30 thomas @echo " }" >> $(PWD)/gotd.conf
180 ce1bfad9 2024-03-30 thomas @echo "}" >> $(PWD)/gotd.conf
181 ce1bfad9 2024-03-30 thomas @$(GOTD_TRAP); $(GOTD_START_CMD)
182 ce1bfad9 2024-03-30 thomas @$(GOTD_TRAP); sleep .5
183 ce1bfad9 2024-03-30 thomas
184 94a3f4e9 2024-03-30 thomas start_gotd_http_notification: ensure_root
185 94a3f4e9 2024-03-30 thomas @echo 'listen on "$(GOTD_SOCK)"' > $(PWD)/gotd.conf
186 94a3f4e9 2024-03-30 thomas @echo "user $(GOTD_USER)" >> $(PWD)/gotd.conf
187 94a3f4e9 2024-03-30 thomas @echo 'repository "test-repo" {' >> $(PWD)/gotd.conf
188 94a3f4e9 2024-03-30 thomas @echo ' path "$(GOTD_TEST_REPO)"' >> $(PWD)/gotd.conf
189 94a3f4e9 2024-03-30 thomas @echo ' permit rw $(GOTD_DEVUSER)' >> $(PWD)/gotd.conf
190 94a3f4e9 2024-03-30 thomas @echo ' notify {' >> $(PWD)/gotd.conf
191 94a3f4e9 2024-03-30 thomas @echo ' url "http://localhost:${GOTD_TEST_HTTP_PORT}/"' >> $(PWD)/gotd.conf
192 94a3f4e9 2024-03-30 thomas @echo " }" >> $(PWD)/gotd.conf
193 94a3f4e9 2024-03-30 thomas @echo "}" >> $(PWD)/gotd.conf
194 94a3f4e9 2024-03-30 thomas @$(GOTD_TRAP); $(GOTD_START_CMD)
195 94a3f4e9 2024-03-30 thomas @$(GOTD_TRAP); sleep .5
196 94a3f4e9 2024-03-30 thomas
197 f2900386 2022-10-31 thomas prepare_test_repo: ensure_root
198 f2900386 2022-10-31 thomas @chown ${GOTD_USER} "${GOTD_TEST_REPO}"
199 f2900386 2022-10-31 thomas @su -m ${GOTD_USER} -c 'env $(GOTD_TEST_ENV) sh ./prepare_test_repo.sh'
200 f2900386 2022-10-31 thomas
201 a07c01e0 2022-11-08 thomas prepare_test_repo_empty: ensure_root
202 a07c01e0 2022-11-08 thomas @chown ${GOTD_USER} "${GOTD_TEST_REPO}"
203 a07c01e0 2022-11-08 thomas @su -m ${GOTD_USER} -c 'env $(GOTD_TEST_ENV) sh ./prepare_test_repo.sh 1'
204 a07c01e0 2022-11-08 thomas
205 729a7e24 2022-11-17 thomas test_repo_read: prepare_test_repo start_gotd_ro
206 f2900386 2022-10-31 thomas @-$(GOTD_TRAP); su ${GOTD_TEST_USER} -c \
207 f2900386 2022-10-31 thomas 'env $(GOTD_TEST_ENV) sh ./repo_read.sh'
208 f2900386 2022-10-31 thomas @$(GOTD_STOP_CMD) 2>/dev/null
209 f2900386 2022-10-31 thomas @su -m ${GOTD_USER} -c 'env $(GOTD_TEST_ENV) sh ./check_test_repo.sh'
210 f2900386 2022-10-31 thomas
211 ff260661 2022-11-17 thomas test_repo_read_group: prepare_test_repo start_gotd_ro_group
212 ff260661 2022-11-17 thomas @-$(GOTD_TRAP); su ${GOTD_TEST_USER} -c \
213 ff260661 2022-11-17 thomas 'env $(GOTD_TEST_ENV) sh ./repo_read.sh'
214 ff260661 2022-11-17 thomas @$(GOTD_STOP_CMD) 2>/dev/null
215 ff260661 2022-11-17 thomas @su -m ${GOTD_USER} -c 'env $(GOTD_TEST_ENV) sh ./check_test_repo.sh'
216 ff260661 2022-11-17 thomas
217 b40156b3 2022-11-17 thomas test_repo_read_denied_user: prepare_test_repo start_gotd_ro_denied_user
218 b40156b3 2022-11-17 thomas @-$(GOTD_TRAP); su ${GOTD_TEST_USER} -c \
219 b40156b3 2022-11-17 thomas 'env $(GOTD_TEST_ENV) sh ./repo_read_access_denied.sh'
220 b40156b3 2022-11-17 thomas @$(GOTD_STOP_CMD) 2>/dev/null
221 b40156b3 2022-11-17 thomas @su -m ${GOTD_USER} -c 'env $(GOTD_TEST_ENV) sh ./check_test_repo.sh'
222 b40156b3 2022-11-17 thomas
223 5667a3a5 2022-11-17 thomas test_repo_read_denied_group: prepare_test_repo start_gotd_ro_denied_group
224 5667a3a5 2022-11-17 thomas @-$(GOTD_TRAP); su ${GOTD_TEST_USER} -c \
225 5667a3a5 2022-11-17 thomas 'env $(GOTD_TEST_ENV) sh ./repo_read_access_denied.sh'
226 5667a3a5 2022-11-17 thomas @$(GOTD_STOP_CMD) 2>/dev/null
227 5667a3a5 2022-11-17 thomas @su -m ${GOTD_USER} -c 'env $(GOTD_TEST_ENV) sh ./check_test_repo.sh'
228 5667a3a5 2022-11-17 thomas
229 ead70407 2022-11-17 thomas test_repo_read_bad_user: prepare_test_repo start_gotd_ro_bad_user
230 ead70407 2022-11-17 thomas @-$(GOTD_TRAP); su ${GOTD_TEST_USER} -c \
231 ead70407 2022-11-17 thomas 'env $(GOTD_TEST_ENV) sh ./repo_read_access_denied.sh'
232 ead70407 2022-11-17 thomas @$(GOTD_STOP_CMD) 2>/dev/null
233 ead70407 2022-11-17 thomas @su -m ${GOTD_USER} -c 'env $(GOTD_TEST_ENV) sh ./check_test_repo.sh'
234 ead70407 2022-11-17 thomas
235 ff260661 2022-11-17 thomas test_repo_read_bad_group: prepare_test_repo start_gotd_ro_bad_group
236 ff260661 2022-11-17 thomas @-$(GOTD_TRAP); su ${GOTD_TEST_USER} -c \
237 ff260661 2022-11-17 thomas 'env $(GOTD_TEST_ENV) sh ./repo_read_access_denied.sh'
238 ff260661 2022-11-17 thomas @$(GOTD_STOP_CMD) 2>/dev/null
239 ff260661 2022-11-17 thomas @su -m ${GOTD_USER} -c 'env $(GOTD_TEST_ENV) sh ./check_test_repo.sh'
240 ff260661 2022-11-17 thomas
241 729a7e24 2022-11-17 thomas test_repo_write: prepare_test_repo start_gotd_rw
242 f2900386 2022-10-31 thomas @-$(GOTD_TRAP); su ${GOTD_TEST_USER} -c \
243 f2900386 2022-10-31 thomas 'env $(GOTD_TEST_ENV) sh ./repo_write.sh'
244 f2900386 2022-10-31 thomas @$(GOTD_STOP_CMD) 2>/dev/null
245 f2900386 2022-10-31 thomas @su -m ${GOTD_USER} -c 'env $(GOTD_TEST_ENV) sh ./check_test_repo.sh'
246 a07c01e0 2022-11-08 thomas
247 729a7e24 2022-11-17 thomas test_repo_write_empty: prepare_test_repo_empty start_gotd_rw
248 a07c01e0 2022-11-08 thomas @-$(GOTD_TRAP); su ${GOTD_TEST_USER} -c \
249 a07c01e0 2022-11-08 thomas 'env $(GOTD_TEST_ENV) sh ./repo_write_empty.sh'
250 a07c01e0 2022-11-08 thomas @$(GOTD_STOP_CMD) 2>/dev/null
251 a07c01e0 2022-11-08 thomas @su -m ${GOTD_USER} -c 'env $(GOTD_TEST_ENV) sh ./check_test_repo.sh'
252 6d7eb4f7 2023-04-04 thomas
253 6d7eb4f7 2023-04-04 thomas test_repo_write_protected: prepare_test_repo start_gotd_rw_protected
254 6d7eb4f7 2023-04-04 thomas @-$(GOTD_TRAP); su ${GOTD_TEST_USER} -c \
255 6d7eb4f7 2023-04-04 thomas 'env $(GOTD_TEST_ENV) sh ./repo_write_protected.sh'
256 6d7eb4f7 2023-04-04 thomas @$(GOTD_STOP_CMD) 2>/dev/null
257 6d7eb4f7 2023-04-04 thomas @su -m ${GOTD_USER} -c 'env $(GOTD_TEST_ENV) sh ./check_test_repo.sh'
258 f2900386 2022-10-31 thomas
259 3cb20d61 2024-04-12 thomas test_repo_write_readonly: prepare_test_repo_empty start_gotd_implicit_ro
260 a9c0a12c 2024-04-12 thomas @-$(GOTD_TRAP); su ${GOTD_TEST_USER} -c \
261 a9c0a12c 2024-04-12 thomas 'env $(GOTD_TEST_ENV) sh ./repo_write_readonly.sh'
262 a9c0a12c 2024-04-12 thomas @$(GOTD_STOP_CMD) 2>/dev/null
263 a9c0a12c 2024-04-12 thomas @su -m ${GOTD_USER} -c 'env $(GOTD_TEST_ENV) sh ./check_test_repo.sh'
264 a9c0a12c 2024-04-12 thomas
265 581fa623 2022-12-30 thomas test_request_bad: prepare_test_repo_empty start_gotd_ro
266 79f1ca78 2022-12-30 thomas @-$(GOTD_TRAP); su -m ${GOTD_TEST_USER} -c \
267 581fa623 2022-12-30 thomas 'env $(GOTD_TEST_ENV) sh ./request_bad.sh'
268 79f1ca78 2022-12-30 thomas @$(GOTD_STOP_CMD) 2>/dev/null
269 79f1ca78 2022-12-30 thomas
270 ce1bfad9 2024-03-30 thomas test_email_notification: prepare_test_repo start_gotd_email_notification
271 ce1bfad9 2024-03-30 thomas @-$(GOTD_TRAP); su -m ${GOTD_TEST_USER} -c \
272 ce1bfad9 2024-03-30 thomas 'env $(GOTD_TEST_ENV) sh ./email_notification.sh'
273 ce1bfad9 2024-03-30 thomas @$(GOTD_STOP_CMD) 2>/dev/null
274 ce1bfad9 2024-03-30 thomas
275 94a3f4e9 2024-03-30 thomas test_http_notification: prepare_test_repo start_gotd_http_notification
276 94a3f4e9 2024-03-30 thomas @-$(GOTD_TRAP); su -m ${GOTD_TEST_USER} -c \
277 94a3f4e9 2024-03-30 thomas 'env $(GOTD_TEST_ENV) sh ./http_notification.sh'
278 94a3f4e9 2024-03-30 thomas @$(GOTD_STOP_CMD) 2>/dev/null
279 94a3f4e9 2024-03-30 thomas
280 f2900386 2022-10-31 thomas .include <bsd.regress.mk>