Commit graph

9 commits

Author SHA1 Message Date
Dan Nicholson
397d414a6a check: Pass args to test function instead of setting in variable
The run_test shell function was running pkg-config with arguments stored
in an environment variable. This has problems when trying to pass shell
special characters with the proper escaping. Instead, pass the arguments
to the test where they can maintain correct formatting through use of
the special variable "$@".
2012-09-29 08:50:57 -07:00
Dan Nicholson
78b419a3df Specify pkg-config to test with from make
By specifying the pkg-config to use for testing from make, we can easily
control its path and add the .exe extension for Windows. It also allows
easy testing of another pkg-config from make:

  make check TESTS_PKG_CONFIG=/usr/bin/pkg-config
2012-08-19 08:49:58 -07:00
Dan Nicholson
d11df7ffe0 Ensure test search path is confined to check directory
If only PKG_CONFIG_PATH is set when running the tests, we'll still pick
up packages from the system default path. By overriding that with
PKG_CONFIG_LIBDIR and unsetting PKG_CONFIG_PATH, the path is forced to
the check directory.
2012-05-30 05:49:14 -07:00
Tollef Fog Heen
d9077956e2 Fix up test framework to better report errors when pkg-config exits non-zero 2010-05-27 22:17:54 +02:00
Tollef Fog Heen
1bcb18ca35 Fix include path for check/common 2009-06-30 03:47:49 +02:00
Tollef Fog Heen
f37f04a78a 2009-03-30 Tollef Fog Heen <tfheen@err.no>
* check/common, check/config.sh.in, check/Makefile.am,
	configure.in: Make it possible to check for configure variables in
	the check scripts.  So far, only direct/indirect is exposed.
2009-03-30 21:50:01 +02:00
Tollef Fog Heen
34657e444f 2009-03-30 Tollef Fog Heen <tfheen@err.no>
* check/common: Run all tests in the C locale
2009-03-30 20:23:04 +02:00
Tollef Fog Heen
4070cc2339 2009-03-30 Tollef Fog Heen <tfheen@err.no>
* check/common: Add support for non-zero return codes to test
	framework.  Thanks to Loïc Minier for the idea.
2009-03-30 20:14:33 +02:00
Arch Librarian
96d4dc19c7 2005-03-29 Tollef Fog Heen <tfheen@err.no>
Author: tfheen
Date: 2005-03-29 07:09:37 GMT
2005-03-29  Tollef Fog Heen  <tfheen@err.no>

        * check/check-cflags, check/check-define-variable,
        check/check-libs, check/common, check/Makefile.am,
        check/simple.pc:  Add simple test framework and begin writing
        tests.

        * Makefile.am, configure.in: Make in check/ as well.
2005-07-14 13:06:38 +00:00