pkgconf/Makefile.am
Ariadne Conill ba33d22032 tests: port version option tests out of kyua
Signed-off-by: Ariadne Conill <ariadne@ariadne.space>
2026-01-18 21:34:33 -08:00

432 lines
15 KiB
Makefile

libdir = @libdir@
datarootdir = @datarootdir@
datadir = @datadir@
includedir = @includedir@
system_includedir = @SYSTEM_INCLUDEDIR@
system_libdir = @SYSTEM_LIBDIR@
pkg_default_dir = @PKG_DEFAULT_PATH@
personality_dir = @PERSONALITY_PATH@
pkgconfigdir = $(libdir)/pkgconfig
nodist_pkgconfig_DATA = libpkgconf.pc
ACLOCAL_AMFLAGS = -I m4
AM_CFLAGS = -DPERSONALITY_PATH=\"$(personality_dir)\" -DPKG_DEFAULT_PATH=\"$(pkg_default_dir)\" -DSYSTEM_INCLUDEDIR=\"$(system_includedir)\" -DSYSTEM_LIBDIR=\"$(system_libdir)\"
bin_PROGRAMS = pkgconf bomtool spdxtool
lib_LTLIBRARIES = libpkgconf.la
EXTRA_DIST = pkg.m4 \
meson.build \
meson_options.txt \
pkgconf.wxs.in \
txt2rtf.py \
libpkgconf/meson.build \
libpkgconf/config.h.meson \
libpkgconf/win-dirent.h \
t/basic/arbitrary-path.test \
t/basic/builtin-pkg-config-exists.test \
t/basic/builtin-pkg-config-pc_path-variable.test \
t/basic/builtin-pkgconf-exists.test \
t/basic/builtin-pkgconf-pc_path-variable.test \
t/basic/define-prefix.test \
t/basic/define-prefix-child-prefix-env.test \
t/basic/define-prefix-child-prefix.test \
t/basic/direct-query-with-pkg_config_path.test \
t/basic/env-tuple.test \
t/basic/exists-cflags-env.test \
t/basic/exists-cflags.test \
t/basic/exists-nonexistent.test \
t/basic/exists-version-greater-than-with-tilde.test \
t/basic/exists-version-greater-than.test \
t/basic/exists-version-less-than-with-tilde.test \
t/basic/exists-version-malformed.test \
t/basic/exists-version-minimum.test \
t/basic/exists-version-with-tilde.test \
t/basic/incomplete-cflags.test \
t/basic/incomplete-libs.test \
t/basic/keep-system-libs.test \
t/basic/keep-system-libs-2.test \
t/basic/libs.test \
t/basic/libs-cflags.test \
t/basic/libs-cflags-version.test \
t/basic/libs-cflags-version-multiple.test \
t/basic/libs-cflags-version-multiple-comma.test \
t/basic/libs-cflags-version-not.test \
t/basic/libs-cflags-version-not-provided.test \
t/basic/libs-env.test \
t/basic/libs-only.test \
t/basic/malformed-empty-package.test \
t/basic/modversion-fullpath.test \
t/basic/modversion-noflatten.test \
t/basic/modversion-uninstalled.test \
t/basic/modversion-verbose-prefix.test \
t/basic/noargs.test \
t/basic/nocflags.test \
t/basic/nolibs.test \
t/basic/pkg-config-path.test \
t/basic/print-variables-env.test \
t/basic/single-depth-selectors.test \
t/basic/static-archive-libs.test \
t/basic/uninstalled-not.test \
t/basic/uninstalled.test \
t/basic/variable-env.test \
t/basic/variable-no-recursion.test \
t/basic/variable.test \
t/basic/version-atleast-1.test \
t/basic/version-atleast-2.test \
t/basic/version-exact-1.test \
t/basic/version-exact-2.test \
t/basic/version-max-1.test \
t/basic/version-max-2.test \
t/ordering/cflags-never-mergeback.test \
t/ordering/cflags-only.test \
t/ordering/flag-order-1.test \
t/ordering/flag-order-2.test \
t/ordering/flag-order-3.test \
t/ordering/flag-order-4.test \
t/ordering/fragment-collision.test \
t/ordering/framework-1.test \
t/ordering/framework-2.test \
t/ordering/framework-3.test \
t/ordering/idirafter-munge-ordering.test \
t/ordering/idirafter-ordering.test \
t/ordering/isystem-munge-ordering.test \
t/ordering/libs-never-mergeback.test \
t/parser/argv-parse-1.test \
t/parser/argv-parse-2.test \
t/parser/argv-parse-3.test \
t/parser/c-comments-should-warn.test \
t/parser/comments-in-fields.test \
t/parser/comments.test \
t/parser/dos-lineendings.test \
t/parser/escaped-backslashes-in-output.test \
t/parser/fragment-comment.test \
t/parser/fragment-groups-composite.test \
t/parser/fragment-groups.test \
t/parser/malformed-no-newlines.test \
t/parser/malformed-quoting.test \
t/parser/multiline-bogus-header.test \
t/parser/multiline-field.test \
t/parser/no-trailing-newline.test \
t/parser/paren-quoting.test \
t/parser/shell-quoted-output.test \
t/parser/tilde-quoting-1.test \
t/parser/tilde-quoting-2.test \
t/parser/truncated-files-should-fail-to-parse.test \
t/parser/tuple-dequote.test \
t/parser/variable-whitespace.test \
t/solver/circular-reference-1.test \
t/solver/circular-reference-2.test \
t/solver/circular-reference-directpc.test \
t/solver/conflicts-solution-error.test \
t/solver/conflicts-solution-ignore.test \
t/solver/conflicts-solution-is-fine-standalone.test \
t/solver/depgraph-break-1.test \
t/solver/depgraph-break-2.test \
t/solver/depgraph-break-3.test \
t/solver/libs-intermediary.test \
t/solver/libs-metapackage.test \
t/solver/libs-static-ordering.test \
t/solver/missing-required-dep.test \
t/solver/modversion-provides.test \
t/solver/private-libs-duplication-digraph.test \
t/solver/private-libs-duplication.test \
t/solver/provides-bar-any.test \
t/solver/provides-bar-versioned-equal.test \
t/solver/provides-bar-versioned-greater-than-equal.test \
t/solver/provides-bar-versioned-greater-than.test \
t/solver/provides-bar-versioned-less-than-equal.test \
t/solver/provides-bar-versioned-less-than-new.test \
t/solver/provides-bar-versioned-less-than-old.test \
t/solver/provides-bar-versioned-not-equal-old.test \
t/solver/provides-bar-versioned-not-equal.test \
t/solver/provides-foo-any.test \
t/solver/provides-foo-versioned-exact.test \
t/solver/provides-foo-versioned-greater-than-equal.test \
t/solver/provides-foo-versioned-greater-than.test \
t/solver/provides-foo-versioned-less-than-equal.test \
t/solver/provides-foo-versioned-less-than.test \
t/solver/provides-foo-versioned-not-equal.test \
t/solver/provides-indirect-dependency-versioned.test \
t/solver/provides-indirect-dependency.test \
t/solver/provides-print-simple.test \
t/solver/provides-request-simple.test \
t/solver/provides-request-simple-no-provides.test \
t/solver/query-no-space-0.test \
t/solver/query-no-space-1.test \
t/solver/query-order-1.test \
t/solver/query-order-2.test \
t/solver/requires-internal-collision.test \
t/solver/requires-internal-missing-nonstatic-cflags-libs.test \
t/solver/requires-internal-missing-nonstatic.test \
t/solver/requires-internal-missing-static-cflags.test \
t/solver/requires-internal-missing.test \
t/solver/requires-internal.test \
t/solver/requires-private-debounce.test \
t/solver/requires-private-missing.test \
t/sbom/license-file-bar.test \
t/sbom/license-file-foo.test \
t/sbom/license-isc.test \
t/sbom/license-noassertion.test \
t/sbom/source-tag-bar.test \
t/sbom/source-tag-foo.test \
t/sysroot/cflags-rewriting.test \
t/sysroot/idirafter-munge-sysroot.test \
t/sysroot/isystem-munge-sysroot.test \
t/sysroot/no-pc_sysrootdir-rewriting-2.test \
t/sysroot/no-pc_sysrootdir-rewriting-3.test \
t/sysroot/no-pc_sysrootdir-rewriting-4.test \
t/sysroot/no-pc_sysrootdir-rewriting-5.test \
t/sysroot/no-pc_sysrootdir-rewriting-variable.test \
t/sysroot/skip-rewriting-when-sysroot-dir-is-root-dir.test \
t/sysroot/undefined-pc_sysrootdir-should-be-empty.test \
t/sysroot/uninstalled-rewriting-fdo-rules-with-pc_sysrootdir.test \
t/sysroot/uninstalled-rewriting-fdo-rules.test \
t/sysroot/uninstalled-rewriting-pkgconf-1-rules.test \
t/sysroot/uninstalled-rewriting.test \
t/sysroot/variable-rewriting-1.test \
t/sysroot/variable-rewriting-2.test \
t/tuple/billion-laughs.test \
t/tuple/case-sensitivity-1.test \
t/tuple/case-sensitivity-2.test \
t/tuple/define-variable-override.test \
t/tuple/define-variable.test \
t/tuple/duplicate-upsert.test \
t/tuple/empty-tuple.test \
tests/lib-relocatable/lib/pkgconfig/foo.pc \
tests/lib1/argv-parse-2.pc \
tests/lib1/billion-laughs.pc \
tests/lib1/dos-lineendings.pc \
tests/lib1/paren-quoting.pc \
tests/lib1/argv-parse-3.pc \
tests/lib1/foo.pc \
tests/lib1/foobar.pc \
tests/lib1/unavailable-provider.pc \
tests/lib1/prefix-foo1.pc \
tests/lib1/argv-parse.pc \
tests/lib1/framework-1.pc \
tests/lib1/prefix-foo2.pc \
tests/lib1/bar.pc \
tests/lib1/framework-2.pc \
tests/lib1/private-libs-duplication.pc \
tests/lib1/baz.pc \
tests/lib1/incomplete.pc \
tests/lib1/quotes.pc \
tests/lib1/case-sensitivity.pc \
tests/lib1/intermediary-1.pc \
tests/lib1/static-archive-libs.pc \
tests/lib1/cflags-libs-only.pc \
tests/lib1/intermediary-2.pc \
tests/lib1/static-libs.pc \
tests/lib1/circular-1.pc \
tests/lib1/missing-require.pc \
tests/lib1/sysroot-dir.pc \
tests/lib1/circular-2.pc \
tests/lib1/multiline.pc \
tests/lib1/multiline-bogus.pc \
tests/lib1/tilde-quoting.pc \
tests/lib1/circular-3.pc \
tests/lib1/no-trailing-newline.pc \
tests/lib1/tilde.pc \
tests/lib1/comments-in-fields.pc \
tests/lib1/nocflag.pc \
tests/lib1/typelibdir.pc \
tests/lib2/foo.pc \
tests/lib1/comments.pc \
tests/lib1/nolib.pc \
tests/lib3/bar.pc \
tests/lib1/conflicts.pc \
tests/lib1/omg-uninstalled.pc \
tests/lib1/omg-sysroot-uninstalled.pc \
tests/lib1/isystem.pc \
tests/lib1/idirafter.pc \
tests/lib1/idirafter-ordering.pc \
tests/lib1/depgraph-break.pc \
tests/lib1/cflags-whitespace.pc \
tests/lib1/cflags-whitespace-trailing.pc \
tests/lib1/provides.pc \
tests/lib1/provides-request-simple.pc \
tests/lib1/flag-order-1.pc \
tests/lib1/flag-order-3.pc \
tests/lib1/variable-whitespace.pc \
tests/lib1/fragment-collision.pc \
tests/lib1/fragment-collision-intermediary.pc \
tests/lib1/fragment-collision-1.pc \
tests/lib1/fragment-collision-2.pc \
tests/lib1/fragment-comment.pc \
tests/lib1/fragment-escaping-1.pc \
tests/lib1/fragment-escaping-2.pc \
tests/lib1/fragment-escaping-3.pc \
tests/lib1/fragment-quoting.pc \
tests/lib1/fragment-quoting-2.pc \
tests/lib1/fragment-quoting-3.pc \
tests/lib1/fragment-quoting-5.pc \
tests/lib1/fragment-quoting-7.pc \
tests/lib1/fragment-groups.pc \
tests/lib1/fragment-groups-2.pc \
tests/lib1/fragment-group-a.pc \
tests/lib1/fragment-group-b.pc \
tests/lib1/fragment-group-c.pc \
tests/lib1/malformed-1.pc \
tests/lib1/malformed-quoting.pc \
tests/lib1/malformed-version.pc \
tests/lib1/metapackage.pc \
tests/lib1/metapackage-1.pc \
tests/lib1/metapackage-2.pc \
tests/lib1/metapackage-3.pc \
tests/lib1/explicit-sysroot.pc \
tests/lib1/escaped-backslash.pc \
tests/lib1/cflags-internal.pc \
tests/lib1/requires-internal.pc \
tests/lib1/requires-internal-2.pc \
tests/lib1/requires-internal-missing.pc \
tests/lib1/requires-internal-collision.pc \
tests/lib1/tuple-quoting.pc \
tests/lib1/empty-tuple.pc \
tests/lib1/orphaned-requires-private.pc \
tests/lib1/pcfiledir.pc \
tests/lib1/sysroot-dir-2.pc \
tests/lib1/sysroot-dir-3.pc \
tests/lib1/sysroot-dir-4.pc \
tests/lib1/sysroot-dir-5.pc \
tests/lib1/child-prefix/pkgconfig/child-prefix-1.pc \
tests/lib1/cflags-libs-private-a.pc \
tests/lib1/cflags-libs-private-b.pc \
tests/lib1/cflags-libs-private-c.pc \
tests/lib1/truncated.pc \
tests/lib1/c-comment.pc \
tests/lib1/duplicate-tuple.pc \
tests/lib1/flag-whitespace.pc \
tests/lib1/flag-whitespace-2.pc \
tests/lib-sbom/meta_package.pc \
tests/lib-sbom/test1.pc \
tests/lib-sbom/test2.pc \
tests/lib-sbom/test3.pc \
tests/lib-sbom/test4.pc \
tests/lib-sbom/test5.pc \
tests/lib-sbom/test6.pc \
tests/lib-sbom-files/basic.json \
tests/lib-sbom-files/meta_package.json \
tests/lib-sbom-files/with_dependency.json \
tests/personality-data/i386-linux-gnu.personality \
tests/meson.build \
$(test_scripts) \
doc/conf.py \
doc/extract.py \
doc/index.rst \
doc/libpkgconf.rst \
doc/libpkgconf-argvsplit.rst \
doc/libpkgconf-audit.rst \
doc/libpkgconf-cache.rst \
doc/libpkgconf-client.rst \
doc/libpkgconf-dependency.rst \
doc/libpkgconf-fragment.rst \
doc/libpkgconf-path.rst \
doc/libpkgconf-pkg.rst \
doc/libpkgconf-queue.rst \
doc/libpkgconf-tuple.rst
test_scripts= \
tests/parser.sh \
tests/personality.sh \
tests/regress.sh \
tests/requires.sh \
tests/spdxtool.sh \
tests/symlink.sh
test_sh = $(test_scripts)
check_SCRIPTS = ${test_sh:.sh=}
SUFFIXES= .sh
nobase_pkginclude_HEADERS = libpkgconf/bsdstubs.h libpkgconf/iter.h libpkgconf/libpkgconf.h libpkgconf/stdinc.h libpkgconf/libpkgconf-api.h
libpkgconf_la_SOURCES = \
libpkgconf/audit.c \
libpkgconf/buffer.c \
libpkgconf/cache.c \
libpkgconf/client.c \
libpkgconf/pkg.c \
libpkgconf/bsdstubs.c \
libpkgconf/fragment.c \
libpkgconf/argvsplit.c \
libpkgconf/fileio.c \
libpkgconf/tuple.c \
libpkgconf/dependency.c \
libpkgconf/queue.c \
libpkgconf/output.c \
libpkgconf/path.c \
libpkgconf/personality.c \
libpkgconf/parser.c
libpkgconf_la_LDFLAGS = -no-undefined -version-info 7:0:0 -export-symbols-regex '^pkgconf_'
dist_man_MANS = \
man/bomtool.1 \
man/pkgconf.1 \
man/pkg.m4.7 \
man/pc.5 \
man/pkgconf-personality.5
pkgconf_LDADD = libpkgconf.la
pkgconf_SOURCES = \
cli/main.c \
cli/core.c \
cli/getopt_long.c \
cli/renderer-msvc.c
pkgconf_CPPFLAGS = -I$(top_srcdir)/libpkgconf -I$(top_srcdir)/cli
noinst_HEADERS = \
cli/core.h \
cli/getopt_long.h \
cli/renderer-msvc.h \
cli/spdxtool/core.h \
cli/spdxtool/serialize.h \
cli/spdxtool/simplelicensing.h \
cli/spdxtool/software.h \
cli/spdxtool/util.h
bomtool_LDADD = libpkgconf.la
bomtool_SOURCES = \
cli/bomtool/main.c \
cli/getopt_long.c
bomtool_CPPFLAGS = -I$(top_srcdir)/libpkgconf -I$(top_srcdir)/cli -I$(top_srcdir)/cli/bomtool
spdxtool_LDADD = libpkgconf.la
spdxtool_SOURCES = \
cli/spdxtool/main.c \
cli/spdxtool/core.c \
cli/spdxtool/software.c \
cli/spdxtool/serialize.c \
cli/spdxtool/simplelicensing.c \
cli/spdxtool/util.c \
cli/getopt_long.c
spdxtool_CPPFLAGS = -I$(top_srcdir)/libpkgconf -I$(top_srcdir)/cli -I$(top_srcdir)/cli/spdxtool
noinst_PROGRAMS = test-runner
test_runner_LDADD = libpkgconf.la
test_runner_SOURCES = \
cli/core.c \
cli/getopt_long.c \
cli/renderer-msvc.c \
tests/test-runner.c
dist_doc_DATA = README.md AUTHORS
m4datadir = $(datadir)/aclocal
m4data_DATA = pkg.m4
CLEANFILES = $(EXTRA_PROGRAMS) \
$(check_SCRIPTS)
check: pkgconf test-runner $(check_SCRIPTS)
$(builddir)/test-runner$(EXEEXT) --test-fixtures=$(top_srcdir)/tests $(top_srcdir)/t/basic
$(builddir)/test-runner$(EXEEXT) --test-fixtures=$(top_srcdir)/tests $(top_srcdir)/t/ordering
$(builddir)/test-runner$(EXEEXT) --test-fixtures=$(top_srcdir)/tests $(top_srcdir)/t/parser
$(builddir)/test-runner$(EXEEXT) --test-fixtures=$(top_srcdir)/tests $(top_srcdir)/t/solver
$(builddir)/test-runner$(EXEEXT) --test-fixtures=$(top_srcdir)/tests $(top_srcdir)/t/sbom
$(builddir)/test-runner$(EXEEXT) --test-fixtures=$(top_srcdir)/tests $(top_srcdir)/t/sysroot
$(builddir)/test-runner$(EXEEXT) --test-fixtures=$(top_srcdir)/tests $(top_srcdir)/t/tuple
kyua --config=none test --kyuafile='$(top_builddir)/Kyuafile' \
--build-root='$(top_builddir)'
.sh:
install -m 755 $< $@