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
William Pitcock
b700a6cde6
add testcase for comments in fields (grr, nettle)
2015-04-20 09:19:33 -05:00
Baptiste Daroussin
ff6c9c963a
Add a test for multiline descriptions
...
Found in tracker-sparql project
2015-02-02 17:29:39 +01:00
William Pitcock
025fc09222
main: --libs-only-foo and --cflags-only-foo behaviour should be inclusive, not exclusive.
...
Pointed out and initial patch by: Dan Kegel <dank@kegel.com>
2014-09-13 22:37:00 -05:00
Jean-Sébastien Pédron
bff5f15d0a
Support .pc file without a trailing newline
...
Some editors write text files without a newline character at the end of
the last line.
Before this change, the main loop in pkg_new_from_file() expected a
newline character at the end of the line and overwrote it with a NUL
character. In the case of the last line in a non-newline-terminated
file, this ate the last character of that line.
Now, the pkg_fgetline() function takes care of returning a line without
the newline character (or the "\r\n" sequence in case of a DOS file
format).
2014-08-02 14:07:25 +02:00
William Pitcock
12ff14f856
fragments: handle sysroot dir munging directly in a smarter way
...
Previously we just let the tuple system handle it, but pkg-config modules which do not define
variables were able to get by the checks. While here, check to ensure we do not duplicate the
sysroot dir twice if it is already defined in the pkg-config module file.
Downstream bug: https://bugs.busybox.net/show_bug.cgi?id=5750
2014-07-09 01:23:51 -05:00
William Pitcock
c80229c646
tests: add test for #67
2014-07-01 23:30:59 -05:00
William Pitcock
8cf58d7ceb
tests: add test for variable case-sensitivity (ref #60 )
2014-02-10 23:50:45 +00:00
William Pitcock
cd6d52b965
testsuite: fix erroneous test to match bugfix
2013-12-27 11:47:40 +00:00
Dan Kegel
49ad1cd8f1
Add test for multiple frameworks (ref #56 )
2013-12-27 11:20:41 +00:00
William Pitcock
2ae72283fc
Merge pull request #53 from tonytheodore/keep-system-libs
...
Test failure with default prefix and parsing of keep-system-* args
2013-08-24 11:17:15 -07:00
Tony Theodore
bc661124da
fix keep-system-* arg parsing and test with default prefix
2013-08-24 15:19:41 +10:00
Tony Theodore
dd975df1cb
Add test for multiple dependencies on base package
2013-08-24 13:58:41 +10:00
William Pitcock
9d960fb9d4
fragment: use forward-merge for static linking ( closes #51 )
2013-08-23 03:44:33 +00:00
William Pitcock
2a638d4f32
Add test for Libs.private deduplication (issue #51 ).
2013-08-23 02:41:59 +00:00
Tony Theodore
1c658f0383
add Cflags.private fragment
2013-08-14 15:36:43 +10:00
William Pitcock
6db657c5ec
testsuite: fix testsuite typos
2013-04-09 07:39:27 -05:00
Baptiste Daroussin
1d0f990afa
Add a test case showing a regression where PKG_CONFIG_PATH is ignored
2013-03-20 14:51:15 +01:00
Baptiste Daroussin
1178ab257d
Add a test case about a regression
2013-03-17 23:15:33 +01:00
William Pitcock
994f1eb769
tests: fix last test
2013-03-15 20:18:45 -05:00
Baptiste Daroussin
ce1fd58aa6
Add a test case for pkgconf --exists --print-errors "mjpegtools > 1.6.0 mjpegtools < 1.8.0"
2013-03-16 02:11:30 +01:00
William Pitcock
1554c3577f
pkg: rework PKG_CONFIG_PATH handling code.
...
As a side effect, the dependency resolver now understands that it should
check in the parent directory as well for dependencies if given a literal
path to a .pc file. (pkg-config 0.28 does not do this, it should.)
2013-03-15 18:11:43 -05:00
William Pitcock
4381d4609b
tests: fix multi-recursion -framework test (ref #47 )
2013-03-15 17:27:22 -05:00
William Pitcock
7ecf1e278d
tests: add tests for bug #47
2013-03-15 17:12:06 -05:00
William Pitcock
c04a64352f
cache: handle pkg being NULL on pkg_cache_add()/pkg_cache_remove()
2013-03-15 16:50:30 -05:00
William Pitcock
fd9f511afa
testsuite: add --exists test for nonexistant package
2013-02-25 08:50:11 -06:00
William Pitcock
a40c5bd59e
testsuite: check that unrecognized options fail
2013-02-24 09:08:06 -06:00
William Pitcock
bea204fa63
testsuite: add additional tests for PKG_CONFIG_SYSROOT_DIR
2013-02-24 08:57:53 -06:00
William Pitcock
14f3e1edd2
pkg: implement a cache for packages and use it to break circular dependencies
2013-02-24 08:14:23 -06:00
William Pitcock
d4cef5cad5
testsuite: update for pkg-config version 0.28 compatibility
2013-02-24 08:13:19 -06:00
William Pitcock
9dc3cbc784
testsuite: add a test for tilde quoting
2013-02-24 07:04:15 -06:00
William Pitcock
2936927008
testsuite: add test for static archives in Libs:
2013-02-24 06:58:51 -06:00
William Pitcock
b1949e7706
testsuite: add tests for circular dependencies
2013-02-24 06:42:03 -06:00
William Pitcock
beda1fffdd
testsuite: add pkg-config files creating an intentional circular dependency
2013-02-24 06:29:53 -06:00
William Pitcock
73b443b883
tests: add prefix-resistant SYSROOT_DIR variable which uses a sentinel mingw won't mess with
2012-09-14 16:04:20 -05:00
William Pitcock
fa0b2f9fc2
tests: quote safety
2012-09-14 15:56:45 -05:00
William Pitcock
1f373a2654
tests: check for Msys and use Windows-style path seperators for PKG_CONFIG_PATH.
2012-09-14 15:50:27 -05:00
William Pitcock
7fe15d1faf
tests: hack the directory name with sed to normalize prefix handling on mingw/cygwin.
2012-09-14 15:44:26 -05:00
William Pitcock
87d2ec5550
tests: simplify test 17 to remove $(SYSTEM_LIBDIR) fluff
2012-09-14 15:35:18 -05:00
William Pitcock
0d18735e3f
tests: add test for no packages being supplied to the frontend
2012-09-14 15:02:08 -05:00
William Pitcock
7c13f22a9b
tests: add tests for pkgconf issue #40
2012-09-05 07:00:15 -05:00
William Pitcock
749a604c70
tests: add test for freedesktop.org bug 54271
2012-09-02 17:46:00 -05:00
William Pitcock
b2f4583db2
Merge pull request #38 from bdrewery/add-test-case-for-local-file
...
Add test case for pkgconf against file in CWD
2012-08-25 20:06:31 -07:00
Bryan Drewery
747faf3732
Add test case for pkgconf against file in CWD
2012-08-25 19:43:35 -05:00
Bryan Drewery
509f5edb31
Fix tests when SHELL=bash
...
The QUOTED test was failing to properly recognize
the expected output.
2012-08-25 18:43:44 -05:00
Baptiste Daroussin
4eedb041ed
if no cflags or libs are defined in .pc just return 0 and output nothing
2012-08-20 22:47:10 +02:00
Baptiste Daroussin
ab48da3f33
Keep the backslash when parsing arguments ( fixes #35 )
2012-08-14 11:12:01 +02:00
Baptiste Daroussin
9a26337507
return 1 and do not output anything a requirement is missing
2012-08-12 12:33:37 +02:00
William Pitcock
c80b088711
tests: add tests for issue #34
2012-08-09 17:16:17 -05:00
William Pitcock
ec229b7cab
tests: pkg-config treats tilde in reverse of how we got it in 0.8.4.
2012-07-30 05:03:55 -05:00