mirror of
https://gitlab.freedesktop.org/pkg-config/pkg-config.git
synced 2026-05-03 14:48:01 +02:00
check: Test pkg-config version
Test that --version prints the current version and --atleast-pkgconfig-version validates it.
This commit is contained in:
parent
aba2c047cf
commit
42f30aee2e
3 changed files with 13 additions and 0 deletions
|
|
@ -3,6 +3,10 @@
|
|||
set -e
|
||||
. ${srcdir}/common
|
||||
|
||||
# --version
|
||||
RESULT=$PACKAGE_VERSION
|
||||
run_test --version
|
||||
|
||||
# --modversion
|
||||
RESULT=1.0.0
|
||||
run_test --modversion simple
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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@
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue