From 9e30e2a7bba4624052c207757a1c9a05f8f48d20 Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Fri, 20 Jul 2012 13:35:33 -0500 Subject: [PATCH] tests: add explicit tests for issue #24 --- tests/run.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/run.sh b/tests/run.sh index db14e04..b5a6803 100644 --- a/tests/run.sh +++ b/tests/run.sh @@ -126,6 +126,14 @@ run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --max-version 1.0 'foo '; echo \$ run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --max-version 2.0 'foo '; echo \$?" \ '0' +# 10) tests for internal getopt implementation with options at the end +run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} foo --libs" \ + '-lfoo' +run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} foo --cflags --libs" \ + '-lfoo' '-I/usr/include/foo' '-fPIC' +run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --cflags foo --libs" \ + '-lfoo' '-I/usr/include/foo' '-fPIC' + if [ ${failed} -gt 0 ]; then echo "${failed} of ${done} tests failed. See output for details." >&2 exit 1