1 | ## Process this file with automake to produce Makefile.in |
---|
2 | ## |
---|
3 | ## $Id: Makefile.am 1673 2023-08-26 15:36:10Z peter $ |
---|
4 | |
---|
5 | # Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010 Jari Häkkinen, Peter Johansson |
---|
6 | # Copyright (C) 2011, 2012 Peter Johansson |
---|
7 | # Copyright (C) 2015 Jari Häkkinen, Peter Johansson |
---|
8 | # Copyright (C) 2020 Peter Johansson |
---|
9 | # |
---|
10 | # This file is part of svndigest, http://dev.thep.lu.se/svndigest |
---|
11 | # |
---|
12 | # svndigest is free software; you can redistribute it and/or modify it |
---|
13 | # under the terms of the GNU General Public License as published by |
---|
14 | # the Free Software Foundation; either version 3 of the License, or |
---|
15 | # (at your option) any later version. |
---|
16 | # |
---|
17 | # svndigest is distributed in the hope that it will be useful, but |
---|
18 | # WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
19 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
20 | # General Public License for more details. |
---|
21 | # |
---|
22 | # You should have received a copy of the GNU General Public License |
---|
23 | # along with svndigest. If not, see <http://www.gnu.org/licenses/>. |
---|
24 | |
---|
25 | check_SCRIPTS = test/svn_update.sh test/init.sh |
---|
26 | |
---|
27 | ## we use suffix .cc for all test source |
---|
28 | AM_DEFAULT_SOURCE_EXT = .cc |
---|
29 | |
---|
30 | EXTRA_PROGRAMS = test/cache.test test/cache_partial.test test/color.test \ |
---|
31 | test/config.test test/copyright.test test/date.test \ |
---|
32 | test/graph.test test/htmlstream.test test/ignore_rev.test \ |
---|
33 | test/parser.test test/option.test test/stats.test \ |
---|
34 | test/svn_cat.test test/svn_cat2.test \ |
---|
35 | test/svn_log.test test/trac.test test/utility.test \ |
---|
36 | test/vector.test |
---|
37 | |
---|
38 | CLEANFILES += $(EXTRA_PROGRAMS) |
---|
39 | |
---|
40 | test_option_test_SOURCES = test/option.cc bin/Parameter.cc \ |
---|
41 | bin/AbstractParameter.cc bin/svndigestParameter.cc |
---|
42 | |
---|
43 | distributed_TESTS = |
---|
44 | distributed_TESTS += test/cmd_format_test.sh |
---|
45 | distributed_TESTS += test/config2_test.sh |
---|
46 | distributed_TESTS += test/config3_test.sh |
---|
47 | distributed_TESTS += test/config_props_test.sh |
---|
48 | distributed_TESTS += test/copyright2_test.sh |
---|
49 | distributed_TESTS += test/copyright3_test.sh |
---|
50 | distributed_TESTS += test/copyright_cache_test.sh |
---|
51 | distributed_TESTS += test/error_test.sh |
---|
52 | distributed_TESTS += test/ignore_revs_test.sh |
---|
53 | distributed_TESTS += test/link_root_test.sh |
---|
54 | distributed_TESTS += test/permission_test.sh |
---|
55 | distributed_TESTS += test/remove_cache_test.sh |
---|
56 | distributed_TESTS += test/repo_status_test.sh |
---|
57 | distributed_TESTS += test/repo_test.sh |
---|
58 | distributed_TESTS += test/svncopyright_test.sh |
---|
59 | distributed_TESTS += test/svndigest_copy_cache_test.sh |
---|
60 | distributed_TESTS += test/svndigest_copy_cache_test2.sh |
---|
61 | distributed_TESTS += test/traverse_test.sh |
---|
62 | distributed_TESTS += test/try_help_test.sh |
---|
63 | distributed_TESTS += test/update_test.sh |
---|
64 | distributed_TESTS += test/update_test2.sh |
---|
65 | distributed_TESTS += test/update_test3.sh |
---|
66 | distributed_TESTS += test/update_test4.sh |
---|
67 | |
---|
68 | TESTS = $(EXTRA_PROGRAMS) $(distributed_TESTS) |
---|
69 | |
---|
70 | TEST_EXTENSIONS = .sh .test |
---|
71 | |
---|
72 | EXTRA_DIST += $(distributed_TESTS) |
---|
73 | |
---|
74 | # tests not yet passing are listed here |
---|
75 | XFAIL_TESTS = |
---|
76 | |
---|
77 | noinst_HEADERS += test/Suite.h |
---|
78 | |
---|
79 | check_LIBRARIES = test/libsvndigesttest.a |
---|
80 | |
---|
81 | LDADD = test/libsvndigesttest.a \ |
---|
82 | lib/libsvndigest_core.a \ |
---|
83 | $(SVN_LIBS) $(APR_LIBS) $(YAT_LIBS) $(PLPLOT_LIBS) |
---|
84 | |
---|
85 | ## graph test needs to link against Graph class |
---|
86 | test_graph_test_LDADD = test/libsvndigesttest.a \ |
---|
87 | lib/libsvndigest.a lib/libsvndigest_core.a \ |
---|
88 | $(SVN_LIBS) $(APR_LIBS) $(YAT_LIBS) $(PLPLOT_LIBS) |
---|
89 | |
---|
90 | test_libsvndigesttest_a_SOURCES = test/Suite.cc |
---|
91 | |
---|
92 | .PHONY: lazycheck |
---|
93 | |
---|
94 | lazycheck:; $(MAKE) $(AM_MAKEFLAGS) check RECHECK_LOGS= |
---|
95 | |
---|
96 | if HAVE_SVN_WC |
---|
97 | repo_stamp = $(srcdir)/test/repo/db/current test/svn_update.sh |
---|
98 | else |
---|
99 | repo_stamp = |
---|
100 | endif |
---|
101 | |
---|
102 | # dependencies for lazycheck |
---|
103 | test/cmd_format_test.log: test/init.sh bin/svndigest$(EXEEXT) $(repo_stamp) |
---|
104 | test/config2_test.log: test/init.sh bin/svndigest$(EXEEXT) $(repo_stamp) |
---|
105 | test/config3_test.log: test/init.sh bin/svndigest$(EXEEXT) |
---|
106 | test/config_props_test.log: test/init.sh bin/svndigest$(EXEEXT) $(repo_stamp) |
---|
107 | test/copyright2_test.log: test/init.sh bin/svncopyright$(EXEEXT) $(repo_stamp) |
---|
108 | test/copyright3_test.log: test/init.sh bin/svncopyright$(EXEEXT) $(repo_stamp) |
---|
109 | test/copyright_cache_test.log: test/init.sh bin/svncopyright$(EXEEXT) \ |
---|
110 | $(repo_stamp) |
---|
111 | test/link_root_test.log: test/init.sh bin/svndigest$(EXEEXT) $(repo_stamp) |
---|
112 | test/permission_test.log: test/init.sh bin/svncopyright$(EXEEXT) $(repo_stamp) |
---|
113 | test/repo_status_test.log: test/init.sh |
---|
114 | test/repo_test.log: test/init.sh bin/svndigest$(EXEEXT) $(repo_stamp) |
---|
115 | test/svncopyright_test.log: test/init.sh bin/svncopyright$(EXEEXT) |
---|
116 | test/svndigest_copy_cache_test.log: test/init.sh bin/svndigest-copy-cache \ |
---|
117 | $(repo_stamp) |
---|
118 | test/svndigest_copy_cache_test.log: test/init.sh bin/svndigest-copy-cache \ |
---|
119 | $(repo_stamp) |
---|
120 | test/try_help_test.log: test/init.sh bin/svndigest |
---|
121 | test/try_help_test.log: test/init.sh bin/svndigest $(repo_stamp) |
---|
122 | test/update_test.log: test/init.sh bin/svndigest $(repo_stamp) |
---|
123 | test/update_test2.log: test/init.sh bin/svndigest $(repo_stamp) |
---|
124 | test/update_test3.log: test/init.sh bin/svndigest $(repo_stamp) |
---|
125 | test/update_test4.log: test/init.sh bin/svndigest $(repo_stamp) |
---|
126 | |
---|
127 | test/cache_partial.log: $(repo_stamp) |
---|
128 | test/copyright.log: $(repo_stamp) |
---|
129 | test/stats.log: $(repo_stamp) |
---|
130 | test/svn_cat.log: $(repo_stamp) |
---|