Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
macos: add more macho tests
Baptiste Daroussin committed 1 year ago
commit eb3e968b220f6923c80e51a5c76a625099bd32bf
parent f3678e4
5 files changed +34 -1
modified tests/Makefile.autosetup
@@ -70,7 +70,10 @@ TESTS_SHELL_BINS= \
	frontend/dfly.bin \
	frontend/fbsd.bin \
	frontend/linux.bin \
-
	frontend/macos.bin
+
	frontend/macos.bin \
+
	frontend/macos106.bin \
+
	frontend/macos150.bin \
+
	frontend/macosfat.bin

lua_OBJS=	lib/lua.o
merge_OBJS=	lib/merge.o
modified tests/frontend/abi.sh
@@ -76,4 +76,34 @@ machoparse_body() {
	atf_check \
		-o inline:"${_expected}" \
		pkg -o IGNORE_OSMAJOR=1 -o ABI_FILE=$(atf_get_srcdir)/macos.bin config altabi
+

+
	_expected="Darwin:10:amd64\n"
+
	atf_check \
+
		-o inline:"${_expected}" \
+
		pkg -o IGNORE_OSMAJOR=1 -o ABI_FILE=$(atf_get_srcdir)/macos106.bin config abi
+

+
	_expected="darwin:10:x86:64\n"
+
	atf_check \
+
		-o inline:"${_expected}" \
+
		pkg -o IGNORE_OSMAJOR=1 -o ABI_FILE=$(atf_get_srcdir)/macos106.bin config altabi
+

+
	_expected="Darwin:24:amd64\n"
+
	atf_check \
+
		-o inline:"${_expected}" \
+
		pkg -o IGNORE_OSMAJOR=1 -o ABI_FILE=$(atf_get_srcdir)/macos150.bin config abi
+

+
	_expected="darwin:24:x86:64\n"
+
	atf_check \
+
		-o inline:"${_expected}" \
+
		pkg -o IGNORE_OSMAJOR=1 -o ABI_FILE=$(atf_get_srcdir)/macos150.bin config altabi
+

+
	_expected="Darwin:24:amd64\n"
+
	atf_check \
+
		-o inline:"${_expected}" \
+
		pkg -o IGNORE_OSMAJOR=1 -o ABI_FILE=$(atf_get_srcdir)/macosfat.bin config abi
+

+
	_expected="darwin:24:x86:64\n"
+
	atf_check \
+
		-o inline:"${_expected}" \
+
		pkg -o IGNORE_OSMAJOR=1 -o ABI_FILE=$(atf_get_srcdir)/macosfat.bin config altabi
}
added tests/frontend/macos106.binin
added tests/frontend/macos150.binin
added tests/frontend/macosfat.binin