Sun Mar 8 22:08:46 2020 UTC ()
Add tests for missing libc catalog entries


(mgorny)
diff -r1.297 -r1.298 src/distrib/sets/lists/debug/mi
diff -r1.832 -r1.833 src/distrib/sets/lists/tests/mi
diff -r1.160 -r1.161 src/etc/mtree/NetBSD.dist.tests
diff -r1.49 -r1.50 src/tests/lib/libc/Makefile
diff -r0 -r1.1 src/tests/lib/libc/nls/Makefile
diff -r0 -r1.1 src/tests/lib/libc/nls/t_catalog.c

cvs diff -r1.297 -r1.298 src/distrib/sets/lists/debug/mi (expand / switch to unified diff)

--- src/distrib/sets/lists/debug/mi 2020/03/06 18:32:35 1.297
+++ src/distrib/sets/lists/debug/mi 2020/03/08 22:08:46 1.298
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: mi,v 1.297 2020/03/06 18:32:35 kamil Exp $ 1# $NetBSD: mi,v 1.298 2020/03/08 22:08:46 mgorny Exp $
2./etc/mtree/set.debug comp-sys-root 2./etc/mtree/set.debug comp-sys-root
3./usr/lib comp-sys-usr compatdir 3./usr/lib comp-sys-usr compatdir
4./usr/lib/i18n/libBIG5_g.a comp-c-debuglib debuglib,compatfile 4./usr/lib/i18n/libBIG5_g.a comp-c-debuglib debuglib,compatfile
5./usr/lib/i18n/libDECHanyu_g.a comp-c-debuglib debuglib,compatfile 5./usr/lib/i18n/libDECHanyu_g.a comp-c-debuglib debuglib,compatfile
6./usr/lib/i18n/libEUCTW_g.a comp-c-debuglib debuglib,compatfile 6./usr/lib/i18n/libEUCTW_g.a comp-c-debuglib debuglib,compatfile
7./usr/lib/i18n/libEUC_g.a comp-c-debuglib debuglib,compatfile 7./usr/lib/i18n/libEUC_g.a comp-c-debuglib debuglib,compatfile
8./usr/lib/i18n/libGBK2K_g.a comp-c-debuglib debuglib,compatfile 8./usr/lib/i18n/libGBK2K_g.a comp-c-debuglib debuglib,compatfile
9./usr/lib/i18n/libHZ_g.a comp-c-debuglib debuglib,compatfile 9./usr/lib/i18n/libHZ_g.a comp-c-debuglib debuglib,compatfile
10./usr/lib/i18n/libISO2022_g.a comp-c-debuglib debuglib,compatfile 10./usr/lib/i18n/libISO2022_g.a comp-c-debuglib debuglib,compatfile
11./usr/lib/i18n/libJOHAB_g.a comp-c-debuglib debuglib,compatfile 11./usr/lib/i18n/libJOHAB_g.a comp-c-debuglib debuglib,compatfile
12./usr/lib/i18n/libMSKanji_g.a comp-c-debuglib debuglib,compatfile 12./usr/lib/i18n/libMSKanji_g.a comp-c-debuglib debuglib,compatfile
13./usr/lib/i18n/libUES_g.a comp-c-debuglib debuglib,compatfile 13./usr/lib/i18n/libUES_g.a comp-c-debuglib debuglib,compatfile
14./usr/lib/i18n/libUTF1632_g.a comp-c-debuglib debuglib,compatfile 14./usr/lib/i18n/libUTF1632_g.a comp-c-debuglib debuglib,compatfile
@@ -2017,26 +2017,27 @@ @@ -2017,26 +2017,27 @@
2017./usr/libdata/debug/usr/tests/lib/libc/locale/t_wctomb.debug tests-lib-debug debug,atf,compattestfile 2017./usr/libdata/debug/usr/tests/lib/libc/locale/t_wctomb.debug tests-lib-debug debug,atf,compattestfile
2018./usr/libdata/debug/usr/tests/lib/libc/locale/t_wctype.debug tests-lib-debug debug,atf,compattestfile 2018./usr/libdata/debug/usr/tests/lib/libc/locale/t_wctype.debug tests-lib-debug debug,atf,compattestfile
2019./usr/libdata/debug/usr/tests/lib/libc/misc/t_ubsan.debug tests-lib-debug debug,atf,compattestfile 2019./usr/libdata/debug/usr/tests/lib/libc/misc/t_ubsan.debug tests-lib-debug debug,atf,compattestfile
2020./usr/libdata/debug/usr/tests/lib/libc/misc/t_ubsanxx.debug tests-lib-debug debug,atf,compattestfile 2020./usr/libdata/debug/usr/tests/lib/libc/misc/t_ubsanxx.debug tests-lib-debug debug,atf,compattestfile
2021./usr/libdata/debug/usr/tests/lib/libc/net/getaddrinfo/h_gai.debug tests-lib-debug debug,atf,compattestfile 2021./usr/libdata/debug/usr/tests/lib/libc/net/getaddrinfo/h_gai.debug tests-lib-debug debug,atf,compattestfile
2022./usr/libdata/debug/usr/tests/lib/libc/net/h_dns_server.debug tests-lib-debug debug,atf,compattestfile 2022./usr/libdata/debug/usr/tests/lib/libc/net/h_dns_server.debug tests-lib-debug debug,atf,compattestfile
2023./usr/libdata/debug/usr/tests/lib/libc/net/h_hostent.debug tests-lib-debug debug,atf,compattestfile 2023./usr/libdata/debug/usr/tests/lib/libc/net/h_hostent.debug tests-lib-debug debug,atf,compattestfile
2024./usr/libdata/debug/usr/tests/lib/libc/net/h_nsd_recurse.debug tests-lib-debug debug,atf,compattestfile 2024./usr/libdata/debug/usr/tests/lib/libc/net/h_nsd_recurse.debug tests-lib-debug debug,atf,compattestfile
2025./usr/libdata/debug/usr/tests/lib/libc/net/h_protoent.debug tests-lib-debug debug,atf,compattestfile 2025./usr/libdata/debug/usr/tests/lib/libc/net/h_protoent.debug tests-lib-debug debug,atf,compattestfile
2026./usr/libdata/debug/usr/tests/lib/libc/net/h_servent.debug tests-lib-debug debug,atf,compattestfile 2026./usr/libdata/debug/usr/tests/lib/libc/net/h_servent.debug tests-lib-debug debug,atf,compattestfile
2027./usr/libdata/debug/usr/tests/lib/libc/net/t_ether_aton.debug tests-lib-debug debug,atf,compattestfile 2027./usr/libdata/debug/usr/tests/lib/libc/net/t_ether_aton.debug tests-lib-debug debug,atf,compattestfile
2028./usr/libdata/debug/usr/tests/lib/libc/net/t_getprotoent.debug tests-lib-debug debug,atf,compattestfile 2028./usr/libdata/debug/usr/tests/lib/libc/net/t_getprotoent.debug tests-lib-debug debug,atf,compattestfile
2029./usr/libdata/debug/usr/tests/lib/libc/net/t_if_nametoindex.debug tests-lib-debug debug,atf,compattestfile 2029./usr/libdata/debug/usr/tests/lib/libc/net/t_if_nametoindex.debug tests-lib-debug debug,atf,compattestfile
 2030./usr/libdata/debug/usr/tests/lib/libc/nls/t_catalog.debug tests-lib-debug debug,atf,compattestfile
