Commit Graph

234 Commits (9aaff5148c9926ed12ac7eda657b505d3a258db2)

Author SHA1 Message Date
Ariadne Conill d351e6ae59 Revert "tests: remove some no longer relevant bitrot in the test environment file"
This reverts commit 107ad34f8f.

Breaks autoconf.
2019-07-12 08:23:36 -05:00
Ariadne Conill 061627f091 meson: bump required version to 0.47 for copy directive 2019-07-12 08:20:05 -05:00
Ariadne Conill 107ad34f8f tests: remove some no longer relevant bitrot in the test environment file 2019-07-12 08:19:19 -05:00
Ariadne Conill 3740bfb6d7 tests: add test for malformed versions generating a diagnostic with --validate 2019-07-12 06:42:08 -05:00
Ariadne Conill a91e0bf215 tests: explicitly test --print-provides with malformed versions 2019-07-12 06:37:46 -05:00
Ariadne Conill 312b4e51a9 tests: add test for malformed version handling 2019-07-12 06:22:41 -05:00
Ariadne Conill 3783d65784 tests: add malformed-version fixture 2019-07-12 06:15:35 -05:00
William Pitcock 9315ee9ee6 tests: add orphaned-requires-private test 2019-01-14 14:07:19 -06:00
William Pitcock 737e326ae1 tests: add orphaned requires.private testcase 2019-01-14 14:04:50 -06:00
William Pitcock 47284486df regress: add test for empty tuple buffer overflow issue 2018-07-28 19:45:57 -05:00
William Pitcock 8f6e071d58 tests: add test fixture for bogus .pc files 2018-06-16 16:35:19 -05:00
William Pitcock ae7faf73fd tests: add testcase for tuple dequoting bug (legacy github bug #186) 2018-06-14 16:11:21 -05:00
William Pitcock 854a6adfe9 tests: add tuple-quoting fixture 2018-06-14 15:31:00 -05:00
Leorize f36ccc1d91 libpkgconf: add support for Haiku
client: use BELIBRARIES

On Haiku, BELIBRARIES is the equivalent to LIBRARY_PATH on many other
systems, while LIBRARY_PATH is instead the LD_LIBRARY_PATH of Haiku.

pkg: bootstrap package search paths with Haiku's find_paths

This commit adds build_default_pkgconfig_path. The function appends
to the list given the default pkgconfig paths, and will supersede
get_default_pkgconfig_path
2018-04-05 10:02:54 -05:00
William Pitcock 3f753fa3dd libpkgconf: dependency: preference uncoloured nodes in event of a dependency collision 2018-03-18 19:03:18 -05:00
William Pitcock 9a53290d8a tests: add new test fixtures for Requires.internal 2018-03-18 18:00:04 -05:00
William Pitcock f03ec3ff90 libpkgconf: add support for proposed Requires.internal extension 2018-03-18 15:46:53 -05:00
William Pitcock d4bb96b7f1 tests: add regression test for #172, closes #172 2018-02-08 14:31:28 -06:00
William Pitcock 1eb866efb2 tests: parser: late-breaking testsuite changes for quoting changes 2018-01-22 15:35:54 -06:00
William Pitcock d1618ece3a msvc: add support for converting cflags too 2018-01-05 18:05:47 -06:00
William Pitcock 7cce958d78 msvc: handle quoting correctly for cmd.exe 2018-01-05 11:31:43 -06:00
William Pitcock cf96c562e1 libpkgconf: argvsplit: fix escape handling in tokenizer (closes #163) 2017-12-14 22:41:14 -06:00
William Pitcock 6073a49229 tests: add testcases for #163 2017-12-14 22:13:19 -06:00
William Pitcock 278a2bd667 libpkgconf: fragment: rework quoting and lexing (closes #139, #153)
we now use POSIX-style quoting for all fragments.  it is our belief that this is the
most optimal behaviour for portability, because all POSIX-compliant tools require
single-quotes to be considered as literal (closes #153).

because of this, we are able to remove some hacks on the lexer side which were there
to simulate pkg-config quoting, but were basically utterly wrong (closes #139).
2017-12-11 18:25:55 -06:00
William Pitcock 7b1fac4c99 tests: remove fragment-quoting-4 and fragment-quoting-6 tests as they are not relevant anymore 2017-12-11 17:41:08 -06:00
Baptiste Daroussin 4e50938e78 tests: add a test case for #146 2017-10-11 17:05:23 +02:00
William Pitcock 95b68f7c02 tests: add testcase for #140 2017-09-23 00:08:12 -05:00
William Pitcock 72cf871421 tests: regress: add malformed quoting test 2017-09-19 21:35:18 -05:00
William Pitcock 95b4930aac tests: add test for github #123 2017-07-16 17:33:42 -05:00
William Pitcock 38cda5e584 autotools: replace PKGCONFIGDIR with PKG_DEFAULT_PATH 2017-06-24 12:45:44 -05:00
William Pitcock 3ae11b1b4d meson: add kyua integration for testsuite for now 2017-06-24 12:40:33 -05:00
Dan Kegel 0ba391bc6f Miscelaneous tweaks for Visual C in Cygwin compatibility 2017-06-05 17:41:13 -07:00
William Pitcock 4a508b4fd9 tests: regress: add regression test for malformed package testcase 2017-05-19 23:43:47 -05:00
William Pitcock 0262b8251d libpkgconf: pkgconf_pkg_find(): correctly handle failure from pkgconf_pkg_new_from_file() 2017-05-19 23:33:49 -05:00
William Pitcock ce47fa8d89 tests: add reduced version of freebsd gtk+-3.0 crappy output situation as a testcase 2017-05-05 01:40:09 -05:00
William Pitcock 77ca17b6ff tests: back out go-style test, just verify the output because shells are terrible 2017-03-29 18:00:10 -05:00
William Pitcock f5ce5fd755 testsuite: add a parser test from Go (redhat #1437101) 2017-03-29 16:58:04 -05:00
William Pitcock 6fcb5ba5c0 testsuite: update test with PKG_CONFIG_MAXIMUM_TRAVERSE_DEPTH=1 env var 2017-03-27 01:03:24 -05:00
William Pitcock 9d05871d32 testsuite: check to see if --print-requires incorrectly invokes the dependency resolver 2017-03-24 00:13:14 -05:00
William Pitcock 3744a84380 testsuite: parser testcase output changes a little because we escape when running as pkgconf CLI now 2017-02-25 15:33:41 -06:00
William Pitcock a3fa9732b3 testsuite: add testsuite cases for inverse quoting situations 2017-02-25 13:57:38 -06:00
William Pitcock d558e30ab3 libpkgconf: argvsplit: quoting logic was simplified too much 2017-02-07 10:25:38 -06:00
William Pitcock 2dcd749601 main: remove whitespace added for compatibility with older pkg-config (closes #113) 2017-02-07 10:11:12 -06:00
William Pitcock 02ad6d1ab9 testsuite: add regression test for #111 2017-02-03 12:58:11 -06:00
William Pitcock 8b043a10ce testsuite: add tests for variable whitespace 2017-01-26 12:55:48 -06:00
William Pitcock 987cf94a7f tests: add a regression test for #108 2017-01-22 23:21:51 -06:00
William Pitcock 7237b811e7 add support for making paths relocatable (closes #103) 2017-01-20 00:58:48 -06:00
William Pitcock 6c2bc94cc3 tests: regress: fix --keep-system-libs test, seems to have been broken for some years 2017-01-18 20:33:18 -06:00
William Pitcock d7bf55a194 main: add --with-path CLI option (closes #104) 2017-01-18 11:36:52 -06:00
William Pitcock 4ba414f74a fragment: handle oddball fragments like -framework more accurately 2017-01-07 15:04:34 -06:00
William Pitcock 52b58ce5f5 tests: regress: add another test case for -idirafter ordering (noticed on pkg-config bugzilla) 2016-12-30 20:25:02 -06:00
William Pitcock e6df379f32 tests: add a test for --static ordering bug reported to freedesktop pkg-config that was actually in pkgconf
This was fixed a long time ago, but for completeness sake.

(https://bugs.freedesktop.org/show_bug.cgi?id=85085)
2016-12-30 19:44:50 -06:00
William Pitcock 951a844c94 tests: add tests for the fragment mergeback changes 2016-12-30 12:45:29 -06:00
William Pitcock ad1e414dee libpkgconf: fragment: handle -idirafter in the same way as -isystem
(https://bugs.freedesktop.org/show_bug.cgi?id=97337)
2016-12-30 02:47:42 -06:00
William Pitcock 082fd4af24 testsuite: add a test for --pure (closes #83) 2016-11-15 23:03:50 -06:00
William Pitcock cbd14e9118 testsuite: delete legacy testsuite 2016-11-04 23:31:02 -05:00
William Pitcock 63a61b7c9f testsuite: regress: really add the last few tests this time 2016-11-04 23:30:21 -05:00
William Pitcock 20f4a7fcc7 testsuite: parser: add remaining test cases 2016-11-04 23:14:22 -05:00
William Pitcock 8075de1416 testsuite: regress: add the remaining tests that were in the old testsuite 2016-11-04 23:07:18 -05:00
William Pitcock 0ea956e300 testsuite: use uname -s instead of uname -o for system name 2016-11-04 22:44:00 -05:00
William Pitcock 0764d8af51 Merge branch 'master' into kyua 2016-11-04 22:36:40 -05:00
William Pitcock febf476a91 configure: kill --enable-strict-mode, entirely pointless 2016-11-04 22:35:55 -05:00
William Pitcock 64c07aa90f Merge branch 'master' into kyua 2016-10-27 21:51:09 -05:00
William Pitcock 9a89bd051d testsuite: add a test for #99 2016-10-25 14:03:25 -05:00
Baptiste Daroussin 5c2bee67f7 Add Kyua tests 2016-09-18 23:29:30 +02:00
William Pitcock 0b62a8cd38 tests: fix up Kyuafile files 2016-09-10 02:08:14 -05:00
William Pitcock 072293c886 tests: add some very rudementary kyua integration (#96) 2016-09-10 02:06:33 -05:00
William Pitcock b900e04628 pkg: add support for PKGCONF_CMP_NOT_EQUAL Provides rules, completing support of Provides rules (closes #95) 2016-09-10 01:51:19 -05:00
William Pitcock c81f72bf3c tests: provides: provide a PKG_CMP_NOT_EQUAL dependency node 2016-09-09 14:45:33 -05:00
William Pitcock 4fcda862a4 pkg: make fuzzy Provides matching for PKG_CMP_NOT_EQUAL ops more correct 2016-09-09 14:34:38 -05:00
William Pitcock 892a03cd8c pkg: fill in a lot of the fuzzy matching stuff (but some of it may be wrong, needs to be looked at) 2016-09-09 01:04:26 -05:00
William Pitcock 7c0264ac7a pkg: implement rudementary support for fuzzy Provides matches 2016-09-09 00:17:46 -05:00
William Pitcock ef545a017e tests: oops, it's --no-provides not --skip-provides 2016-09-08 22:22:59 -05:00
William Pitcock 47c5c5653c main: add --skip-provides to provide broken fd.o pkg-config behaviour (#95) 2016-09-08 22:21:12 -05:00
William Pitcock d304d9cb2e pkg: add support for 'simple' Provides rule entries (#95) 2016-09-08 22:10:24 -05:00
William Pitcock 21c7355ca8 testsuite: improve --print-provides test by adding a provides.pc file 2016-08-26 21:36:18 -05:00
William Pitcock 834e21d37e testsuite: add tests for normal fragments and whitespace munging, too (closes #94) 2016-08-24 19:00:10 -05:00
William Pitcock 0a592689b6 testsuite: add a testcase for -isystem munging (#94) 2016-08-24 18:12:26 -05:00
William Pitcock 226f8616de tests: add a test for --print-provides (#95) 2016-08-24 11:21:40 -05:00
William Pitcock 58d0136990 testsuite: add a couple of other cornercases identified by looking at openbsd pkg-config changes 2016-05-28 03:42:41 -05:00
William Pitcock 97e1ffe7b3 testsuite: add a test for comma as package separator (some openbsd pkg-config versions did not support this) 2016-05-28 03:35:11 -05:00
William Pitcock 25b730fbf6 testsuite: add a test for explicit depgraph breakage 2016-05-19 17:37:27 -05:00
William Pitcock d2860af277 tests: change fragment tests to match pkg-config even though it's suboptimal 2016-05-19 17:04:47 -05:00
William Pitcock c6676e9de4 testsuite: add a test for #87 2016-05-19 16:47:11 -05:00
Baptiste Daroussin 32bd6bd700 Add a regression tests about define-variable 2015-12-07 23:36:45 +01:00
Alon Bar-Lev 9cb8f261c4 tests: cleanup: support abs_srcdir with spaces
although there is a problem in pkgconf as well.

Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
2015-11-01 18:48:22 +02:00
Alon Bar-Lev 9207efcbed tests: cleanup: remove bashism
Signed-off-by: Alon Bar-Lev <alon.barlev@gmail.com>
2015-11-01 18:31:52 +02:00
William Pitcock abbd6b06d4 Revert "Merge pull request #81 from dankegel/quotefest"
This reverts commit 42551f6364, reversing
changes made to 938bb9e694.
2015-09-27 16:10:33 -05:00
Dan Kegel d0bbc686bf Add tests for libraries quoted with double quotes, make them pass 2015-09-10 16:49:52 -07:00
Dan Kegel b88808f708 Test escaped space in a library name 2015-09-10 16:36:07 -07:00
Baptiste Daroussin a872213632 Fix running tests out of tree. from now make distcheck is usable 2015-09-03 11:18:36 +02:00
William Pitcock f99d2e8832 testsuite: use @PACKAGE_VERSION@ for pkg-config module checks 2015-09-03 03:30:43 -05:00
William Pitcock d67a04011f testsuite: use /test as an explicit prefix on all tests 2015-07-20 03:10:27 -05:00
Baptiste Daroussin 72c6e9237b Ensure -I is never merged back as well 2015-07-19 23:00:35 +02:00
Baptiste Daroussin 5a8dadafc6 Ensure -L is never merged back 2015-07-19 22:49:36 +02:00
William Pitcock fa665a40a5 tests: correct private-libs-duplication order 2015-05-21 22:17:55 -05:00
William Pitcock face849e5f tests: fix validation on private-libs-duplication test 2015-05-21 22:14:08 -05:00
William Pitcock b26374a5ad tests: add an additional test for more complicated --static relationships 2015-05-21 22:03:02 -05:00
Baptiste Daroussin 1dc28ba666 testsuite: regression test for parsing comments
Add a test case about a regression that happened when parsing comments
(bug #75)
2015-04-23 22:01:00 +02:00
William Pitcock 1c1c7fcd8e testsuite: fix comments in fields testcase 2015-04-20 09:23:13 -05:00