opnsense-src/lib/libc/tests/stdbit/Makefile
Jessica Clarke 41b346a6e3 libc: Fix TESTSDIR for new stdbit tests
Otherwise the directory created by etc/mtree/BSD.tests.dist, which is
where these belong, and referred to by the generated Kyuafile for
/usr/tests/lib/libc (via stdbit's existence in TESTS_SUBDIRS), ends up
empty with no Kyuafile, which is an error for kyua.

Reported by:	kp
Fixes:		2fb8cbc6ef1b ("libc/tests: add stdbit test framework and unit tests")

(cherry picked from commit 5f529f9e292a30c065c316ed5fd0d23e07b26e5c)
2026-01-01 21:57:33 +01:00

21 lines
549 B
Makefile

TESTSDIR= ${TESTSBASE}/lib/libc/stdbit
# ensure libc functions are tested, not clang's builtins
CFLAGS+= -fno-builtin
ATF_TESTS_C+= stdc_bit_ceil_test \
stdc_bit_floor_test \
stdc_bit_width_test \
stdc_count_ones_test \
stdc_count_zeros_test \
stdc_first_leading_one_test \
stdc_first_leading_zero_test \
stdc_first_trailing_one_test \
stdc_first_trailing_zero_test \
stdc_has_single_bit_test \
stdc_leading_ones_test \
stdc_leading_zeros_test \
stdc_trailing_ones_test \
stdc_trailing_zeros_test
.include <bsd.test.mk>