Blob


1 SUBDIRS = compat libexec got tog gotadmin gotwebd
3 include $(top_builddir)/Makefile.common
5 EXTRA_DIST = CHANGES CHANGELOG
7 LDADD = $(LIBOBJS)
8 if HOST_FREEBSD
9 LDADD += -lmd
10 LIBS += -lmd
11 endif
13 TEST_TARGETS=regress-delta regress-deltify regress-fetch regress-idset \
14 regress-path regress-cmdline
15 GOT_TEST_ROOT=/tmp
17 tests: $(TEST_TARGETS)
19 regress-cmdline:
20 (export PLATFORM=@PLATFORM@; \
21 cd $(top_builddir)/regress/cmdline || exit $$?; \
22 ./checkout.sh -q -r "$(GOT_TEST_ROOT)"; \
23 ./update.sh -q -r "$(GOT_TEST_ROOT)"; \
24 ./status.sh -q -r "$(GOT_TEST_ROOT)"; \
25 ./log.sh -q -r "$(GOT_TEST_ROOT)"; \
26 ./add.sh -q -r "$(GOT_TEST_ROOT)"; \
27 ./rm.sh -q -r "$(GOT_TEST_ROOT)"; \
28 ./diff.sh -q -r "$(GOT_TEST_ROOT)"; \
29 ./blame.sh -q -r "$(GOT_TEST_ROOT)"; \
30 ./branch.sh -q -r "$(GOT_TEST_ROOT)"; \
31 ./tag.sh -q -r "$(GOT_TEST_ROOT)"; \
32 ./ref.sh -q -r "$(GOT_TEST_ROOT)"; \
33 ./commit.sh -q -r "$(GOT_TEST_ROOT)"; \
34 ./revert.sh -q -r "$(GOT_TEST_ROOT)"; \
35 ./cherrypick.sh -q -r "$(GOT_TEST_ROOT)"; \
36 ./backout.sh -q -r "$(GOT_TEST_ROOT)"; \
37 ./rebase.sh -q -r "$(GOT_TEST_ROOT)"; \
38 ./import.sh -q -r "$(GOT_TEST_ROOT)"; \
39 ./histedit.sh -q -r "$(GOT_TEST_ROOT)"; \
40 ./integrate.sh -q -r "$(GOT_TEST_ROOT)"; \
41 ./merge.sh -q -r "$(GOT_TEST_ROOT)"; \
42 ./stage.sh -q -r "$(GOT_TEST_ROOT)"; \
43 ./unstage.sh -q -r "$(GOT_TEST_ROOT)"; \
44 ./cat.sh -q -r "$(GOT_TEST_ROOT)"; \
45 ./clone.sh -q -r "$(GOT_TEST_ROOT)"; \
46 ./fetch.sh -q -r "$(GOT_TEST_ROOT)"; \
47 ./send.sh -q -r "$(GOT_TEST_ROOT)"; \
48 ./tree.sh -q -r "$(GOT_TEST_ROOT)"; \
49 ./patch.sh -q -r "$(GOT_TEST_ROOT)" \
50 ./pack.sh -q -r "$(GOT_TEST_ROOT)"; \
51 ./cleanup.sh -q -r "$(GOT_TEST_ROOT)")
53 regress-delta:
54 $(CC) $(DEFS) $(AM_CFLAGS) $(AM_CPPFLAGS) \
55 -o $(top_builddir)/regress/delta/delta_test \
56 $(top_srcdir)/lib/delta.c \
57 $(top_srcdir)/lib/error.c \
58 $(top_srcdir)/lib/opentemp.c \
59 $(top_srcdir)/lib/path.c \
60 $(top_srcdir)/lib/inflate.c \
61 $(top_srcdir)/lib/sha1.c \
62 $(top_srcdir)/regress/delta/delta_test.c \
63 -L$(top_builddir)/compat -lopenbsd-compat $(LIBS) && \
64 $(top_builddir)/regress/delta/delta_test
66 regress-deltify:
67 $(CC) $(DEFS) $(AM_CFLAGS) $(AM_CPPFLAGS) \
68 -o $(top_builddir)/regress/deltify/deltify_test \
69 $(top_srcdir)/regress/deltify/deltify_test.c \
70 $(top_srcdir)/lib/deltify.c \
71 $(top_srcdir)/lib/error.c \
72 $(top_srcdir)/lib/opentemp.c \
73 $(top_srcdir)/lib/sha1.c \
74 $(top_srcdir)/lib/murmurhash2.c \
75 -L$(top_builddir)/compat -lopenbsd-compat $(LIBS) && \
76 $(top_builddir)/regress/deltify/deltify_test
78 regress-fetch:
79 $(CC) $(DEFS) $(AM_CFLAGS) $(AM_CPPFLAGS) \
80 -o $(top_builddir)/regress/fetch/fetch_test \
81 $(top_srcdir)/regress/fetch/fetch_test.c \
82 $(top_srcdir)/lib/error.c \
83 $(top_srcdir)/lib/privsep.c \
84 $(top_srcdir)/lib/reference.c \
85 $(top_srcdir)/lib/sha1.c \
86 $(top_srcdir)/lib/object.c \
87 $(top_srcdir)/lib/object_parse.c \
88 $(top_srcdir)/lib/path.c \
89 $(top_srcdir)/lib/opentemp.c \
90 $(top_srcdir)/lib/repository.c \
91 $(top_srcdir)/lib/lockfile.c \
92 $(top_srcdir)/lib/object_cache.c \
93 $(top_srcdir)/lib/pack.c \
94 $(top_srcdir)/lib/inflate.c \
95 $(top_srcdir)/lib/deflate.c \
96 $(top_srcdir)/lib/delta.c \
97 $(top_srcdir)/lib/delta_cache.c \
98 $(top_srcdir)/lib/object_idset.c \
99 $(top_srcdir)/lib/object_create.c \
100 $(top_srcdir)/lib/fetch.c \
101 $(top_srcdir)/lib/gotconfig.c \
102 $(top_srcdir)/lib/dial.c \
103 $(top_srcdir)/lib/bloom.c \
104 $(top_srcdir)/lib/murmurhash2.c \
105 $(top_srcdir)/lib/buf.c \
106 $(top_srcdir)/lib/sigs.c \
107 $(top_srcdir)/lib/date.c \
108 -L$(top_builddir)/compat -lopenbsd-compat $(LIBS) -lm && \
109 $(top_builddir)/regress/fetch/fetch_test
111 regress-idset:
112 $(CC) $(DEFS) $(AM_CFLAGS) $(AM_CPPFLAGS) \
113 -o $(top_builddir)/regress/idset/idset_test \
114 $(top_srcdir)/regress/idset/idset_test.c \
115 $(top_srcdir)/lib/error.c \
116 $(top_srcdir)/lib/sha1.c \
117 $(top_srcdir)/lib/object_idset.c \
118 $(top_srcdir)/lib/inflate.c \
119 $(top_srcdir)/lib/path.c \
120 $(top_srcdir)/lib/object_parse.c \
121 -L$(top_builddir)/compat -lopenbsd-compat $(LIBS) && \
122 $(top_builddir)/regress/idset/idset_test
124 regress-path:
125 $(CC) $(DEFS) $(AM_CFLAGS) $(AM_CPPFLAGS) \
126 -o $(top_builddir)/regress/path/path_test \
127 $(top_srcdir)/regress/path/path_test.c \
128 $(top_srcdir)/lib/error.c \
129 $(top_srcdir)/lib/sha1.c \
130 $(top_srcdir)/lib/path.c \
131 -L$(top_builddir)/compat -lopenbsd-compat $(LIBS) && \
132 $(top_builddir)/regress/path/path_test