|
Revision tags: release/13.4.0-p5, release/13.5.0-p1, release/14.2.0-p3, release/13.5.0, release/14.2.0-p2, release/14.1.0-p8, release/13.4.0-p4, release/14.1.0-p7, release/14.2.0-p1, release/13.4.0-p3, release/14.2.0, release/13.4.0, release/14.1.0, release/13.3.0 |
|
| #
acb47064 |
| 06-Dec-2023 |
Robert Clausecker <[email protected]> |
lib/libc/tests/string: add memrchr unit tests
The "values" test case is specifically crafted to detect the off-by-one error previous discovered in the scalar strchrnul implementation.
Tested by: de
lib/libc/tests/string: add memrchr unit tests
The "values" test case is specifically crafted to detect the off-by-one error previous discovered in the scalar strchrnul implementation.
Tested by: developers@, exp-run Approved by: mjg MFC after: 1 month MFC to: stable/14 PR: 275785 Differential Revision: https://reviews.freebsd.org/D42925
(cherry picked from commit 691ff1832e09a6ccbc8f5b04c88cafc7452b3ce6)
show more ...
|
| #
de2d155d |
| 03-Dec-2023 |
Robert Clausecker <[email protected]> |
lib/libc/tests/string: add unit tests for memccpy()
Adapted from the strlcpy() unit tests.
Tested by: developers@, exp-run Approved by: mjg MFC after: 1 month MFC to: stable/14 PR: 275785
(cherr
lib/libc/tests/string: add unit tests for memccpy()
Adapted from the strlcpy() unit tests.
Tested by: developers@, exp-run Approved by: mjg MFC after: 1 month MFC to: stable/14 PR: 275785
(cherry picked from commit e4b7b0bcbc741f0998640c2ba55ec00ba613bb75)
show more ...
|
|
Revision tags: release/14.0.0 |
|
| #
f5d63ae2 |
| 09-Nov-2023 |
Robert Clausecker <[email protected]> |
lib/libc/tests/string: add unit test for strlcpy
A straightforward derivation from the stpncpy unit test.
Sponsored by: The FreeBSD Foundation Tested by: developers@, exp-run Approved by: mjg MFC a
lib/libc/tests/string: add unit test for strlcpy
A straightforward derivation from the stpncpy unit test.
Sponsored by: The FreeBSD Foundation Tested by: developers@, exp-run Approved by: mjg MFC after: 1 month MFC to: stable/14 PR: 275785 Differential Revision: https://reviews.freebsd.org/D42863
(cherry picked from commit f7098b8659923873a7c60b64cb68182e470786f9)
show more ...
|
| #
098997c5 |
| 28-Sep-2023 |
Robert Clausecker <[email protected]> |
lib/libc/tests/string: add unit tests for strncmp(3)
These are patterned after the previously added (D41970) strcmp tests, but are extended to check for various length conditions.
Sponsored by: The
lib/libc/tests/string: add unit tests for strncmp(3)
These are patterned after the previously added (D41970) strcmp tests, but are extended to check for various length conditions.
Sponsored by: The FreeBSD Foundation Tested by: developers@, exp-run Approved by: mjg MFC after: 1 month MFC to: stable/14 PR: 275785 Differential Revision: https://reviews.freebsd.org/D42122
(cherry picked from commit 459ddefcc9dcc010f6f7445285e61e2b6780379c)
show more ...
|
| #
c91cfb7f |
| 30-Aug-2023 |
Robert Clausecker <[email protected]> |
lib/libc/tests/string: expand memcmp test to bcmp, timingsafe_{b,mem}cmp
The four functions more or less perform the same operation. Reuse the same unit test with slight changes so we can cover them
lib/libc/tests/string: expand memcmp test to bcmp, timingsafe_{b,mem}cmp
The four functions more or less perform the same operation. Reuse the same unit test with slight changes so we can cover them all. Constant-time operation is not verified for the timingsafe_* functions.
Sponsored by: The FreeBSD Foundation Approved by: ngie MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D41528
(cherry picked from commit c6cc06d465a98270ef734ffec7c9012ec3a1bd17)
show more ...
|
| #
c35334b0 |
| 22-Sep-2023 |
Robert Clausecker <[email protected]> |
lib/libc/tests/string: add extended unit tests for strcmp()
This changeset add a new set of tests that comprehensively test strcmp() on various alignments of the input. This made it easy to smoke ou
lib/libc/tests/string: add extended unit tests for strcmp()
This changeset add a new set of tests that comprehensively test strcmp() on various alignments of the input. This made it easy to smoke out many exciting new bugs in the new SSE strcmp() implementation from D41971.
MFC after: 1 week Reviewed by: ngie Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D41970
(cherry picked from commit b49596de2622a51e5673ba2c0b3718cd88a2aa41)
show more ...
|
| #
73883def |
| 21-Aug-2023 |
Robert Clausecker <[email protected]> |
lib/libc/tests/string: derive strspn(3) tests from strcspn(3) tests
To cover the new optimised amd64 strspn(3) SIMD implementation, extend the previously written strcspn(3) unit test to also cover s
lib/libc/tests/string: derive strspn(3) tests from strcspn(3) tests
To cover the new optimised amd64 strspn(3) SIMD implementation, extend the previously written strcspn(3) unit test to also cover strspn(3).
Sponsored by: The FreeBSD Foundation Approved by: mjg MFC after: 1 week MFC to: stable/14 Differential Revision: https://reviews.freebsd.org/D41567
(cherry picked from commit 468adddd75f6461fcdd2151122d85879ec592a5b)
show more ...
|
| #
08eab361 |
| 20-Aug-2023 |
Robert Clausecker <[email protected]> |
lib/libc/tests/string: add unit tests for strcspn(3)
We currently use the NetBSD test suite to cover strcspn(3). It only contains a very rudimentary test of this function. This all new set of unit
lib/libc/tests/string: add unit tests for strcspn(3)
We currently use the NetBSD test suite to cover strcspn(3). It only contains a very rudimentary test of this function. This all new set of unit tests for the FreeBSD test suite should cover many more edge cases relating to alignment issues.
Sponsored by: The FreeBSD Foundation Approved by: mjg MFC after: 1 week MFC to: stable/14 Differential Revision: https://reviews.freebsd.org/D41557
(cherry picked from commit 35a5359406fe779186d1fd7131c95927fefe20be)
show more ...
|
| #
d0b2dbfa |
| 16-Aug-2023 |
Warner Losh <[email protected]> |
Remove $FreeBSD$: one-line sh pattern
Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
|
| #
49390697 |
| 23-Jun-2023 |
Robert Clausecker <[email protected]> |
lib/libc/tests/string: add unit tests for ffs, ffsl, ffsll, fls, flsl, and flsll
Also supply CFLAGS+=-fno-builtin to ensure our unit tests actually test libc functions and not clang's builtins.
Spo
lib/libc/tests/string: add unit tests for ffs, ffsl, ffsll, fls, flsl, and flsll
Also supply CFLAGS+=-fno-builtin to ensure our unit tests actually test libc functions and not clang's builtins.
Sponsored by: FreeBSD Foundation Approved by: kevans MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D40729
show more ...
|
|
Revision tags: release/13.2.0 |
|
| #
606d0e4a |
| 01-Feb-2023 |
Dag-Erling Smørgrav <[email protected]> |
libc: Add tests for strchrnul(3).
MFC after: 1 week Sponsored by: Klara, Inc. Reviewed by: allanjude Differential Revision: https://reviews.freebsd.org/D38286
|
|
Revision tags: release/12.4.0 |
|
| #
05c9a015 |
| 24-Aug-2022 |
Aymeric Wibo <[email protected]> |
libc: Add strverscmp(3) and versionsort(3)
Add a strverscmp(3) function to libc, a GNU extension I implemented by reading its glibc manual page. It orders strings following a much more natural order
libc: Add strverscmp(3) and versionsort(3)
Add a strverscmp(3) function to libc, a GNU extension I implemented by reading its glibc manual page. It orders strings following a much more natural ordering (e.g. "ent1 < ent2 < ent10" as opposed to "ent1 < ent10 < ent2" with strcmp(3)'s lexicographic ordering).
Also add versionsort(3) for use as scandir(3)'s compar argument.
Update manual page for scandir(3) and add one for strverscmp(3).
Reviewed by: pstef, gbe, kib MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D35807
show more ...
|
|
Revision tags: release/13.1.0, release/12.3.0, release/13.0.0, release/12.2.0, release/11.4.0, release/12.1.0, release/11.3.0, release/12.0.0, release/11.2.0, release/10.4.0, release/11.1.0 |
|
| #
9851b340 |
| 30-Mar-2017 |
Konstantin Belousov <[email protected]> |
Implement the memset_s(3) function as specified by the C11 ISO/IEC 9899:2011 Appendix K 3.7.4.1.
Other needed supporting types, defines and constraint_handler infrastructure is added as specified in
Implement the memset_s(3) function as specified by the C11 ISO/IEC 9899:2011 Appendix K 3.7.4.1.
Other needed supporting types, defines and constraint_handler infrastructure is added as specified in the C11 spec.
Submitted by: Tom Rix <[email protected]> Sponsored by: Juniper Networks Discussed with: ed MFC after: 3 weeks Differential revision: https://reviews.freebsd.org/D9903 Differential revision: https://reviews.freebsd.org/D10161
show more ...
|
|
Revision tags: release/11.0.1, release/11.0.0 |
|
| #
73a33477 |
| 15-Jul-2016 |
Baptiste Daroussin <[email protected]> |
Add a regression test to make sure the Russian collation is actually working
when importing collation support from Dragonfly/Illumos amdmi3@ tested the collation branch and reported an issue with Ru
Add a regression test to make sure the Russian collation is actually working
when importing collation support from Dragonfly/Illumos amdmi3@ tested the collation branch and reported an issue with Russian collation. John Marino fixed the issue in Dragonfly and I merged it back to FreeBSD.
Now that Illumos is working on merging our fixes they (Lauri Tirkkonen) found issues with the commit that fixes the russian collation in UTF-8 that resulted in a crash with strxfrm(3) and the ISO-8859-5 locale (fixed in FreeBSD r302916). This small test was written to ensure we do not bring back the old issue with russian collation while fixing the other issue.
show more ...
|
| #
01f8ac1b |
| 15-Jul-2016 |
Baptiste Daroussin <[email protected]> |
Add a regression test about the crash with strxfrm and ISO8859-5 locales
|
| #
430f7286 |
| 04-May-2016 |
Enji Cooper <[email protected]> |
Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed after r298107
Summary of changes:
- Replace all instances of FILES/TESTS with ${PACKAGE}FILES. This ensures that na
Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installed after r298107
Summary of changes:
- Replace all instances of FILES/TESTS with ${PACKAGE}FILES. This ensures that namespacing is kept with FILES appropriately, and that this shouldn't need to be repeated if the namespace changes -- only the definition of PACKAGE needs to be changed - Allow PACKAGE to be overridden by callers instead of forcing it to always be `tests`. In the event we get to the point where things can be split up enough in the base system, it would make more sense to group the tests with the blocks they're a part of, e.g. byacc with byacc-tests, etc - Remove PACKAGE definitions where possible, i.e. where FILES wasn't used previously. - Remove unnecessary TESTSPACKAGE definitions; this has been elided into bsd.tests.mk - Remove unnecessary BINDIRs used previously with ${PACKAGE}FILES; ${PACKAGE}FILESDIR is now automatically defined in bsd.test.mk. - Fix installation of files under data/ subdirectories in lib/libc/tests/hash and lib/libc/tests/net/getaddrinfo - Remove unnecessary .include <bsd.own.mk>s (some opportunistic cleanup)
Document the proposed changes in share/examples/tests/tests/... via examples so it's clear that ${PACKAGES}FILES is the suggested way forward in terms of replacing FILES. share/mk/bsd.README didn't seem like the appropriate method of communicating that info.
MFC after: never probably X-MFC with: r298107 PR: 209114 Relnotes: yes Tested with: buildworld, installworld, checkworld; buildworld, packageworld Sponsored by: EMC / Isilon Storage Division
show more ...
|
|
Revision tags: release/10.3.0 |
|
| #
ee3147b5 |
| 06-Mar-2016 |
Jilles Tjoelker <[email protected]> |
libc: Add some tests for memcmp().
|
| #
43faedc1 |
| 02-Feb-2016 |
Glen Barber <[email protected]> |
First pass to fix the 'tests' packages.
Sponsored by: The FreeBSD Foundation
|
| #
eacae6dc |
| 04-Dec-2015 |
Bryan Drewery <[email protected]> |
Fix LDADD/DPADD that should be LIBADD.
Sponsored by: EMC / Isilon Storage Division
|
| #
347267dc |
| 08-Nov-2015 |
Enji Cooper <[email protected]> |
Integrate tools/regression/lib/libc/string into the FreeBSD test suite as lib/libc/tests/string
MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
|
| #
c5a5e42c |
| 02-Nov-2015 |
Enji Cooper <[email protected]> |
Add _test suffix to multiple tests in lib/libc to conform to the design noted in the FreeBSD Test Suite wiki
MFC after: 3 days Sponsored by: EMC / Isilon Storage Division
|
| #
b2d48be1 |
| 12-Oct-2015 |
Enji Cooper <[email protected]> |
Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and netbsd-tests.test.mk (r289151)
- Eliminate explicit OBJTOP/SRCTOP setting - Convert all ad hoc NetBSD test integration
Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) and netbsd-tests.test.mk (r289151)
- Eliminate explicit OBJTOP/SRCTOP setting - Convert all ad hoc NetBSD test integration over to netbsd-tests.test.mk - Remove unnecessary TESTSDIR setting - Use SRCTOP where possible for clarity
MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Divison
show more ...
|
|
Revision tags: release/10.2.0, release/10.1.0 |
|
| #
2f121787 |
| 04-Nov-2014 |
Enji Cooper <[email protected]> |
Add reachover Makefiles for contrib/netbsd-tests/lib/libc; this adds approximately 500 new testcases
Various TODOs have been sprinkled around the Makefiles for items that even need to be ported (mis
Add reachover Makefiles for contrib/netbsd-tests/lib/libc; this adds approximately 500 new testcases
Various TODOs have been sprinkled around the Makefiles for items that even need to be ported (missing features), testcases have issues with building/linking, or issues at runtime.
A variant of this code has been tested extensively on amd64 and i386 10-STABLE/11-CURRENT for several months without issue. It builds on other architectures, but the code will remain off until I have prove it works on virtual hardware or real hardware on other architectures
In collaboration with: pho, Casey Peel <[email protected]> Sponsored by: EMC / Isilon Storage Division
show more ...
|