Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Finish converting the add tests to using new helper functions
Brad Davis committed 8 years ago
commit 19f95eaf263884c1083cffec7c933a49fcf87331
parent f452d8b
1 file changed +4 -26
modified tests/frontend/add.sh
@@ -96,19 +96,8 @@ add_force_body() {

add_accept_missing_body() {
	touch a
-
	cat << EOF > test.ucl
-
name: test
-
origin: test
-
version: 1
-
maintainer: test
-
categories: [test]
-
comment: a test
-
www: http://test
-
prefix: /
-
abi = "*";
-
desc: <<EOD
-
Yet another test
-
EOD
+
	atf_check -s exit:0 $(atf_get_srcdir)/test_subr.sh new_pkg test test 1
+
	cat << EOF >> test.ucl
deps: {
	b: {
		origin: "wedontcare",
@@ -177,19 +166,8 @@ post-install

add_stdin_missing_body() {
	touch a
-
	cat << EOF > test.ucl
-
name: test
-
origin: test
-
version: 1
-
maintainer: test
-
categories: [test]
-
comment: a test
-
www: http://test
-
prefix: /
-
abi = "*";
-
desc: <<EOD
-
Yet another test
-
EOD
+
	atf_check -s exit:0 $(atf_get_srcdir)/test_subr.sh new_pkg test test 1
+
	cat << EOF >> test.ucl
deps: {
	b: {
		origin: "wedontcare",