Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Convert the autoremove tests to use the new_pkg function
Brad Davis committed 8 years ago
commit 033b84cf8451f7746722a5349fc27dd277214d05
parent 19f95ea
1 file changed +4 -24
modified tests/frontend/autoremove.sh
@@ -11,36 +11,16 @@ autoremove_prep() {
	touch file1
	touch file2

-
	cat << EOF > pkg1.ucl
-
name: test
-
origin: test
-
version: 1
-
maintainer: test
-
categories: [test]
-
comment: a test
-
www: http://test
-
prefix: /usr/local
-
desc: <<EOD
-
Yet another test
-
EOD
+
	atf_check -s exit:0 $(atf_get_srcdir)/test_subr.sh new_pkg pkg1 test 1
+
	cat << EOF >> pkg1.ucl
files: {
	${TMPDIR}/file1: "",
	${TMPDIR}/file2: "",
}
EOF

-
	cat << EOF > dep1.ucl
-
name: master
-
origin: master
-
version: 1
-
maintainer: test
-
categories: [test]
-
www: http://test
-
comment: a test
-
prefix: /usr/local
-
desc: <<EOD
-
Yet another test
-
EOD
+
	atf_check -s exit:0 $(atf_get_srcdir)/test_subr.sh new_pkg dep1 master 1
+
	cat << EOF >> dep1.ucl
deps: {
	test {
		origin: test,