Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Use the new_pkg function to create packages
Brad Davis committed 8 years ago
commit f062f71d4b925611212cc399c7d4a4896fdb6eac
parent 945a949
1 file changed +4 -37
modified tests/frontend/repo.sh
@@ -9,20 +9,8 @@ tests_init \
repo_body() {
	touch plop
	touch bla
-
	cat > test.ucl << EOF
-
name: "test"
-
origin: "osef"
-
version: "1"
-
arch: "freebsd:*"
-
maintainer: "test"
-
www: "unknown"
-
prefix: "${TMPDIR}"
-
comment: "need none"
-
desc: "here as well"
-
options: {
-
	"OPT1": "on"
-
	"OPT2": "off"
-
}
+
	new_pkg test test 1 "${TMPDIR}"
+
	cat >> test.ucl << EOF
files: {
	"${TMPDIR}/plop": ""
	"${TMPDIR}/bla": ""
@@ -71,29 +59,8 @@ EOF
}

repo_multiversion_body() {
-
	cat > test.ucl << EOF
-
name: "test"
-
origin: "osef"
-
version: "1.0"
-
arch: "freebsd:*"
-
maintainer: "test"
-
www: "unknown"
-
prefix: "${TMPDIR}"
-
comment: "need one"
-
desc: "here as well"
-
EOF
-

-
	cat > test1.ucl << EOF
-
name: "test"
-
origin: "osef"
-
version: "1.1"
-
arch: "freebsd:*"
-
maintainer: "test"
-
www: "unknown"
-
prefix: "${TMPDIR}"
-
comment: "need one"
-
desc: "here as well"
-
EOF
+
	new_pkg test test 1.0 "${TMPDIR}"
+
	new_pkg test1 test 1.1 "${TMPDIR}"
	for i in test test1; do
		atf_check pkg create -M $i.ucl
	done