Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Add a test that shows the failure that we are seeing with `make packages`.
Brad Davis committed 7 years ago
commit 12c5f558069a7f722cc8dc415ef510686b352494
parent 6661d96
1 file changed +15 -1
modified tests/frontend/create.sh
@@ -16,7 +16,8 @@ tests_init \
	create_from_manifest_and_plist \
	create_from_plist_pkg_descr \
	create_from_plist_hash \
-
	create_from_plist_with_keyword_and_message
+
	create_from_plist_with_keyword_and_message \
+
	create_with_hardlink

genmanifest() {
	cat << EOF >> +MANIFEST
@@ -53,6 +54,19 @@ basic_validation() {
	xz -t test-1.txz || atf_fail "XZ integrity check failed"
}

+
create_with_hardlink_body() {
+
	atf_check -s exit:0 ${RESOURCEDIR}/test_subr.sh new_pkg "test" "test" "1.0"
+
	echo "blah" >> foo
+
	ln foo bar
+
	echo "@(root,wheel,0555,) /foo" >> test.plist
+
	echo "@config(root,wheel,0644,) /bar" >> test.plist
+

+
	atf_check \
+
		-o ignore \
+
		-e ignore \
+
		pkg create -M test.ucl -p test.plist -r .
+
}
+

create_from_plist_body() {
	touch file1
	genmanifest