]> git.ozlabs.org Git - petitboot/blob - test/urls/Makefile.am
discover/grub2: Allow unset and invalid defaults
[petitboot] / test / urls / Makefile.am
1 #  This program is free software; you can redistribute it and/or modify
2 #  it under the terms of the GNU General Public License as published by
3 #  the Free Software Foundation; version 2 of the License.
4 #
5 #  This program is distributed in the hope that it will be useful,
6 #  but WITHOUT ANY WARRANTY; without even the implied warranty of
7 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
8 #  GNU General Public License for more details.
9 #
10 #  You should have received a copy of the GNU General Public License
11 #  along with this program; if not, write to the Free Software
12 #  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
13
14 check_PROGRAMS += test/urls/parse-url
15 check_SCRIPTS += test/urls/run-url-test
16
17 test_urls_parse_url_SOURCES = test/urls/parse-url.c
18 test_urls_parse_url_LDADD = $(core_lib)
19
20 url_TESTS = \
21         test/urls/data/double-slash.test \
22         test/urls/data/http-simple.test \
23         test/urls/data/join-full.test \
24         test/urls/data/join-absolute.test \
25         test/urls/data/join-relative.test \
26         test/urls/data/localpath.test
27
28 TESTS += $(url_TESTS)
29
30 TEST_EXTENSIONS = .test
31 TEST_LOG_COMPILER = $(builddir)/test/urls/run-url-test
32
33 if ENABLE_TEST_VALGRIND
34 TEST_LOG_FLAGS = --valgrind
35 endif
36
37 edit = sed \
38         -e 's|@PACKAGE_NAME\@|$(PACKAGE_NAME)|g' \
39         -e 's|@PACKAGE_VERSION\@|$(PACKAGE_VERSION)|g' \
40         -e 's|@PACKAGE_BUGREPORT\@|$(PACKAGE_BUGREPORT)|g' \
41         -e 's|@abs_srcdir\@|$(abs_srcdir)/test/urls|g' \
42         -e 's|@abs_builddir\@|$(abs_builddir)/test/urls|g' \
43         -e 's|@prefix\@|$(prefix)|g'
44
45 EXTRA_DIST += $(url_TESTS) test/urls/run-url-test.in
46
47 test/urls/run-url-test: $(srcdir)/test/urls/run-url-test.in
48         $(AM_V_GEN)$(edit) $(srcdir)/$@.in > $@.tmp && \
49                 chmod +x $@.tmp && \
50                 mv $@.tmp $@
51
52 CLEANFILES += test/urls/run-url-test
53