Skip to content

Commit 935be93

Browse files
brooksdavisbapt
authored andcommitted
Check that we can roundtrip CheriBSD ABIs
1 parent 10752ef commit 935be93

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

tests/frontend/abi.sh

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,36 @@ override_body() {
5757
-o inline:"${_expected}" \
5858
-e ignore \
5959
pkg -o ABI=FreeBSD:12:powerpc -o OSVERSION=1201000 config altabi
60+
_expected="CheriBSD:20250301:aarch64c\n"
61+
atf_check \
62+
-o inline:"${_expected}" \
63+
-e ignore \
64+
pkg -o ABI=CheriBSD:20250301:aarch64c config abi
65+
_expected="CheriBSD:20250301:aarch64cb\n"
66+
atf_check \
67+
-o inline:"${_expected}" \
68+
-e ignore \
69+
pkg -o ABI=CheriBSD:20250301:aarch64cb config abi
70+
_expected="cheribsd:20250301:aarch64:64:cheri\n"
71+
atf_check \
72+
-o inline:"${_expected}" \
73+
-e ignore \
74+
pkg -o ABI=CheriBSD:20250301:aarch64c config altabi
75+
_expected="cheribsd:20250301:aarch64:64:cheri:benchmark\n"
76+
atf_check \
77+
-o inline:"${_expected}" \
78+
-e ignore \
79+
pkg -o ABI=CheriBSD:20250301:aarch64cb config altabi
80+
_expected="CheriBSD:20250301:riscv64c\n"
81+
atf_check \
82+
-o inline:"${_expected}" \
83+
-e ignore \
84+
pkg -o ABI=CheriBSD:20250301:riscv64c config abi
85+
_expected="cheribsd:20260101:riscv:64:cheri:hf\n"
86+
atf_check \
87+
-o inline:"${_expected}" \
88+
-e ignore \
89+
pkg -o ABI=CheriBSD:20260101:riscv64c config altabi
6090
}
6191

6292
elfparse_body() {

0 commit comments

Comments
 (0)