2023-09-07 02:14:59 -04:00
|
|
|
.include <bsd.own.mk>
|
|
|
|
|
|
|
|
|
|
TESTSDIR= ${TESTSBASE}/include
|
|
|
|
|
|
tests: Test endian.h, byteswap.h, sys/endian.h and both endian.h and byteswap.h together
What's required and not required to be defined is complicated. Write
tests to enshrine it:
endian.h and sys/endian.h:
[bl]e{16,32,64}toh
hto[bl]e{16,32,64}
byteswap.h:
{__,}bswap_{16,32,64}
sys/endian.h:
{__,}bswap{16,32,64}
_BYTE_ORDER
_BIG_ENDIAN
_LITTLE_ENDIAN
_PDP_ENDIAN
endian.h:
__BYTE_ORDER
__BIG_ENDIAN
__LITTLE_ENDIAN
__PDP_ENDIAN
__FLOAT_WORD_ORDER
We also ensure that the sys/endian.h conditions hold true when
we include both endian.h and sys/endian.h in either order.
NOT TESTED: deprecated symbols, internal to glibc symbols
Sponsored by: Netflix
Discussed with: markj (made the changes he requested)
Differential Revision: https://reviews.freebsd.org/D32052
2024-10-15 19:14:42 -04:00
|
|
|
ATF_TESTS_C+= byteswap_test
|
|
|
|
|
ATF_TESTS_C+= byteswap_endian_test
|
|
|
|
|
ATF_TESTS_C+= endian_test
|
|
|
|
|
ATF_TESTS_C+= endian_sys_endian_test
|
2023-09-07 02:14:59 -04:00
|
|
|
ATF_TESTS_C+= stdckdint_test
|
tests: Test endian.h, byteswap.h, sys/endian.h and both endian.h and byteswap.h together
What's required and not required to be defined is complicated. Write
tests to enshrine it:
endian.h and sys/endian.h:
[bl]e{16,32,64}toh
hto[bl]e{16,32,64}
byteswap.h:
{__,}bswap_{16,32,64}
sys/endian.h:
{__,}bswap{16,32,64}
_BYTE_ORDER
_BIG_ENDIAN
_LITTLE_ENDIAN
_PDP_ENDIAN
endian.h:
__BYTE_ORDER
__BIG_ENDIAN
__LITTLE_ENDIAN
__PDP_ENDIAN
__FLOAT_WORD_ORDER
We also ensure that the sys/endian.h conditions hold true when
we include both endian.h and sys/endian.h in either order.
NOT TESTED: deprecated symbols, internal to glibc symbols
Sponsored by: Netflix
Discussed with: markj (made the changes he requested)
Differential Revision: https://reviews.freebsd.org/D32052
2024-10-15 19:14:42 -04:00
|
|
|
ATF_TESTS_C+= sys_endian_test
|
|
|
|
|
ATF_TESTS_C+= sys_endian_endian_test
|
2023-09-07 02:14:59 -04:00
|
|
|
|
|
|
|
|
.include <bsd.test.mk>
|