From 125af82dbe93eddadb7ec10eebac5087e9fbc451 Mon Sep 17 00:00:00 2001 From: Kai Pastor Date: Fri, 1 Dec 2023 21:20:39 +0100 Subject: [PATCH] Test --modversion with constraint --- tests/regress.sh | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/tests/regress.sh b/tests/regress.sh index 0c81415..bda3297 100755 --- a/tests/regress.sh +++ b/tests/regress.sh @@ -27,6 +27,9 @@ tests_init \ modversion_fullpath \ modversion_provides \ modversion_uninstalled \ + modversion_one_word_expression \ + modversion_two_word_expression \ + modversion_three_word_expression \ pcpath \ virtual_variable \ fragment_collision \ @@ -301,3 +304,21 @@ modversion_uninstalled_body() atf_check -o inline:"1.2.3\n" \ pkgconf --with-path="${selfdir}/lib1" --modversion omg } + +modversion_one_word_expression_body() +{ + atf_check -o inline:"1.2.3\n" \ + pkgconf --with-path="${selfdir}/lib1" --modversion "foo > 1.0" +} + +modversion_two_word_expression_body() +{ + atf_check -o inline:"1.2.3\n" \ + pkgconf --with-path="${selfdir}/lib1" --modversion foo "> 1.0" +} + +modversion_three_word_expression_body() +{ + atf_check -o inline:"1.2.3\n" \ + pkgconf --with-path="${selfdir}/lib1" --modversion foo ">" 1.0 +}