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