2030./usr/libdata/debug/usr/tests/lib/libc/regex/h_regex.debug tests-lib-debug debug,atf,compattestfile 2031./usr/libdata/debug/usr/tests/lib/libc/regex/h_regex.debug tests-lib-debug debug,atf,compattestfile
2031./usr/libdata/debug/usr/tests/lib/libc/regex/h_regex_att.debug tests-obsolete obsolete,compattestfile 2032./usr/libdata/debug/usr/tests/lib/libc/regex/h_regex_att.debug tests-obsolete obsolete,compattestfile
2032./usr/libdata/debug/usr/tests/lib/libc/regex/t_exhaust.debug tests-lib-debug debug,atf,compattestfile 2033./usr/libdata/debug/usr/tests/lib/libc/regex/t_exhaust.debug tests-lib-debug debug,atf,compattestfile
2033./usr/libdata/debug/usr/tests/lib/libc/regex/t_regex_att.debug tests-lib-debug debug,atf,compattestfile 2034./usr/libdata/debug/usr/tests/lib/libc/regex/t_regex_att.debug tests-lib-debug debug,atf,compattestfile
2034./usr/libdata/debug/usr/tests/lib/libc/rpc/t_rpc.debug tests-lib-debug debug,atf,compattestfile 2035./usr/libdata/debug/usr/tests/lib/libc/rpc/t_rpc.debug tests-lib-debug debug,atf,compattestfile
2035./usr/libdata/debug/usr/tests/lib/libc/rpc/t_xdr.debug tests-lib-debug debug,atf,compattestfile 2036./usr/libdata/debug/usr/tests/lib/libc/rpc/t_xdr.debug tests-lib-debug debug,atf,compattestfile
2036./usr/libdata/debug/usr/tests/lib/libc/setjmp/t_setjmp.debug tests-lib-debug debug,atf,compattestfile 2037./usr/libdata/debug/usr/tests/lib/libc/setjmp/t_setjmp.debug tests-lib-debug debug,atf,compattestfile
2037./usr/libdata/debug/usr/tests/lib/libc/setjmp/t_threadjmp.debug tests-lib-debug debug,atf,compattestfile 2038./usr/libdata/debug/usr/tests/lib/libc/setjmp/t_threadjmp.debug tests-lib-debug debug,atf,compattestfile
2038./usr/libdata/debug/usr/tests/lib/libc/ssp/h_fgets.debug tests-lib-debug debug,atf,ssp,compattestfile 2039./usr/libdata/debug/usr/tests/lib/libc/ssp/h_fgets.debug tests-lib-debug debug,atf,ssp,compattestfile
2039./usr/libdata/debug/usr/tests/lib/libc/ssp/h_getcwd.debug tests-lib-debug debug,atf,ssp,compattestfile 2040./usr/libdata/debug/usr/tests/lib/libc/ssp/h_getcwd.debug tests-lib-debug debug,atf,ssp,compattestfile
2040./usr/libdata/debug/usr/tests/lib/libc/ssp/h_gets.debug tests-lib-debug debug,atf,ssp,compattestfile 2041./usr/libdata/debug/usr/tests/lib/libc/ssp/h_gets.debug tests-lib-debug debug,atf,ssp,compattestfile
2041./usr/libdata/debug/usr/tests/lib/libc/ssp/h_memcpy.debug tests-lib-debug debug,atf,ssp,compattestfile 2042./usr/libdata/debug/usr/tests/lib/libc/ssp/h_memcpy.debug tests-lib-debug debug,atf,ssp,compattestfile
2042./usr/libdata/debug/usr/tests/lib/libc/ssp/h_memmove.debug tests-lib-debug debug,atf,ssp,compattestfile 2043./usr/libdata/debug/usr/tests/lib/libc/ssp/h_memmove.debug tests-lib-debug debug,atf,ssp,compattestfile

