diff options
author | Dan Nicholson <dbn.lists@gmail.com> | 2012-10-01 12:34:11 -0700 |
---|---|---|
committer | Dan Nicholson <dbn.lists@gmail.com> | 2012-10-02 05:51:22 -0700 |
commit | 42f30aee2e9fb1e659892918107527174ffde86b (patch) | |
tree | 106e13b596c926b0037b9c2f86a0b3d1eabdcad7 /check | |
parent | aba2c047cf3b01b3397c666c8bf3640e45bec33b (diff) | |
download | pkg-config-42f30aee2e9fb1e659892918107527174ffde86b.tar.gz |
check: Test pkg-config version
Test that --version prints the current version and
--atleast-pkgconfig-version validates it.
Diffstat (limited to 'check')
-rwxr-xr-x | check/check-print-options | 4 | ||||
-rwxr-xr-x | check/check-version | 8 | ||||
-rw-r--r-- | check/config.sh.in | 1 |
3 files changed, 13 insertions, 0 deletions
diff --git a/check/check-print-options b/check/check-print-options index 084be21..ab02b05 100755 --- a/check/check-print-options +++ b/check/check-print-options @@ -3,6 +3,10 @@ set -e . ${srcdir}/common +# --version +RESULT=$PACKAGE_VERSION +run_test --version + # --modversion RESULT=1.0.0 run_test --modversion simple diff --git a/check/check-version b/check/check-version index 6e0a766..f777ffc 100755 --- a/check/check-version +++ b/check/check-version @@ -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 diff --git a/check/config.sh.in b/check/config.sh.in index 5663ead..91f20a2 100644 --- a/check/config.sh.in +++ b/check/config.sh.in @@ -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@ |