Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
abitest: use portable way to lower strings
Baptiste Daroussin committed 1 year ago
commit 28b7e83408812cfc262bc770fdbc0a52e8c5396d
parent e6bd0fb
1 file changed +2 -2
modified tests/frontend/abi.sh
@@ -4,7 +4,7 @@
tests_init \
	elfparse \
	native \
-
	override 
+
	override

native_body() {
	_expected="$(uname -s):$(uname -r | cut -d. -f1):$(uname -p | sed s/x86_64/amd64/)\n"
@@ -12,7 +12,7 @@ native_body() {
		-o inline:"${_expected}" \
		pkg config abi

-
	_expected="$(uname -s | tolower):$(uname -r | cut -d. -f1):$(uname -p | sed s/x86_64/x86:64/)\n"
+
	_expected="$(uname -s | tr '[:upper:]' '[:lower:]'):$(uname -r | cut -d. -f1):$(uname -p | sed s/x86_64/x86:64/)\n"
	atf_check \
		-o inline:"${_expected}" \
		pkg config altabi