Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Add first shell test
Baptiste Daroussin committed 13 years ago
commit d5e0a33c2001a37065b6a6412891b3b43485ec37
parent de334ee
2 files changed +16 -1
modified tests/frontend/Makefile
@@ -1,4 +1,7 @@
+
TESTS=	version
all:
	@echo "nothing todo"
run:
-
	@echo "nothing todo"
+
.for test in ${TESTS}
+
	@env LD_LIBRARY_PATH=${.CURDIR}/../../libpkg PATH=${.CURDIR}/../../pkg:${PATH} atf-sh ${test}.sh ${test}
+
.endfor
added tests/frontend/version.sh
@@ -0,0 +1,12 @@
+
atf_test_case version
+
version_head() {
+
	atf_set "descr" "testing pkg version"
+
}
+

+
version_body() {
+
	atf_check -o inline:"<\n" -s exit:0 pkg version -t 1 2 0
+
}
+

+
atf_init_test_cases() {
+
	atf_add_test_case version
+
}