From 64ff8b031fe99c67888ba042251eeb4ea7d65214 Mon Sep 17 00:00:00 2001 From: Kai Pastor Date: Tue, 2 Jul 2024 20:14:05 +0200 Subject: [PATCH] Test version expressions 'mod >=n' --- tests/regress.sh | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/regress.sh b/tests/regress.sh index bda3297..fa36849 100755 --- a/tests/regress.sh +++ b/tests/regress.sh @@ -30,6 +30,8 @@ tests_init \ modversion_one_word_expression \ modversion_two_word_expression \ modversion_three_word_expression \ + modversion_one_word_expression_no_space \ + modversion_one_word_expression_no_space_zero \ pcpath \ virtual_variable \ fragment_collision \ @@ -322,3 +324,15 @@ modversion_three_word_expression_body() atf_check -o inline:"1.2.3\n" \ pkgconf --with-path="${selfdir}/lib1" --modversion foo ">" 1.0 } + +modversion_one_word_expression_no_space_body() +{ + atf_check -o inline:"1.2.3\n" \ + pkgconf --with-path="${selfdir}/lib1" --modversion "foo >1.0" +} + +modversion_one_word_expression_no_space_zero_body() +{ + atf_check -o inline:"1.2.3\n" \ + pkgconf --with-path="${selfdir}/lib1" --modversion "foo >0.5" +}