-AUTOMAKE_OPTIONS = parallel-tests
-
-AM_CPPFLAGS = \
- -I$(top_srcdir) \
- -I$(top_srcdir)/lib \
- -I$(top_srcdir)/discover \
- -DLOCAL_STATE_DIR='"$(localstatedir)"' \
- -DTEST_CONF_BASE='"$(srcdir)/data"' \
- -DDEBUG -DPETITBOOT_TEST
-
-AM_CFLAGS = -O0 -ggdb -Wall -Wextra -Werror
-
-LDADD = $(top_builddir)/lib/libpbcore.la libtest.ro
-
-TESTS = \
- test-null \
- test-grub2-single \
- test-grub2-default \
- test-grub2-default-index \
- test-grub2-default-multiword \
- test-grub2-multiple-resolve \
- test-grub2-multiple-id \
- test-grub2-single-line-if \
- test-grub2-load-env \
- test-grub2-save-env \
- test-grub2-saved-default \
- test-grub2-nondefault-prefix \
- test-grub2-f18-ppc64 \
- test-grub2-ubuntu-13_04-x86 \
- test-grub2-lexer-error \
- test-grub2-parser-error \
- test-kboot-single \
- test-yaboot-empty \
- test-yaboot-single \
- test-yaboot-partition \
- test-yaboot-partition-override \
- test-yaboot-external \
- test-yaboot-root-global \
- test-yaboot-root-override \
- test-yaboot-device-override \
- test-yaboot-global-state \
- test-yaboot-leftovers \
- test-yaboot-default \
- test-yaboot-rh8-ppc64 \
- test-pxe-empty \
- test-pxe-single \
- test-pxe-initrd-in-append \
- test-pxe-mac-without-conf \
- test-pxe-ip-without-conf \
- test-pxe-non-url-conf \
- test-pxe-local \
- test-pxe-pathprefix-with-conf \
- test-pxe-non-url-pathprefix-with-conf \
- test-pxe-pathprefix-discover \
- test-unresolved-remove
-
-$(TESTS): %: %.embedded-config.o
-$(TESTS): LDADD += $@.embedded-config.o
-
-extract_config = $(srcdir)/extract-config.awk
+parser_TESTS = \
+ test/parser/test-null \
+ test/parser/test-grub2-single \
+ test/parser/test-grub2-default \
+ test/parser/test-grub2-empty \
+ test/parser/test-grub2-noeol \
+ test/parser/test-grub2-menuentry-formats \
+ test/parser/test-grub2-if-formats \
+ test/parser/test-grub2-default-index \
+ test/parser/test-grub2-default-multiword \
+ test/parser/test-grub2-implicit-default-unset \
+ test/parser/test-grub2-implicit-default-invalid \
+ test/parser/test-grub2-multiple-resolve \
+ test/parser/test-grub2-multiple-id \
+ test/parser/test-grub2-single-line-if \
+ test/parser/test-grub2-pos-param \
+ test/parser/test-grub2-load-env \
+ test/parser/test-grub2-save-env \
+ test/parser/test-grub2-save-env-dash-f \
+ test/parser/test-grub2-saved-default \
+ test/parser/test-grub2-nondefault-prefix \
+ test/parser/test-grub2-f18-ppc64 \
+ test/parser/test-grub2-f20-ppc64 \
+ test/parser/test-grub2-ubuntu-13_04-x86 \
+ test/parser/test-grub2-sles-btrfs-snapshot \
+ test/parser/test-grub2-lexer-error \
+ test/parser/test-grub2-parser-error \
+ test/parser/test-grub2-test-file-ops \
+ test/parser/test-grub2-single-yocto \
+ test/parser/test-grub2-blscfg-default-filename \
+ test/parser/test-grub2-blscfg-default-index \
+ test/parser/test-grub2-blscfg-default-title \
+ test/parser/test-grub2-blscfg-multiple-bls \
+ test/parser/test-grub2-blscfg-opts-config \
+ test/parser/test-grub2-blscfg-opts-grubenv \
+ test/parser/test-kboot-single \
+ test/parser/test-kboot-default \
+ test/parser/test-yaboot-empty \
+ test/parser/test-yaboot-single \
+ test/parser/test-yaboot-partition \
+ test/parser/test-yaboot-partition-override \
+ test/parser/test-yaboot-external \
+ test/parser/test-yaboot-root-global \
+ test/parser/test-yaboot-root-override \
+ test/parser/test-yaboot-device-override \
+ test/parser/test-yaboot-global-state \
+ test/parser/test-yaboot-leftovers \
+ test/parser/test-yaboot-default \
+ test/parser/test-yaboot-rh8-ppc64 \
+ test/parser/test-pxe-empty \
+ test/parser/test-pxe-single \
+ test/parser/test-pxe-initrd-in-append \
+ test/parser/test-pxe-mac-without-conf \
+ test/parser/test-pxe-ip-without-conf \
+ test/parser/test-pxe-ipxe \
+ test/parser/test-pxe-ipxe-named \
+ test/parser/test-pxe-ipxe-default \
+ test/parser/test-pxe-non-url-conf \
+ test/parser/test-pxe-local \
+ test/parser/test-pxe-ipappend \
+ test/parser/test-pxe-pathprefix-with-conf \
+ test/parser/test-pxe-non-url-pathprefix-with-conf \
+ test/parser/test-pxe-pathprefix-discover \
+ test/parser/test-pxe-pathprefix-discover-mac \
+ test/parser/test-pxe-path-resolve-relative \
+ test/parser/test-pxe-path-resolve-absolute \
+ test/parser/test-pxe-discover-bootfile-root \
+ test/parser/test-pxe-discover-bootfile-subdir \
+ test/parser/test-pxe-discover-bootfile-pathprefix \
+ test/parser/test-pxe-discover-bootfile-relative-conffile \
+ test/parser/test-pxe-discover-bootfile-absolute-conffile \
+ test/parser/test-pxe-discover-bootfile-async-file \
+ test/parser/test-unresolved-remove \
+ test/parser/test-syslinux-single-yocto \
+ test/parser/test-syslinux-global-append \
+ test/parser/test-syslinux-explicit \
+ test/parser/test-syslinux-nested-config
+
+
+TESTS += $(parser_TESTS)
+check_PROGRAMS += $(parser_TESTS) test/parser/libtest.ro
+
+check_DATA += \
+ test/parser/data/grub2-f18-ppc64.conf \
+ test/parser/data/grub2-f20-ppc.conf \
+ test/parser/data/grub2-ubuntu-13_04-x86.conf \
+ test/parser/data/yaboot-rh8-ppc64.conf \
+ test/parser/data/syslinux-include-root.cfg \
+ test/parser/data/syslinux-include-nest-1.cfg \
+ test/parser/data/syslinux-include-nest-2.cfg
+
+$(parser_TESTS): AM_CPPFLAGS += \
+ -I$(top_srcdir)/discover \
+ -DLOCAL_STATE_DIR='"$(localstatedir)"'
+$(parser_TESTS): LDADD += $@.embedded-config.o test/parser/libtest.ro $(core_lib)
+$(parser_TESTS): %: %.embedded-config.o test/parser/libtest.ro $(core_lib)
+
+extract_config = $(srcdir)/test/parser/extract-config.awk