check: Test pkg-config version

Test that --version prints the current version and
--atleast-pkgconfig-version validates it.
This commit is contained in:
Dan Nicholson 2012-10-01 12:34:11 -07:00
parent aba2c047cf
commit 42f30aee2e
3 changed files with 13 additions and 0 deletions

View file

@ -3,6 +3,10 @@
set -e
. ${srcdir}/common
# --version
RESULT=$PACKAGE_VERSION
run_test --version
# --modversion
RESULT=1.0.0
run_test --modversion simple

View file

@ -4,6 +4,14 @@ set -e
. ${srcdir}/common
# --atleast-pkgconfig-version
RESULT=""
run_test --atleast-pkgconfig-version=$PACKAGE_VERSION
EXPECT_RETURN=1
RESULT=""
run_test --atleast-pkgconfig-version=999
v1=0.9.9
v2=1.0.0
v3=1.0.1

View file

@ -12,3 +12,4 @@ pc_path="@pc_path@"
system_include_path="@system_include_path@"
system_library_path="@system_library_path@"
list_indirect_deps=@use_indirect_deps@
PACKAGE_VERSION=@PACKAGE_VERSION@