X-Git-Url: https://git.ozlabs.org/?p=petitboot;a=blobdiff_plain;f=test%2Fparser%2FMakefile.am;h=3733039b6647c5ee64846da37e25c50facd7aaf1;hp=aa4591f9f2d707305e4b4f9e7e2e03c980d4de19;hb=30b2ac42df8827f2181c7294b2a628bbcc1cfef8;hpb=5d16719922866622fc0f42c570b9934f595e3c33 diff --git a/test/parser/Makefile.am b/test/parser/Makefile.am index aa4591f..3733039 100644 --- a/test/parser/Makefile.am +++ b/test/parser/Makefile.am @@ -24,7 +24,10 @@ AM_CPPFLAGS = \ AM_CFLAGS = -O0 -ggdb -Wall -Wextra -Werror -TESTS = test-null +TESTS = test-null \ + test-kboot-single \ + test-yaboot-single \ + test-yaboot-external check_PROGRAMS = $(TESTS) check_LIBRARIES = $(test_libs) @@ -37,7 +40,9 @@ libtest.o: $(libtest_o_OBJECTS) $(LD) -o $@ -r $^ # objects under test -parser_test_objs = $(top_srcdir)/discover/resource.c \ +parser_test_objs = $(top_srcdir)/discover/yaboot-parser.c \ + $(top_srcdir)/discover/kboot-parser.c \ + $(top_srcdir)/discover/resource.c \ $(top_srcdir)/discover/paths.c \ $(top_srcdir)/discover/device-handler.c \ $(top_srcdir)/discover/parser-conf.c @@ -47,5 +52,15 @@ LDADD = $(common_libs) $(test_libs) libtest_o_SOURCES = utils.c parser-test.h handler.c main.c $(parser_test_objs) +$(check_PROGRAMS): %: %.embedded-config.o +$(check_PROGRAMS): LDADD += $@.embedded-config.o -EXTRA_DIST = $(check_DATA) +extract_config = $(srcdir)/extract-config.awk + +%.embedded-config.c: %.c $(extract_config) + gawk --file=$(extract_config) $^ > $@ + +EXTRA_DIST = $(check_DATA) $(extract_config) + +CLEANFILES = $(foreach f, $(check_PROGRAMS), \ + $(f).embedded-config.c $(f).embedded-config.o)