Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
tests: frontend: add some version tests for special prefixes
Kyle Evans committed 5 years ago
commit 894a07a8e54034f81d6d20e068fa3d26202d0489
parent 3261895
1 file changed +6 -0
modified tests/frontend/version.sh
@@ -11,6 +11,12 @@ version_body() {
	atf_check -o inline:">\n" -s exit:0 pkg version -t 2 1
	atf_check -o inline:"=\n" -s exit:0 pkg version -t 2 2
	atf_check -o inline:"<\n" -s exit:0 pkg version -t 2 1,1
+
	# Special prefixes
+
	atf_check -o inline:"<\n" -s exit:0 pkg version -t 1.pl1 1.alpha1
+
	atf_check -o inline:"<\n" -s exit:0 pkg version -t 1.alpha1 1.beta1
+
	atf_check -o inline:"<\n" -s exit:0 pkg version -t 1.beta1 1.pre1
+
	atf_check -o inline:"<\n" -s exit:0 pkg version -t 1.pre1 1.rc1
+
	atf_check -o inline:"<\n" -s exit:0 pkg version -t 1.rc1 1
}

compare_body() {