1 SUBDIRS = compat libexec got tog gotadmin template gotwebd cvg
2 # TODO: gotd gotsh template
5 SUBDIRS += gotd gotsh gotctl gitwrapper
8 include $(top_builddir)/Makefile.common
10 EXTRA_DIST = CHANGES CHANGELOG LICENCE README.portable util/got-portable-ver.sh
18 LIBS += -lm $(zlib_LIBS) $(libbsd_LIBS) $(libmd_LIBS)
19 AM_CPPFLAGS += $(libbsd_CFLAGS) $(libmd_CFLAGS)
21 TEST_TARGETS=compat regress-delta regress-deltify regress-fetch regress-idset \
22 regress-path regress-tog regress-cmdline
29 tests: $(TEST_TARGETS)
32 (export PLATFORM=@PLATFORM@; \
33 cd $(top_builddir)/regress/cmdline || exit $$?; \
34 ./checkout.sh -q -r "$(GOT_TEST_ROOT)"; \
35 ./update.sh -q -r "$(GOT_TEST_ROOT)"; \
36 ./status.sh -q -r "$(GOT_TEST_ROOT)"; \
37 ./log.sh -q -r "$(GOT_TEST_ROOT)"; \
38 ./add.sh -q -r "$(GOT_TEST_ROOT)"; \
39 ./rm.sh -q -r "$(GOT_TEST_ROOT)"; \
40 ./diff.sh -q -r "$(GOT_TEST_ROOT)"; \
41 ./blame.sh -q -r "$(GOT_TEST_ROOT)"; \
42 ./branch.sh -q -r "$(GOT_TEST_ROOT)"; \
43 ./tag.sh -q -r "$(GOT_TEST_ROOT)"; \
44 ./ref.sh -q -r "$(GOT_TEST_ROOT)"; \
45 ./commit.sh -q -r "$(GOT_TEST_ROOT)"; \
46 ./revert.sh -q -r "$(GOT_TEST_ROOT)"; \
47 ./cherrypick.sh -q -r "$(GOT_TEST_ROOT)"; \
48 ./backout.sh -q -r "$(GOT_TEST_ROOT)"; \
49 ./rebase.sh -q -r "$(GOT_TEST_ROOT)"; \
50 ./import.sh -q -r "$(GOT_TEST_ROOT)"; \
51 ./histedit.sh -q -r "$(GOT_TEST_ROOT)"; \
52 ./integrate.sh -q -r "$(GOT_TEST_ROOT)"; \
53 ./merge.sh -q -r "$(GOT_TEST_ROOT)"; \
54 ./stage.sh -q -r "$(GOT_TEST_ROOT)"; \
55 ./unstage.sh -q -r "$(GOT_TEST_ROOT)"; \
56 ./cat.sh -q -r "$(GOT_TEST_ROOT)"; \
57 ./clone.sh -q -r "$(GOT_TEST_ROOT)"; \
58 ./fetch.sh -q -r "$(GOT_TEST_ROOT)"; \
59 ./send.sh -q -r "$(GOT_TEST_ROOT)"; \
60 ./tree.sh -q -r "$(GOT_TEST_ROOT)"; \
61 ./patch.sh -q -r "$(GOT_TEST_ROOT)" \
62 ./pack.sh -q -r "$(GOT_TEST_ROOT)"; \
63 ./cleanup.sh -q -r "$(GOT_TEST_ROOT)")
66 $(CC) $(DEFS) $(AM_CFLAGS) $(AM_CPPFLAGS) \
67 -o $(top_builddir)/regress/delta/delta_test \
68 $(top_srcdir)/lib/bloom.c \
69 $(top_srcdir)/lib/buf.c \
70 $(top_srcdir)/lib/date.c \
71 $(top_srcdir)/lib/deflate.c \
72 $(top_srcdir)/lib/delta.c \
73 $(top_srcdir)/lib/delta_cache.c \
74 $(top_srcdir)/lib/deltify.c \
75 $(top_srcdir)/lib/error.c \
76 $(top_srcdir)/lib/gotconfig.c \
77 $(top_srcdir)/lib/hash.c \
78 $(top_srcdir)/lib/inflate.c \
79 $(top_srcdir)/lib/lockfile.c \
80 $(top_srcdir)/lib/murmurhash2.c \
81 $(top_srcdir)/lib/object.c \
82 $(top_srcdir)/lib/object_cache.c \
83 $(top_srcdir)/lib/object_create.c \
84 $(top_srcdir)/lib/object_idset.c \
85 $(top_srcdir)/lib/object_open_privsep.c \
86 $(top_srcdir)/lib/object_parse.c \
87 $(top_srcdir)/lib/object_qid.c \
88 $(top_srcdir)/lib/opentemp.c \
89 $(top_srcdir)/lib/pack.c \
90 $(top_srcdir)/lib/pack_create.c \
91 $(top_srcdir)/lib/pack_create_privsep.c \
92 $(top_srcdir)/lib/path.c \
93 $(top_srcdir)/lib/pollfd.c \
94 $(top_srcdir)/lib/privsep.c \
95 $(top_srcdir)/lib/ratelimit.c \
96 $(top_srcdir)/lib/read_gitconfig_privsep.c \
97 $(top_srcdir)/lib/read_gotconfig_privsep.c \
98 $(top_srcdir)/lib/reference.c \
99 $(top_srcdir)/lib/reference_parse.c \
100 $(top_srcdir)/lib/repository.c \
101 $(top_srcdir)/lib/sigs.c \
102 $(top_srcdir)/regress/delta/delta_test.c \
103 -L$(top_builddir)/compat -lopenbsd-compat $(LIBS) && \
104 $(top_builddir)/regress/delta/delta_test
107 $(CC) $(DEFS) $(AM_CFLAGS) $(AM_CPPFLAGS) \
108 -o $(top_builddir)/regress/deltify/deltify_test \
109 $(top_srcdir)/lib/bloom.c \
110 $(top_srcdir)/lib/buf.c \
111 $(top_srcdir)/lib/date.c \
112 $(top_srcdir)/lib/deflate.c \
113 $(top_srcdir)/lib/delta.c \
114 $(top_srcdir)/lib/delta_cache.c \
115 $(top_srcdir)/lib/deltify.c \
116 $(top_srcdir)/lib/error.c \
117 $(top_srcdir)/lib/gotconfig.c \
118 $(top_srcdir)/lib/hash.c \
119 $(top_srcdir)/lib/inflate.c \
120 $(top_srcdir)/lib/lockfile.c \
121 $(top_srcdir)/lib/murmurhash2.c \
122 $(top_srcdir)/lib/object.c \
123 $(top_srcdir)/lib/object_cache.c \
124 $(top_srcdir)/lib/object_create.c \
125 $(top_srcdir)/lib/object_idset.c \
126 $(top_srcdir)/lib/object_open_privsep.c \
127 $(top_srcdir)/lib/object_parse.c \
128 $(top_srcdir)/lib/object_qid.c \
129 $(top_srcdir)/lib/opentemp.c \
130 $(top_srcdir)/lib/pack.c \
131 $(top_srcdir)/lib/pack_create.c \
132 $(top_srcdir)/lib/pack_create_privsep.c \
133 $(top_srcdir)/lib/path.c \
134 $(top_srcdir)/lib/pollfd.c \
135 $(top_srcdir)/lib/privsep.c \
136 $(top_srcdir)/lib/ratelimit.c \
137 $(top_srcdir)/lib/read_gitconfig_privsep.c \
138 $(top_srcdir)/lib/read_gotconfig_privsep.c \
139 $(top_srcdir)/lib/reference.c \
140 $(top_srcdir)/lib/reference_parse.c \
141 $(top_srcdir)/lib/repository.c \
142 $(top_srcdir)/lib/sigs.c \
143 $(top_srcdir)/regress/deltify/deltify_test.c \
144 -L$(top_builddir)/compat -lopenbsd-compat $(LIBS) && \
145 $(top_builddir)/regress/deltify/deltify_test
148 $(CC) $(DEFS) $(AM_CFLAGS) $(AM_CPPFLAGS) \
149 -o $(top_builddir)/regress/fetch/fetch_test \
150 $(top_srcdir)/lib/bloom.c \
151 $(top_srcdir)/lib/buf.c \
152 $(top_srcdir)/lib/date.c \
153 $(top_srcdir)/lib/deflate.c \
154 $(top_srcdir)/lib/delta.c \
155 $(top_srcdir)/lib/delta_cache.c \
156 $(top_srcdir)/lib/deltify.c \
157 $(top_srcdir)/lib/dial.c \
158 $(top_srcdir)/lib/error.c \
159 $(top_srcdir)/lib/fetch.c \
160 $(top_srcdir)/lib/gotconfig.c \
161 $(top_srcdir)/lib/hash.c \
162 $(top_srcdir)/lib/inflate.c \
163 $(top_srcdir)/lib/lockfile.c \
164 $(top_srcdir)/lib/murmurhash2.c \
165 $(top_srcdir)/lib/object.c \
166 $(top_srcdir)/lib/object_cache.c \
167 $(top_srcdir)/lib/object_create.c \
168 $(top_srcdir)/lib/object_idset.c \
169 $(top_srcdir)/lib/object_open_privsep.c \
170 $(top_srcdir)/lib/object_parse.c \
171 $(top_srcdir)/lib/object_qid.c \
172 $(top_srcdir)/lib/opentemp.c \
173 $(top_srcdir)/lib/pack.c \
174 $(top_srcdir)/lib/pack_create.c \
175 $(top_srcdir)/lib/pack_create_privsep.c \
176 $(top_srcdir)/lib/path.c \
177 $(top_srcdir)/lib/pollfd.c \
178 $(top_srcdir)/lib/privsep.c \
179 $(top_srcdir)/lib/ratelimit.c \
180 $(top_srcdir)/lib/read_gitconfig_privsep.c \
181 $(top_srcdir)/lib/read_gotconfig_privsep.c \
182 $(top_srcdir)/lib/reference.c \
183 $(top_srcdir)/lib/reference_parse.c \
184 $(top_srcdir)/lib/repository.c \
185 $(top_srcdir)/lib/sigs.c \
186 $(top_srcdir)/regress/fetch/fetch_test.c \
187 -L$(top_builddir)/compat -lopenbsd-compat $(LIBS) -lm && \
188 $(top_builddir)/regress/fetch/fetch_test
191 $(CC) $(DEFS) $(AM_CFLAGS) $(AM_CPPFLAGS) \
192 -o $(top_builddir)/regress/idset/idset_test \
193 $(top_srcdir)/lib/bloom.c \
194 $(top_srcdir)/lib/buf.c \
195 $(top_srcdir)/lib/date.c \
196 $(top_srcdir)/lib/deflate.c \
197 $(top_srcdir)/lib/delta.c \
198 $(top_srcdir)/lib/delta_cache.c \
199 $(top_srcdir)/lib/deltify.c \
200 $(top_srcdir)/lib/dial.c \
201 $(top_srcdir)/lib/error.c \
202 $(top_srcdir)/lib/fetch.c \
203 $(top_srcdir)/lib/gotconfig.c \
204 $(top_srcdir)/lib/hash.c \
205 $(top_srcdir)/lib/inflate.c \
206 $(top_srcdir)/lib/lockfile.c \
207 $(top_srcdir)/lib/murmurhash2.c \
208 $(top_srcdir)/lib/object.c \
209 $(top_srcdir)/lib/object_cache.c \
210 $(top_srcdir)/lib/object_create.c \
211 $(top_srcdir)/lib/object_idset.c \
212 $(top_srcdir)/lib/object_open_privsep.c \
213 $(top_srcdir)/lib/object_parse.c \
214 $(top_srcdir)/lib/object_qid.c \
215 $(top_srcdir)/lib/opentemp.c \
216 $(top_srcdir)/lib/pack.c \
217 $(top_srcdir)/lib/pack_create.c \
218 $(top_srcdir)/lib/pack_create_privsep.c \
219 $(top_srcdir)/lib/path.c \
220 $(top_srcdir)/lib/pollfd.c \
221 $(top_srcdir)/lib/privsep.c \
222 $(top_srcdir)/lib/ratelimit.c \
223 $(top_srcdir)/lib/read_gitconfig_privsep.c \
224 $(top_srcdir)/lib/read_gotconfig_privsep.c \
225 $(top_srcdir)/lib/reference.c \
226 $(top_srcdir)/lib/reference_parse.c \
227 $(top_srcdir)/lib/repository.c \
228 $(top_srcdir)/lib/sigs.c \
229 $(top_srcdir)/regress/idset/idset_test.c \
230 -L$(top_builddir)/compat -lopenbsd-compat $(LIBS) && \
231 $(top_builddir)/regress/idset/idset_test
234 $(CC) $(DEFS) $(AM_CFLAGS) $(AM_CPPFLAGS) \
235 -o $(top_builddir)/regress/path/path_test \
236 $(top_srcdir)/lib/bloom.c \
237 $(top_srcdir)/lib/buf.c \
238 $(top_srcdir)/lib/date.c \
239 $(top_srcdir)/lib/deflate.c \
240 $(top_srcdir)/lib/delta.c \
241 $(top_srcdir)/lib/delta_cache.c \
242 $(top_srcdir)/lib/deltify.c \
243 $(top_srcdir)/lib/dial.c \
244 $(top_srcdir)/lib/error.c \
245 $(top_srcdir)/lib/fetch.c \
246 $(top_srcdir)/lib/gotconfig.c \
247 $(top_srcdir)/lib/hash.c \
248 $(top_srcdir)/lib/inflate.c \
249 $(top_srcdir)/lib/lockfile.c \
250 $(top_srcdir)/lib/murmurhash2.c \
251 $(top_srcdir)/lib/object.c \
252 $(top_srcdir)/lib/object_cache.c \
253 $(top_srcdir)/lib/object_create.c \
254 $(top_srcdir)/lib/object_idset.c \
255 $(top_srcdir)/lib/object_open_privsep.c \
256 $(top_srcdir)/lib/object_parse.c \
257 $(top_srcdir)/lib/object_qid.c \
258 $(top_srcdir)/lib/opentemp.c \
259 $(top_srcdir)/lib/pack.c \
260 $(top_srcdir)/lib/pack_create.c \
261 $(top_srcdir)/lib/pack_create_privsep.c \
262 $(top_srcdir)/lib/path.c \
263 $(top_srcdir)/lib/pollfd.c \
264 $(top_srcdir)/lib/privsep.c \
265 $(top_srcdir)/lib/ratelimit.c \
266 $(top_srcdir)/lib/read_gitconfig_privsep.c \
267 $(top_srcdir)/lib/read_gotconfig_privsep.c \
268 $(top_srcdir)/lib/reference.c \
269 $(top_srcdir)/lib/reference_parse.c \
270 $(top_srcdir)/lib/repository.c \
271 $(top_srcdir)/lib/sigs.c \
272 $(top_srcdir)/regress/path/path_test.c \
273 -L$(top_builddir)/compat -lopenbsd-compat $(LIBS) && \
274 $(top_builddir)/regress/path/path_test
277 (cd $(top_builddir)/regress/tog || exit $$?; \
278 ./log.sh -q -r "$(GOT_TEST_ROOT)");