Commit Graph

184 Commits (b218cae5a9a3bc80a04870de279ae51e3c37e166)

Author SHA1 Message Date
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
William Pitcock 004adad048 pkg: improve conflicts handling 2012-07-30 03:16:29 -05:00
William Pitcock dde296193f tests: add test for multiline crasher 2012-07-30 01:32:55 -05:00
William Pitcock 31b9a53155 tests: remove bashism (noticed on freebsd pointyhat log) 2012-07-25 17:56:10 -05:00
William Pitcock a15d5eefeb tests: quiet successful tests 2012-07-25 17:47:09 -05:00
William Pitcock 197cb9b93f tests: add tests for cflags/libs-only ordering flags 2012-07-25 17:23:21 -05:00
William Pitcock c544e9e052 tests: add test for argv-parse splitting issue with filenames 2012-07-25 17:07:34 -05:00
William Pitcock f522f55e12 tests: add test for blank package arguments 2012-07-25 10:18:09 -05:00
William Pitcock 5f168493c5 tests: add tests for dpkg-style tilde version comparison rules 2012-07-23 20:53:20 -05:00
William Pitcock 4d8f2b030f tests: add tests for $(pcfiledir) 2012-07-21 14:44:38 -05:00
William Pitcock 475719ec3a pkg: we already behave like pkg-config 0.27 anyway 2012-07-21 14:24:26 -05:00
William Pitcock 24236c76c1 tests: add a test for malformed pkg_t entities 2012-07-20 19:55:06 -05:00
William Pitcock 6194cd3133 tests: add more tests 2012-07-20 18:08:54 -05:00
William Pitcock 3c31c01db4 tests: add tests for malformed option arguments 2012-07-20 17:18:35 -05:00
William Pitcock 61a2a6c46f tests: conditionally run optional tests if --enable-strict is not used (closes #25) 2012-07-20 16:33:48 -05:00
William Pitcock 4c82d02e99 tests: ensure all core tests are posixly-correct (issue #25) 2012-07-20 16:28:50 -05:00
William Pitcock 9e30e2a7bb tests: add explicit tests for issue #24 2012-07-20 13:36:01 -05:00
William Pitcock 15c24b6bf6 testsuite: more tests for --max-version and --exact-version (closes #20) 2012-07-01 22:03:07 -05:00
William Pitcock fc923cb97a testsuite: add tests for issue #20 behaviour 2012-07-01 21:28:38 -05:00
William Pitcock f3d2a5f0e7 testsuite: add tests for --atleast-version (issue #20) 2012-07-01 21:24:53 -05:00
William Pitcock 948e219075 tests: add tests for 'conflicts' field (issue #13) 2012-05-11 20:32:32 -05:00
William Pitcock 9885643e45 tests: add test for PKG_CONFIG_SYSROOT_DIR 2012-05-07 03:44:59 -05:00
William Pitcock 97afd424b1 tests: add tests for --define-variable (issue #7) 2012-05-06 23:30:37 -05:00
William Pitcock c0245f54a9 tests: add test for pkg-config /path/to/pc.file --flags syntax 2012-05-06 00:12:00 -05:00
William Pitcock f70555e7ab tests: add tests for --uninstalled option 2012-05-05 23:09:34 -05:00
William Pitcock 0f92df0a09 tests: add test for pkg-config builtin virtual package 2012-05-05 21:59:24 -05:00
William Pitcock 4692277660 tests: add quoting-regression test 2012-05-05 21:18:40 -05:00
William Pitcock 1ac3cbd4f9 tests/dos-lineendings: fix committed version 2012-05-05 20:21:16 -05:00
William Pitcock db5d98297c tests: add tests for --variable 2012-05-05 21:55:27 +00:00
William Pitcock 4e95401318 tests: add test for argv-parse bug causing audacious build failure 2012-05-05 17:43:53 +00:00
William Pitcock f1d13ef08b tests: add dos-lineendings test 2012-05-04 03:08:55 +00:00
William Pitcock a290467261 main: filter out system dirs 2012-05-03 19:44:44 +00:00
William Pitcock 5996e37703 fix test #9 output 2012-05-03 18:05:01 +00:00
Michał Górny 23e31fd702 Add tests for 'Requires' and '.private'. 2012-05-03 09:43:13 +02:00
Michał Górny 482b65f1ce Tests for PKG_CONFIG_PATH ordering. 2012-05-03 09:42:04 +02:00
Michał Górny 97b8c09365 Add minimal tests. 2012-05-03 09:41:55 +02:00