tests: add tests for --uninstalled option
parent
65d4b88dbc
commit
f70555e7ab
|
@ -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
|
|
@ -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" \
|
||||
|
|
Loading…
Reference in New Issue