Blame


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