cvs diff -r1.832 -r1.833 src/distrib/sets/lists/tests/mi (expand / switch to unified diff)

--- src/distrib/sets/lists/tests/mi 2020/03/08 17:23:55 1.832
+++ src/distrib/sets/lists/tests/mi 2020/03/08 22:08:46 1.833
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: mi,v 1.832 2020/03/08 17:23:55 christos Exp $ 1# $NetBSD: mi,v 1.833 2020/03/08 22:08:46 mgorny Exp $
2# 2#
3# Note: don't delete entries from here - mark them as "obsolete" instead. 3# Note: don't delete entries from here - mark them as "obsolete" instead.
4# 4#
5./etc/mtree/set.tests tests-sys-root 5./etc/mtree/set.tests tests-sys-root
6./usr/libdata/debug/usr/tests tests-base-debug compattestdir 6./usr/libdata/debug/usr/tests tests-base-debug compattestdir
7./usr/libdata/debug/usr/tests/atf tests-atf-debug compattestfile,atf 7./usr/libdata/debug/usr/tests/atf tests-atf-debug compattestfile,atf
8./usr/libdata/debug/usr/tests/atf/atf-c tests-atf-debug compattestfile,atf 8./usr/libdata/debug/usr/tests/atf/atf-c tests-atf-debug compattestfile,atf
9./usr/libdata/debug/usr/tests/atf/atf-c++ tests-atf-debug compattestfile,atf 9./usr/libdata/debug/usr/tests/atf/atf-c++ tests-atf-debug compattestfile,atf
10./usr/libdata/debug/usr/tests/atf/atf-c++/detail tests-atf-debug compattestfile,atf 10./usr/libdata/debug/usr/tests/atf/atf-c++/detail tests-atf-debug compattestfile,atf
11./usr/libdata/debug/usr/tests/atf/atf-c/detail tests-atf-debug compattestfile,atf 11./usr/libdata/debug/usr/tests/atf/atf-c/detail tests-atf-debug compattestfile,atf
12./usr/libdata/debug/usr/tests/atf/atf-compile tests-obsolete obsolete 12./usr/libdata/debug/usr/tests/atf/atf-compile tests-obsolete obsolete
13./usr/libdata/debug/usr/tests/atf/atf-report tests-obsolete obsolete 13./usr/libdata/debug/usr/tests/atf/atf-report tests-obsolete obsolete
14./usr/libdata/debug/usr/tests/atf/atf-run tests-obsolete obsolete 14./usr/libdata/debug/usr/tests/atf/atf-run tests-obsolete obsolete
@@ -97,26 +97,27 @@ @@ -97,26 +97,27 @@
97./usr/libdata/debug/usr/tests/lib/libc/gen/exect tests-obsolete obsolete 97./usr/libdata/debug/usr/tests/lib/libc/gen/exect tests-obsolete obsolete
98./usr/libdata/debug/usr/tests/lib/libc/gen/execve tests-kernel-tests compattestfile,atf 98./usr/libdata/debug/usr/tests/lib/libc/gen/execve tests-kernel-tests compattestfile,atf
99./usr/libdata/debug/usr/tests/lib/libc/gen/posix_spawn tests-kernel-tests compattestfile,atf 99./usr/libdata/debug/usr/tests/lib/libc/gen/posix_spawn tests-kernel-tests compattestfile,atf
100./usr/libdata/debug/usr/tests/lib/libc/getaddrinfo tests-obsolete obsolete 100./usr/libdata/debug/usr/tests/lib/libc/getaddrinfo tests-obsolete obsolete
101./usr/libdata/debug/usr/tests/lib/libc/getaddrinfo/data tests-obsolete obsolete 101./usr/libdata/debug/usr/tests/lib/libc/getaddrinfo/data tests-obsolete obsolete
102./usr/libdata/debug/usr/tests/lib/libc/getaddrinfo/h_gai tests-obsolete obsolete 102./usr/libdata/debug/usr/tests/lib/libc/getaddrinfo/h_gai tests-obsolete obsolete
103./usr/libdata/debug/usr/tests/lib/libc/hash tests-lib-debug compattestfile,atf 103./usr/libdata/debug/usr/tests/lib/libc/hash tests-lib-debug compattestfile,atf
104./usr/libdata/debug/usr/tests/lib/libc/ieeefp tests-obsolete obsolete 104./usr/libdata/debug/usr/tests/lib/libc/ieeefp tests-obsolete obsolete
105./usr/libdata/debug/usr/tests/lib/libc/inet tests-lib-debug compattestfile,atf 105./usr/libdata/debug/usr/tests/lib/libc/inet tests-lib-debug compattestfile,atf
106./usr/libdata/debug/usr/tests/lib/libc/locale tests-lib-debug compattestfile,atf 106./usr/libdata/debug/usr/tests/lib/libc/locale tests-lib-debug compattestfile,atf
107./usr/libdata/debug/usr/tests/lib/libc/misc tests-lib-debug compattestfile,atf 107./usr/libdata/debug/usr/tests/lib/libc/misc tests-lib-debug compattestfile,atf
108./usr/libdata/debug/usr/tests/lib/libc/net tests-lib-debug compattestfile,atf 108./usr/libdata/debug/usr/tests/lib/libc/net tests-lib-debug compattestfile,atf
109./usr/libdata/debug/usr/tests/lib/libc/net/getaddrinfo tests-lib-debug compattestfile,atf 109./usr/libdata/debug/usr/tests/lib/libc/net/getaddrinfo tests-lib-debug compattestfile,atf
 110./usr/libdata/debug/usr/tests/lib/libc/nls tests-lib-debug compattestfile,atf
