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.
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.
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
14 AUTOMAKE_OPTIONS = parallel-tests
19 -I$(top_srcdir)/discover \
20 -DLOCAL_STATE_DIR='"$(localstatedir)"' \
21 -DTEST_CONF_BASE='"$(srcdir)/data"' \
22 -DDEBUG -DPETITBOOT_TEST
24 AM_CFLAGS = -O0 -ggdb -Wall -Wextra -Werror
26 LDADD = $(top_builddir)/lib/libpbcore.la libtest.ro
31 test-grub2-multiple-resolve \
32 test-grub2-f18-ppc64 \
33 test-grub2-ubuntu-13_04-x86 \
36 test-yaboot-external \
37 test-yaboot-root-global \
38 test-yaboot-root-override \
39 test-yaboot-device-override \
41 test-yaboot-rh8-ppc64 \
43 test-pxe-initrd-in-append
45 $(TESTS): %: %.embedded-config.o
46 $(TESTS): LDADD += $@.embedded-config.o
48 extract_config = $(srcdir)/extract-config.awk
50 %.embedded-config.c: %.c $(extract_config)
51 $(AWK) -f $(extract_config) $< > $@
55 $(top_srcdir)/discover/yaboot-parser.c \
56 $(top_srcdir)/discover/kboot-parser.c \
57 $(top_srcdir)/discover/grub2-parser.c \
58 $(top_srcdir)/discover/pxe-parser.c \
59 $(top_srcdir)/discover/resource.c \
60 $(top_srcdir)/discover/paths.c \
61 $(top_srcdir)/discover/device-handler.c \
62 $(top_srcdir)/discover/parser-conf.c
64 libtest_ro_SOURCES = \
71 libtest.ro$(EXEEXT): $(libtest_ro_OBJECTS)
74 check_PROGRAMS = $(TESTS) libtest.ro
77 data/grub2-f18-ppc64.conf \
78 data/grub2-ubuntu-13_04-x86.conf \
79 data/yaboot-rh8-ppc64.conf
81 EXTRA_DIST = $(check_DATA) $(extract_config)
84 $(foreach f, $(TESTS), $(f).embedded-config.c $(f).embedded-config.o)
86 MAINTAINERCLEANFILES = Makefile.in