1 SUBDIRS = compat libexec got tog gotadmin
3 include $(top_builddir)/Makefile.common
5 EXTRA_DIST = CHANGES CHANGELOG
13 TEST_TARGETS=regress-delta regress-deltify regress-fetch regress-idset \
14 regress-path regress-cmdline
17 tests: $(TEST_TARGETS)
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)")
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
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
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 $(top_srcdir)/lib/bloom.c \
100 $(top_srcdir)/lib/murmurhash2.c \
101 -L$(top_builddir)/compat -lopenbsd-compat $(LIBS) -lm && \
102 $(top_builddir)/regress/fetch/fetch_test
105 $(CC) $(DEFS) $(AM_CFLAGS) $(AM_CPPFLAGS) \
106 -o $(top_builddir)/regress/idset/idset_test \
107 $(top_srcdir)/regress/idset/idset_test.c \
108 $(top_srcdir)/lib/error.c \
109 $(top_srcdir)/lib/sha1.c \
110 $(top_srcdir)/lib/object_idset.c \
111 $(top_srcdir)/lib/inflate.c \
112 $(top_srcdir)/lib/path.c \
113 $(top_srcdir)/lib/object_parse.c \
114 -L$(top_builddir)/compat -lopenbsd-compat $(LIBS) && \
115 $(top_builddir)/regress/idset/idset_test
118 $(CC) $(DEFS) $(AM_CFLAGS) $(AM_CPPFLAGS) \
119 -o $(top_builddir)/regress/path/path_test \
120 $(top_srcdir)/regress/path/path_test.c \
121 $(top_srcdir)/lib/error.c \
122 $(top_srcdir)/lib/sha1.c \
123 $(top_srcdir)/lib/path.c \
124 -L$(top_builddir)/compat -lopenbsd-compat $(LIBS) && \
125 $(top_builddir)/regress/path/path_test