Blob


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