110./usr/libdata/debug/usr/tests/lib/libc/regex tests-lib-debug compattestfile,atf 111./usr/libdata/debug/usr/tests/lib/libc/regex tests-lib-debug compattestfile,atf
111./usr/libdata/debug/usr/tests/lib/libc/rpc tests-lib-debug compattestfile,atf 112./usr/libdata/debug/usr/tests/lib/libc/rpc tests-lib-debug compattestfile,atf
112./usr/libdata/debug/usr/tests/lib/libc/setjmp tests-lib-debug compattestfile,atf 113./usr/libdata/debug/usr/tests/lib/libc/setjmp tests-lib-debug compattestfile,atf
113./usr/libdata/debug/usr/tests/lib/libc/ssp tests-lib-debug compattestfile,atf 114./usr/libdata/debug/usr/tests/lib/libc/ssp tests-lib-debug compattestfile,atf
114./usr/libdata/debug/usr/tests/lib/libc/stdio tests-lib-debug compattestfile,atf 115./usr/libdata/debug/usr/tests/lib/libc/stdio tests-lib-debug compattestfile,atf
115./usr/libdata/debug/usr/tests/lib/libc/stdlib tests-lib-debug compattestfile,atf 116./usr/libdata/debug/usr/tests/lib/libc/stdlib tests-lib-debug compattestfile,atf
116./usr/libdata/debug/usr/tests/lib/libc/string tests-lib-debug compattestfile,atf 117./usr/libdata/debug/usr/tests/lib/libc/string tests-lib-debug compattestfile,atf
117./usr/libdata/debug/usr/tests/lib/libc/sys tests-lib-debug compattestfile,atf 118./usr/libdata/debug/usr/tests/lib/libc/sys tests-lib-debug compattestfile,atf
118./usr/libdata/debug/usr/tests/lib/libc/termios tests-lib-debug compattestfile,atf 119./usr/libdata/debug/usr/tests/lib/libc/termios tests-lib-debug compattestfile,atf
119./usr/libdata/debug/usr/tests/lib/libc/time tests-lib-debug compattestfile,atf 120./usr/libdata/debug/usr/tests/lib/libc/time tests-lib-debug compattestfile,atf
120./usr/libdata/debug/usr/tests/lib/libc/tls tests-lib-debug compattestfile,atf 121./usr/libdata/debug/usr/tests/lib/libc/tls tests-lib-debug compattestfile,atf
121./usr/libdata/debug/usr/tests/lib/libc/ttyio tests-lib-debug compattestfile,atf 122./usr/libdata/debug/usr/tests/lib/libc/ttyio tests-lib-debug compattestfile,atf
122./usr/libdata/debug/usr/tests/lib/libcrypt tests-lib-debug compattestfile,atf 123./usr/libdata/debug/usr/tests/lib/libcrypt tests-lib-debug compattestfile,atf
@@ -2955,26 +2956,30 @@ @@ -2955,26 +2956,30 @@
2955./usr/tests/lib/libc/net/h_hostent tests-lib-tests compattestfile,atf 2956./usr/tests/lib/libc/net/h_hostent tests-lib-tests compattestfile,atf
2956./usr/tests/lib/libc/net/h_nsd_recurse tests-lib-tests compattestfile,atf 2957./usr/tests/lib/libc/net/h_nsd_recurse tests-lib-tests compattestfile,atf
2957./usr/tests/lib/libc/net/h_protoent tests-lib-tests compattestfile,atf 2958./usr/tests/lib/libc/net/h_protoent tests-lib-tests compattestfile,atf
2958./usr/tests/lib/libc/net/h_servent tests-lib-tests compattestfile,atf 2959./usr/tests/lib/libc/net/h_servent tests-lib-tests compattestfile,atf
2959./usr/tests/lib/libc/net/hosts tests-lib-tests compattestfile,atf 2960./usr/tests/lib/libc/net/hosts tests-lib-tests compattestfile,atf
2960./usr/tests/lib/libc/net/resolv.conf tests-lib-tests compattestfile,atf 2961./usr/tests/lib/libc/net/resolv.conf tests-lib-tests compattestfile,atf
2961./usr/tests/lib/libc/net/t_ether_aton tests-lib-tests compattestfile,atf 2962./usr/tests/lib/libc/net/t_ether_aton tests-lib-tests compattestfile,atf
2962./usr/tests/lib/libc/net/t_getprotoent tests-lib-tests compattestfile,atf 2963./usr/tests/lib/libc/net/t_getprotoent tests-lib-tests compattestfile,atf
2963./usr/tests/lib/libc/net/t_hostent tests-lib-tests compattestfile,atf 2964./usr/tests/lib/libc/net/t_hostent tests-lib-tests compattestfile,atf
2964./usr/tests/lib/libc/net/t_if_nametoindex tests-lib-tests compattestfile,atf 2965./usr/tests/lib/libc/net/t_if_nametoindex tests-lib-tests compattestfile,atf
2965./usr/tests/lib/libc/net/t_nsdispatch tests-lib-tests compattestfile,atf 2966./usr/tests/lib/libc/net/t_nsdispatch tests-lib-tests compattestfile,atf
2966./usr/tests/lib/libc/net/t_protoent tests-lib-tests compattestfile,atf 2967./usr/tests/lib/libc/net/t_protoent tests-lib-tests compattestfile,atf
2967./usr/tests/lib/libc/net/t_servent tests-lib-tests compattestfile,atf 2968./usr/tests/lib/libc/net/t_servent tests-lib-tests compattestfile,atf
 2969./usr/tests/lib/libc/nls tests-lib-tests compattestfile,atf
 2970./usr/tests/lib/libc/nls/Atffile tests-lib-tests compattestfile,atf
 2971./usr/tests/lib/libc/nls/Kyuafile tests-lib-tests compattestfile,atf,kyua
 2972./usr/tests/lib/libc/nls/t_catalog tests-lib-tests compattestfile,atf
