115 lines · plain
1add_custom_target(libc-strings-tests)2 3add_libc_test(4 bcopy_test5 SUITE6 libc-strings-tests7 SRCS8 bcopy_test.cpp9 DEPENDS10 libc.src.strings.bcopy11 LINK_LIBRARIES12 LibcMemoryHelpers13)14 15add_libc_test(16 ffs_test17 SUITE18 libc-strings-tests19 SRCS20 ffs_test.cpp21 DEPENDS22 libc.src.strings.ffs23)24 25add_libc_test(26 ffsl_test27 SUITE28 libc-strings-tests29 SRCS30 ffsl_test.cpp31 DEPENDS32 libc.src.strings.ffsl33)34 35add_libc_test(36 ffsll_test37 SUITE38 libc-strings-tests39 SRCS40 ffsll_test.cpp41 DEPENDS42 libc.src.strings.ffsll43)44 45add_libc_test(46 index_test47 SUITE48 libc-strings-tests49 SRCS50 index_test.cpp51 DEPENDS52 libc.src.strings.index53 libc.test.src.string.strchr_test_support54)55 56add_libc_test(57 rindex_test58 SUITE59 libc-strings-tests60 SRCS61 rindex_test.cpp62 DEPENDS63 libc.src.strings.rindex64 libc.test.src.string.strchr_test_support65)66 67add_libc_test(68 strcasecmp_test69 SUITE70 libc-strings-tests71 SRCS72 strcasecmp_test.cpp73 DEPENDS74 libc.src.strings.strcasecmp75)76 77add_libc_test(78 strcasecmp_l_test79 SUITE80 libc-strings-tests81 SRCS82 strcasecmp_l_test.cpp83 DEPENDS84 libc.hdr.locale_macros85 libc.src.locale.freelocale86 libc.src.locale.newlocale87 libc.src.strings.strcasecmp_l88)89 90add_libc_test(91 strncasecmp_test92 SUITE93 libc-strings-tests94 SRCS95 strncasecmp_test.cpp96 DEPENDS97 libc.src.strings.strncasecmp98)99 100add_libc_test(101 strncasecmp_l_test102 SUITE103 libc-strings-tests104 SRCS105 strncasecmp_l_test.cpp106 DEPENDS107 libc.hdr.locale_macros108 libc.src.locale.freelocale109 libc.src.locale.newlocale110 libc.src.strings.strncasecmp_l111)112 113add_libc_multi_impl_test(bcmp libc-strings-tests SRCS bcmp_test.cpp)114add_libc_multi_impl_test(bzero libc-strings-tests SRCS bzero_test.cpp)115