Test --modversion with constraint

master
Kai Pastor 2023-12-01 21:20:39 +01:00 committed by Ariadne Conill
parent 08f4a9da15
commit 125af82dbe
1 changed files with 21 additions and 0 deletions

View File

@ -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
}