Skip to content

Commit

Permalink
test: fix another altabi test on linux
Browse files Browse the repository at this point in the history
  • Loading branch information
bapt committed Nov 25, 2024
1 parent b2566ad commit 1c503a0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/frontend/abi.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,16 @@ native_body() {
fi
if [ "${OS}" = "FreeBSD" ]; then
thisarch=$(echo "${thisarch}" | sed s/x86_64/amd64/)
thisabi=$(echo "${thisarch}" | sed s/amd64/x86:64/)
else
thisabi=$thisarch
fi
_expected="${OS}:${version}:${thisarch}\n"
atf_check \
-o inline:"${_expected}" \
pkg config abi

_expected="$(uname -s | tr '[:upper:]' '[:lower:]'):${version}:$(echo $thisarch | sed 's/x86_64/x86:64/; s/amd64/x86:64/')\n"
_expected="$(uname -s | tr '[:upper:]' '[:lower:]'):${version}:${thisabi}\n"
atf_check \
-o inline:"${_expected}" \
pkg config altabi
Expand Down

0 comments on commit 1c503a0

Please sign in to comment.