xref: /freebsd/lib/libc/tests/stdio/Makefile (revision 397e83df75e0fcd0d3fcb95ae4d794cb7600fc89)
1
2.include <bsd.own.mk>
3
4ATF_TESTS_C+=		eintr_test
5ATF_TESTS_C+=		fdopen_test
6ATF_TESTS_C+=		flushlbuf_test
7ATF_TESTS_C+=		fmemopen2_test
8ATF_TESTS_C+=		fopen2_test
9ATF_TESTS_C+=		freopen_test
10ATF_TESTS_C+=		getdelim_test
11ATF_TESTS_C+=		gets_s_test
12ATF_TESTS_C+=		mkostemp_test
13ATF_TESTS_C+=		open_memstream2_test
14ATF_TESTS_C+=		open_wmemstream_test
15ATF_TESTS_C+=		perror_test
16ATF_TESTS_C+=		print_positional_test
17ATF_TESTS_C+=		printbasic_test
18ATF_TESTS_C+=		printfloat_test
19ATF_TESTS_C+=		scanfloat_test
20ATF_TESTS_C+=		snprintf_test
21ATF_TESTS_C+=		sscanf_test
22ATF_TESTS_C+=		swprintf_test
23ATF_TESTS_C+=		swscanf_test
24
25SRCS.fopen2_test=	fopen_test.c
26
27NETBSD_ATF_TESTS_C=	clearerr_test
28NETBSD_ATF_TESTS_C+=	fflush_test
29NETBSD_ATF_TESTS_C+=	fmemopen_test
30NETBSD_ATF_TESTS_C+=	fopen_test
31NETBSD_ATF_TESTS_C+=	fputc_test
32NETBSD_ATF_TESTS_C+=	mktemp_test
33NETBSD_ATF_TESTS_C+=	open_memstream_test
34NETBSD_ATF_TESTS_C+=	popen_test
35NETBSD_ATF_TESTS_C+=	printf_test
36NETBSD_ATF_TESTS_C+=	scanf_test
37
38LIBADD.eintr_test+=	 md
39LIBADD.printfloat_test+= m
40LIBADD.scanfloat_test+=  m
41
42# Older toolchains won't understand C23 %b, %wN, %wfN
43PROG_OVERRIDE_VARS+=	NO_WFORMAT
44NO_WFORMAT.snprintf_test=
45NO_WFORMAT.sscanf_test=
46NO_WFORMAT.swprintf_test=
47NO_WFORMAT.swscanf_test=
48
49.if ${COMPILER_TYPE} == "gcc"
50# 90: use of assignment suppression and length modifier together in scanf format
51NO_WFORMAT.scanfloat_test=
52.endif
53
54.include "../Makefile.netbsd-tests"
55
56.include <bsd.test.mk>
57