2968./usr/tests/lib/libc/regex tests-lib-tests compattestfile,atf 2973./usr/tests/lib/libc/regex tests-lib-tests compattestfile,atf
2969./usr/tests/lib/libc/regex/Atffile tests-lib-tests compattestfile,atf 2974./usr/tests/lib/libc/regex/Atffile tests-lib-tests compattestfile,atf
2970./usr/tests/lib/libc/regex/Kyuafile tests-lib-tests compattestfile,atf,kyua 2975./usr/tests/lib/libc/regex/Kyuafile tests-lib-tests compattestfile,atf,kyua
2971./usr/tests/lib/libc/regex/data tests-lib-tests compattestfile,atf 2976./usr/tests/lib/libc/regex/data tests-lib-tests compattestfile,atf
2972./usr/tests/lib/libc/regex/data/README tests-lib-tests compattestfile,atf 2977./usr/tests/lib/libc/regex/data/README tests-lib-tests compattestfile,atf
2973./usr/tests/lib/libc/regex/data/anchor.in tests-lib-tests compattestfile,atf 2978./usr/tests/lib/libc/regex/data/anchor.in tests-lib-tests compattestfile,atf
2974./usr/tests/lib/libc/regex/data/backref.in tests-lib-tests compattestfile,atf 2979./usr/tests/lib/libc/regex/data/backref.in tests-lib-tests compattestfile,atf
2975./usr/tests/lib/libc/regex/data/basic.dat tests-lib-tests compattestfile,atf 2980./usr/tests/lib/libc/regex/data/basic.dat tests-lib-tests compattestfile,atf
2976./usr/tests/lib/libc/regex/data/basic.in tests-lib-tests compattestfile,atf 2981./usr/tests/lib/libc/regex/data/basic.in tests-lib-tests compattestfile,atf
2977./usr/tests/lib/libc/regex/data/bracket.in tests-lib-tests compattestfile,atf 2982./usr/tests/lib/libc/regex/data/bracket.in tests-lib-tests compattestfile,atf
2978./usr/tests/lib/libc/regex/data/c_comments.in tests-lib-tests compattestfile,atf 2983./usr/tests/lib/libc/regex/data/c_comments.in tests-lib-tests compattestfile,atf
2979./usr/tests/lib/libc/regex/data/categorization.dat tests-lib-tests compattestfile,atf 2984./usr/tests/lib/libc/regex/data/categorization.dat tests-lib-tests compattestfile,atf
2980./usr/tests/lib/libc/regex/data/complex.in tests-lib-tests compattestfile,atf 2985./usr/tests/lib/libc/regex/data/complex.in tests-lib-tests compattestfile,atf

