Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Add test cases for pkg rquery -e
Stefan Eßer committed 4 years ago
commit b58a6a62775d415a980c629440cbb3eebc8806c3
parent 732c369
1 file changed +14 -0
modified tests/frontend/repo.sh
@@ -201,7 +201,21 @@ EOF
	atf_check -o ignore \
		pkg -C ./pkg.conf update
	atf_check -o inline:"test\n" \
+
		pkg -C ./pkg.conf rquery "%n"
+
	atf_check -o inline:"test\n" \
		pkg -C ./pkg.conf rquery -a "%n"
+
	atf_check -o inline:"test\n" \
+
		pkg -C ./pkg.conf rquery -e "%n == test" "%n"
+
	atf_check -o empty \
+
		pkg -C ./pkg.conf rquery -e "%n != test" "%n"
+
	atf_check -o inline:"test\n" \
+
		pkg -C ./pkg.conf rquery -e "%n == test" "%n" test
+
	atf_check -o empty \
+
		  -s exit:1 \
+
		pkg -C ./pkg.conf rquery -e "%n != test" "%n" test
+
	atf_check -o empty \
+
		  -s exit:1 \
+
		pkg -C ./pkg.conf rquery -e "%n == test" "%n" nottest

	rm -rf repo
	mkdir repo