Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Allow running abi:basic on non-FreeBSD
Alex Richardson committed 5 years ago
commit 4e913f134bcf0a13b9e1f172aacc320f8b51c31a
parent ee29d2f
1 file changed +9 -3
modified tests/frontend/abi.sh
@@ -5,11 +5,17 @@ tests_init \
	basic

basic_body() {
-
	if [ `uname -s` != "FreeBSD" ]; then
-
		atf_skip "Not yet supported on non FreeBSD"
+
	_uname_s="$(uname -s)"
+
	_expected="TODO: implement me"
+
	if [ "${_uname_s}" = "FreeBSD" ]; then
+
		_expected="FreeBSD:13:amd64\n"
+
	else
+
		# The FreeBSD ELF ABI_FILE should be ignored on other systems:
+
		_expected="${_uname_s}:$(uname -r | cut -d. -f1):$(uname -p)\n"
+
		# atf_skip "Not yet supported on ${_uname_s}"
	fi
	atf_check \
-
		-o inline:"FreeBSD:13:amd64\n" \
+
		-o inline:"${_expected}" \
		pkg -o IGNORE_OSMAJOR=1 -o ABI_FILE=$(atf_get_srcdir)/fbsd.bin config abi

#	atf_check \