cvs diff -r1.160 -r1.161 src/etc/mtree/NetBSD.dist.tests (expand / switch to unified diff)

--- src/etc/mtree/NetBSD.dist.tests 2020/01/17 16:09:11 1.160
+++ src/etc/mtree/NetBSD.dist.tests 2020/03/08 22:08:46 1.161
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1# $NetBSD: NetBSD.dist.tests,v 1.160 2020/01/17 16:09:11 christos Exp $ 1# $NetBSD: NetBSD.dist.tests,v 1.161 2020/03/08 22:08:46 mgorny Exp $
2 2
3./usr/libdata/debug/usr/tests 3./usr/libdata/debug/usr/tests
4./usr/libdata/debug/usr/tests/atf 4./usr/libdata/debug/usr/tests/atf
5./usr/libdata/debug/usr/tests/atf/atf-c 5./usr/libdata/debug/usr/tests/atf/atf-c
6./usr/libdata/debug/usr/tests/atf/atf-c/detail 6./usr/libdata/debug/usr/tests/atf/atf-c/detail
7./usr/libdata/debug/usr/tests/atf/atf-c++ 7./usr/libdata/debug/usr/tests/atf/atf-c++
8./usr/libdata/debug/usr/tests/atf/atf-c++/detail 8./usr/libdata/debug/usr/tests/atf/atf-c++/detail
9./usr/libdata/debug/usr/tests/atf/formats 9./usr/libdata/debug/usr/tests/atf/formats
10./usr/libdata/debug/usr/tests/atf/test-programs 10./usr/libdata/debug/usr/tests/atf/test-programs
11./usr/libdata/debug/usr/tests/atf/tools 11./usr/libdata/debug/usr/tests/atf/tools
12./usr/libdata/debug/usr/tests/bin 12./usr/libdata/debug/usr/tests/bin
13./usr/libdata/debug/usr/tests/bin/df 13./usr/libdata/debug/usr/tests/bin/df
14./usr/libdata/debug/usr/tests/crypto 14./usr/libdata/debug/usr/tests/crypto
@@ -78,26 +78,27 @@ @@ -78,26 +78,27 @@
78./usr/libdata/debug/usr/tests/lib/libc 78./usr/libdata/debug/usr/tests/lib/libc
79./usr/libdata/debug/usr/tests/lib/libc/atomic 79./usr/libdata/debug/usr/tests/lib/libc/atomic
80./usr/libdata/debug/usr/tests/lib/libc/c063 80./usr/libdata/debug/usr/tests/lib/libc/c063
81./usr/libdata/debug/usr/tests/lib/libc/db 81./usr/libdata/debug/usr/tests/lib/libc/db
82./usr/libdata/debug/usr/tests/lib/libc/gen 82./usr/libdata/debug/usr/tests/lib/libc/gen
83./usr/libdata/debug/usr/tests/lib/libc/gen/execve 83./usr/libdata/debug/usr/tests/lib/libc/gen/execve
84./usr/libdata/debug/usr/tests/lib/libc/gen/posix_spawn 84./usr/libdata/debug/usr/tests/lib/libc/gen/posix_spawn
85./usr/libdata/debug/usr/tests/lib/libc/hash 85./usr/libdata/debug/usr/tests/lib/libc/hash
86./usr/libdata/debug/usr/tests/lib/libc/locale 86./usr/libdata/debug/usr/tests/lib/libc/locale
87./usr/libdata/debug/usr/tests/lib/libc/inet 87./usr/libdata/debug/usr/tests/lib/libc/inet
88./usr/libdata/debug/usr/tests/lib/libc/misc 88./usr/libdata/debug/usr/tests/lib/libc/misc
89./usr/libdata/debug/usr/tests/lib/libc/net 89./usr/libdata/debug/usr/tests/lib/libc/net
90./usr/libdata/debug/usr/tests/lib/libc/net/getaddrinfo 90./usr/libdata/debug/usr/tests/lib/libc/net/getaddrinfo
 91./usr/libdata/debug/usr/tests/lib/libc/nls
