]> git.ozlabs.org Git - petitboot/blob - test/urls/Makefile.am
discover/grub2: Add support for -s and -f commands
[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 AUTOMAKE_OPTIONS = parallel-tests
15
16 AM_CPPFLAGS = \
17         -I$(top_srcdir) \
18         -I$(top_srcdir)/lib \
19         $(DEFAULT_CPPFLAGS)
20
21 AM_CFLAGS = \
22         $(DEFAULT_CFLAGS)
23
24 parse_url_SOURCES = parse-url.c
25
26 parse_url_LDADD = ../../lib/libpbcore.la
27
28 check_PROGRAMS = parse-url
29 check_SCRIPTS = run-url-test
30
31 TESTS = data/double-slash.test \
32         data/http-simple.test \
33         data/join-full.test \
34         data/join-absolute.test \
35         data/join-relative.test \
36         data/localpath.test
37
38 TEST_EXTENSIONS = .test
39 TEST_LOG_COMPILER = $(builddir)/run-url-test
40
41 if ENABLE_TEST_VALGRIND
42 TEST_LOG_FLAGS = --valgrind
43 endif
44
45 edit = sed \
46         -e 's|@PACKAGE_NAME\@|$(PACKAGE_NAME)|g' \
47         -e 's|@PACKAGE_VERSION\@|$(PACKAGE_VERSION)|g' \
48         -e 's|@PACKAGE_BUGREPORT\@|$(PACKAGE_BUGREPORT)|g' \
49         -e 's|@abs_srcdir\@|$(abs_srcdir)|g' \
50         -e 's|@abs_builddir\@|$(abs_builddir)|g' \
51         -e 's|@prefix\@|$(prefix)|g'
52
53 EXTRA_DIST = $(TESTS) run-url-test.in
54
55 run-url-test: Makefile $(srcdir)/run-url-test.in
56         rm -f $@ $@.tmp
57         $(edit) $(srcdir)/$@.in >$@.tmp
58         chmod +x $@.tmp
59         mv $@.tmp $@
60
61 CLEANFILES = run-url-test
62
63 MAINTAINERCLEANFILES = Makefile.in