summaryrefslogtreecommitdiff
path: root/check/check-cmd-options
AgeCommit message (Collapse)AuthorFilesLines
2012-10-03check: Ensure unknown options failDan Nicholson1-0/+5
2012-09-29check: Pass args to test function instead of setting in variableDan Nicholson1-8/+4
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-08-19Handle POSIX shell for tests in configure and MakefileDan Nicholson1-5/+0
Although the trick of finding a POSIX shell in the system PATH works fine most of the time, it has some drawbacks. * The commands must be copied into every test script. * The scripts are always forced to re-execute themselves. * There's no guarantee the sh found in `getconf PATH` is a POSIX shell and there's no way to override it. Move the handling of this shell to configure where we can detect it once. This gives preference to bash and ksh since they're typically POSIX compatible. It also uses the current PATH with the getconf PATH at the end which should allow things to work on platforms where getconf might not be available like mingw/msys. By specifying the shell in TESTS_ENVIRONMENT, automake will run each script with this shell and we can drop the re-exec dance.
2010-06-16Add test to exercise broken command option handlingDan Nicholson1-0/+33
The ancient bundled popt mishandles some cases of option parsing. http://lists.freedesktop.org/archives/pkg-config/2010-March/000508.html Add a test program to exercise it. This should encourage people to use an external popt until we have a better fix.