Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Sort tests
Brad Davis committed 9 years ago
commit 9b4a48c0a024023f6907ff09ee5482999640d315
parent 762c0b1
1 file changed +13 -13
modified tests/frontend/config.sh
@@ -2,22 +2,10 @@

. $(atf_get_srcdir)/test_environment.sh
tests_init \
-
	inline_repo \
	empty_conf \
+
	inline_repo \
	nameserver

-
inline_repo_body() {
-
	cat > pkgconfiguration << EOF
-
repositories: {
-
	pkg1: { url = file:///tmp },
-
	pkg2: { url = file:///tmp2 },
-
}
-
EOF
-
	atf_check -o match:'^    url             : "file:///tmp",$' \
-
		-o match:'^    url             : "file:///tmp2",$' \
-
		pkg -o REPOS_DIR=/dev/null -C pkgconfiguration -vv
-
}
-

empty_conf_body() {
	touch pkg.conf

@@ -48,6 +36,18 @@ EOF
		pkg -C pkg.conf info test
}

+
inline_repo_body() {
+
	cat > pkgconfiguration << EOF
+
repositories: {
+
	pkg1: { url = file:///tmp },
+
	pkg2: { url = file:///tmp2 },
+
}
+
EOF
+
	atf_check -o match:'^    url             : "file:///tmp",$' \
+
		-o match:'^    url             : "file:///tmp2",$' \
+
		pkg -o REPOS_DIR=/dev/null -C pkgconfiguration -vv
+
}
+

nameserver_body()
{
	atf_skip_on Darwin Not possible to inject a namserver on OSX