91./usr/libdata/debug/usr/tests/lib/libc/regex 92./usr/libdata/debug/usr/tests/lib/libc/regex
92./usr/libdata/debug/usr/tests/lib/libc/rpc 93./usr/libdata/debug/usr/tests/lib/libc/rpc
93./usr/libdata/debug/usr/tests/lib/libc/setjmp 94./usr/libdata/debug/usr/tests/lib/libc/setjmp
94./usr/libdata/debug/usr/tests/lib/libc/ssp 95./usr/libdata/debug/usr/tests/lib/libc/ssp
95./usr/libdata/debug/usr/tests/lib/libc/stdio 96./usr/libdata/debug/usr/tests/lib/libc/stdio
96./usr/libdata/debug/usr/tests/lib/libc/stdlib 97./usr/libdata/debug/usr/tests/lib/libc/stdlib
97./usr/libdata/debug/usr/tests/lib/libc/string 98./usr/libdata/debug/usr/tests/lib/libc/string
98./usr/libdata/debug/usr/tests/lib/libc/sys 99./usr/libdata/debug/usr/tests/lib/libc/sys
99./usr/libdata/debug/usr/tests/lib/libc/termios 100./usr/libdata/debug/usr/tests/lib/libc/termios
100./usr/libdata/debug/usr/tests/lib/libc/tls 101./usr/libdata/debug/usr/tests/lib/libc/tls
101./usr/libdata/debug/usr/tests/lib/libc/ttyio 102./usr/libdata/debug/usr/tests/lib/libc/ttyio
102./usr/libdata/debug/usr/tests/lib/libc/time 103./usr/libdata/debug/usr/tests/lib/libc/time
103./usr/libdata/debug/usr/tests/lib/libcrypt 104./usr/libdata/debug/usr/tests/lib/libcrypt
@@ -268,26 +269,27 @@ @@ -268,26 +269,27 @@
268./usr/tests/lib/libc/c063 269./usr/tests/lib/libc/c063
269./usr/tests/lib/libc/db 270./usr/tests/lib/libc/db
270./usr/tests/lib/libc/gen 271./usr/tests/lib/libc/gen
271./usr/tests/lib/libc/gen/execve 272./usr/tests/lib/libc/gen/execve
272./usr/tests/lib/libc/gen/posix_spawn 273./usr/tests/lib/libc/gen/posix_spawn
273./usr/tests/lib/libc/hash 274./usr/tests/lib/libc/hash
274./usr/tests/lib/libc/hash/data 275./usr/tests/lib/libc/hash/data
275./usr/tests/lib/libc/locale 276./usr/tests/lib/libc/locale
276./usr/tests/lib/libc/inet 277./usr/tests/lib/libc/inet
277./usr/tests/lib/libc/misc 278./usr/tests/lib/libc/misc
278./usr/tests/lib/libc/net 279./usr/tests/lib/libc/net
279./usr/tests/lib/libc/net/getaddrinfo 280./usr/tests/lib/libc/net/getaddrinfo
280./usr/tests/lib/libc/net/getaddrinfo/data 281./usr/tests/lib/libc/net/getaddrinfo/data
 282./usr/tests/lib/libc/nls
281./usr/tests/lib/libc/regex 283./usr/tests/lib/libc/regex
282./usr/tests/lib/libc/regex/data 284./usr/tests/lib/libc/regex/data
283./usr/tests/lib/libc/rpc 285./usr/tests/lib/libc/rpc
284./usr/tests/lib/libc/setjmp 286./usr/tests/lib/libc/setjmp
285./usr/tests/lib/libc/ssp 287./usr/tests/lib/libc/ssp
286./usr/tests/lib/libc/stdio 288./usr/tests/lib/libc/stdio
287./usr/tests/lib/libc/stdlib 289./usr/tests/lib/libc/stdlib
288./usr/tests/lib/libc/string 290./usr/tests/lib/libc/string
289./usr/tests/lib/libc/sys 291./usr/tests/lib/libc/sys
290./usr/tests/lib/libc/termios 292./usr/tests/lib/libc/termios
291./usr/tests/lib/libc/tls 293./usr/tests/lib/libc/tls
292./usr/tests/lib/libc/ttyio 294./usr/tests/lib/libc/ttyio
293./usr/tests/lib/libc/time 295./usr/tests/lib/libc/time

cvs diff -r1.49 -r1.50 src/tests/lib/libc/Makefile (expand / switch to unified diff)

