Blob


1 SUBDIRS = compat libexec got tog gotadmin
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 (cd $(top_builddir)/regress/cmdline || exit $$?; \
21 ./checkout.sh -r "$(GOT_TEST_ROOT)"; \
22 ./update.sh -r "$(GOT_TEST_ROOT)"; \
23 ./status.sh -r "$(GOT_TEST_ROOT)"; \
24 ./log.sh -r "$(GOT_TEST_ROOT)"; \
25 ./add.sh -r "$(GOT_TEST_ROOT)"; \
26 ./rm.sh -r "$(GOT_TEST_ROOT)"; \
27 ./diff.sh -r "$(GOT_TEST_ROOT)"; \
28 ./blame.sh -r "$(GOT_TEST_ROOT)"; \
29 ./branch.sh -r "$(GOT_TEST_ROOT)"; \
30 ./tag.sh -r "$(GOT_TEST_ROOT)"; \
31 ./ref.sh -r "$(GOT_TEST_ROOT)"; \
32 ./commit.sh -r "$(GOT_TEST_ROOT)"; \
33 ./revert.sh -r "$(GOT_TEST_ROOT)"; \
34 ./cherrypick.sh -r "$(GOT_TEST_ROOT)"; \
35 ./backout.sh -r "$(GOT_TEST_ROOT)"; \
36 ./rebase.sh -r "$(GOT_TEST_ROOT)"; \
37 ./import.sh -r "$(GOT_TEST_ROOT)"; \
38 ./histedit.sh -r "$(GOT_TEST_ROOT)"; \
39 ./integrate.sh -r "$(GOT_TEST_ROOT)"; \
40 ./stage.sh -r "$(GOT_TEST_ROOT)"; \
41 ./unstage.sh -r "$(GOT_TEST_ROOT)"; \
42 ./cat.sh -r "$(GOT_TEST_ROOT)"; \
43 ./clone.sh -r "$(GOT_TEST_ROOT)"; \
44 ./fetch.sh -r "$(GOT_TEST_ROOT)"; \
45 ./send.sh -r "$(GOT_TEST_ROOT)"; \
46 ./tree.sh -r "$(GOT_TEST_ROOT)"; \
47 ./pack.sh -r "$(GOT_TEST_ROOT)"; \
48 ./cleanup.sh -r "$(GOT_TEST_ROOT)")
50 regress-delta:
51 $(CC) $(DEFS) $(AM_CFLAGS) $(AM_CPPFLAGS) \
52 -o $(top_builddir)/regress/delta/delta_test \
53 $(top_srcdir)/lib/delta.c \
54 $(top_srcdir)/lib/error.c \
55 $(top_srcdir)/lib/opentemp.c \
56 $(top_srcdir)/lib/path.c \
57 $(top_srcdir)/lib/inflate.c \
58 $(top_srcdir)/lib/sha1.c \
59 $(top_srcdir)/regress/delta/delta_test.c \
60 -L$(top_builddir)/compat -lopenbsd-compat $(LIBS) && \
61 $(top_builddir)/regress/delta/delta_test
63 regress-deltify:
64 $(CC) $(DEFS) $(AM_CFLAGS) $(AM_CPPFLAGS) \
65 -o $(top_builddir)/regress/deltify/deltify_test \
66 $(top_srcdir)/regress/deltify/deltify_test.c \
67 $(top_srcdir)/lib/deltify.c \
68 $(top_srcdir)/lib/error.c \
69 $(top_srcdir)/lib/opentemp.c \
70 $(top_srcdir)/lib/sha1.c \
71 -L$(top_builddir)/compat -lopenbsd-compat $(LIBS) && \
72 $(top_builddir)/regress/deltify/deltify_test
74 regress-fetch:
75 $(CC) $(DEFS) $(AM_CFLAGS) $(AM_CPPFLAGS) \
76 -o $(top_builddir)/regress/fetch/fetch_test \
77 $(top_srcdir)/regress/fetch/fetch_test.c \
78 $(top_srcdir)/lib/error.c \
79 $(top_srcdir)/lib/privsep.c \
80 $(top_srcdir)/lib/reference.c \
81 $(top_srcdir)/lib/sha1.c \
82 $(top_srcdir)/lib/object.c \
83 $(top_srcdir)/lib/object_parse.c \
84 $(top_srcdir)/lib/path.c \
85 $(top_srcdir)/lib/opentemp.c \
86 $(top_srcdir)/lib/repository.c \
87 $(top_srcdir)/lib/lockfile.c \
88 $(top_srcdir)/lib/object_cache.c \
89 $(top_srcdir)/lib/pack.c \
90 $(top_srcdir)/lib/inflate.c \
91 $(top_srcdir)/lib/deflate.c \
92 $(top_srcdir)/lib/delta.c \
93 $(top_srcdir)/lib/delta_cache.c \
94 $(top_srcdir)/lib/object_idset.c \
95 $(top_srcdir)/lib/object_create.c \
96 $(top_srcdir)/lib/fetch.c \
97 $(top_srcdir)/lib/gotconfig.c \
98 $(top_srcdir)/lib/dial.c \
99 -L$(top_builddir)/compat -lopenbsd-compat $(LIBS) && \
100 $(top_builddir)/regress/fetch/fetch_test
102 regress-idset:
103 $(CC) $(DEFS) $(AM_CFLAGS) $(AM_CPPFLAGS) \
104 -o $(top_builddir)/regress/idset/idset_test \
105 $(top_srcdir)/regress/idset/idset_test.c \
106 $(top_srcdir)/lib/error.c \
107 $(top_srcdir)/lib/sha1.c \
108 $(top_srcdir)/lib/object_idset.c \
109 $(top_srcdir)/lib/inflate.c \
110 $(top_srcdir)/lib/path.c \
111 $(top_srcdir)/lib/object_parse.c \
112 -L$(top_builddir)/compat -lopenbsd-compat $(LIBS) && \
113 $(top_builddir)/regress/idset/idset_test
115 regress-path:
116 $(CC) $(DEFS) $(AM_CFLAGS) $(AM_CPPFLAGS) \
117 -o $(top_builddir)/regress/path/path_test \
118 $(top_srcdir)/regress/path/path_test.c \
119 $(top_srcdir)/lib/error.c \
120 $(top_srcdir)/lib/sha1.c \
121 $(top_srcdir)/lib/path.c \
122 -L$(top_builddir)/compat -lopenbsd-compat $(LIBS) && \
123 $(top_builddir)/regress/path/path_test