Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Add create test for missing file.
John Hood committed 4 years ago
commit 54db538c03ce43648f4ce556e05338dab22fd9f9
parent d116cd6
1 file changed +13 -0
modified tests/frontend/create.sh
@@ -11,6 +11,7 @@ tests_init \
	create_from_plist_mini \
	create_from_plist_fflags create_from_plist_bad_fflags \
	create_from_plist_with_keyword_arguments \
+
	create_from_plist_missing_file \
	create_from_manifest_and_plist \
	create_from_manifest \
	create_from_manifest_dir \
@@ -92,6 +93,18 @@ create_from_plist_body() {
		bsdtar tvf test-1.pkg
}

+
create_from_plist_missing_file_body() {
+
	# touch file1
+
	genmanifest
+
	genplist "file1"
+

+
	atf_check \
+
		-o empty \
+
		-e match:"Unable to access file .*file1:" \
+
		-s exit:1 \
+
		pkg create -o ${TMPDIR} -m . -p test.plist -r .
+
}
+

create_from_plist_set_owner_body() {

	preparetestcredentials "(plop,,)"