From f70555e7abdb21eb9de26820af145428d99ff5bb Mon Sep 17 00:00:00 2001 From: William Pitcock Date: Sat, 5 May 2012 23:09:34 -0500 Subject: [PATCH] tests: add tests for --uninstalled option --- tests/lib1/omg-uninstalled.pc | 10 ++++++++++ tests/run.sh | 4 ++++ 2 files changed, 14 insertions(+) create mode 100644 tests/lib1/omg-uninstalled.pc diff --git a/tests/lib1/omg-uninstalled.pc b/tests/lib1/omg-uninstalled.pc new file mode 100644 index 0000000..ad42720 --- /dev/null +++ b/tests/lib1/omg-uninstalled.pc @@ -0,0 +1,10 @@ +prefix=/usr +exec_prefix=${prefix} +libdir=${prefix}/lib +includedir=${prefix}/include + +Name: omg +Description: A testing pkg-config file +Version: 1.2.3 +Libs: -L${libdir} -lomg +Cflags: -fPIC -I${includedir}/omg diff --git a/tests/run.sh b/tests/run.sh index 7d48f76..9775488 100644 --- a/tests/run.sh +++ b/tests/run.sh @@ -49,6 +49,10 @@ run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --exists 'foo > 1.2.3'; echo \$?" '1' run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --exists 'foo' '>' '1.2'; echo \$?" \ '0' +run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --uninstalled 'foo'; echo \$?" \ + '1' +run_test "PKG_CONFIG_PATH=${selfdir}/lib1 ${1} --uninstalled 'omg'; echo \$?" \ + '0' # 2) tests for PKG_CONFIG_PATH order run_test "PKG_CONFIG_PATH=${selfdir}/lib1:${selfdir}/lib2 ${1} --libs foo" \