--- src/tests/lib/libc/Makefile 2019/02/17 12:24:17 1.49
+++ src/tests/lib/libc/Makefile 2020/03/08 22:08:46 1.50
@@ -1,22 +1,22 @@ @@ -1,22 +1,22 @@
1# $NetBSD: Makefile,v 1.49 2019/02/17 12:24:17 isaki Exp $ 1# $NetBSD: Makefile,v 1.50 2020/03/08 22:08:46 mgorny Exp $
2 2
3.include "Makefile.inc" 3.include "Makefile.inc"
4.include <bsd.own.mk> 4.include <bsd.own.mk>
5 5
6SUBDIR+= tls_dso .WAIT sync 6SUBDIR+= tls_dso .WAIT sync
7 7
8TESTS_SUBDIRS+= atomic 8TESTS_SUBDIRS+= atomic
9TESTS_SUBDIRS+= c063 db gen hash inet locale misc net regex rpc setjmp stdlib 9TESTS_SUBDIRS+= c063 db gen hash inet locale misc net nls regex rpc setjmp
10TESTS_SUBDIRS+= stdio string sys termios time tls ttyio 10TESTS_SUBDIRS+= stdlib stdio string sys termios time tls ttyio
11 11
12.if ${HAVE_SSP} == "yes" 12.if ${HAVE_SSP} == "yes"
13TESTS_SUBDIRS+= ssp 13TESTS_SUBDIRS+= ssp
14.endif 14.endif
15 15
16TESTSDIR= ${TESTSBASE}/lib/libc 16TESTSDIR= ${TESTSBASE}/lib/libc
17 17
18TESTS_C+= t_convfp 18TESTS_C+= t_convfp
19TESTS_C+= t_gdtoa 19TESTS_C+= t_gdtoa
20TESTS_C+= t_cdb 20TESTS_C+= t_cdb
21 21
22.include <bsd.test.mk> 22.include <bsd.test.mk>

File Added: src/tests/lib/libc/nls/Makefile
# $NetBSD: Makefile,v 1.1 2020/03/08 22:08:46 mgorny Exp $

.include <bsd.own.mk>

TESTSDIR=	${TESTSBASE}/lib/libc/nls

TESTS_C+=	t_catalog

.include <bsd.test.mk>

File Added: src/tests/lib/libc/nls/t_catalog.c
/* $NetBSD: t_catalog.c,v 1.1 2020/03/08 22:08:46 mgorny Exp $ */

/*-
 * Copyright (c) 2020 The NetBSD Foundation, Inc.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions and the following disclaimer.
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions and the following disclaimer in the
 *    documentation and/or other materials provided with the distribution.
 *
 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
 * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
 * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
 * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 */
#include <sys/cdefs.h>
__RCSID("$NetBSD: t_catalog.c,v 1.1 2020/03/08 22:08:46 mgorny Exp $");

#include <atf-c.h>
#include <errno.h>
#include <stdio.h>	/* Needed for sys_nerr on FreeBSD */
#include <limits.h>
#include <locale.h>
#include <nl_types.h>
#include <signal.h>
#include <string.h>

ATF_TC(catalog_errno);
ATF_TC_HEAD(catalog_errno, tc)
{
	atf_tc_set_md_var(tc, "descr", "Test whether C catalog covers all "
	    "errno values");
}

ATF_TC_BODY(catalog_errno, tc)
{
	int i;
	nl_catd catd = catopen("libc", NL_CAT_LOCALE);
	ATF_REQUIRE(catd);

	for (i = 1; i < sys_nerr; i++) {
		const char *strerr = sys_errlist[i];
		const char *caterr = catgets(catd, 1, i, "");
		ATF_CHECK_MSG(!strcmp(strerr, caterr),
		    "Catalog message mismatch for errno=%d (sys_errlist: '%s', "
		    "catalog: '%s')\n", i, strerr, caterr);
	}

	catclose(catd);
}

ATF_TC(catalog_signal);
ATF_TC_HEAD(catalog_signal, tc)
{
	atf_tc_set_md_var(tc, "descr", "Test whether C catalog covers all "
	    "signal values");
}

ATF_TC_BODY(catalog_signal, tc)
{
	int i;
	nl_catd catd = catopen("libc", NL_CAT_LOCALE);
	ATF_REQUIRE(catd);

	for (i = 1; i < SIGRTMIN-1; i++) {
		const char *strerr = sys_siglist[i];
		const char *caterr = catgets(catd, 2, i, "");
		ATF_CHECK_MSG(!strcmp(strerr, caterr),
		    "Catalog message mismatch for signal=%d (sys_siglist: '%s', "
		    "catalog: '%s')\n", i, strerr, caterr);
	}

	catclose(catd);
}

ATF_TP_ADD_TCS(tp)
{
	(void)setlocale(LC_ALL, "C");

	ATF_TP_ADD_TC(tp, catalog_errno);
	ATF_TP_ADD_TC(tp, catalog_signal);

	return atf_no_error();
}