#
259e6fef |
| 01-Jan-2024 |
Warner Losh <imp@FreeBSD.org> |
test-includes: Add -ansi to the compile line to catch problems
We support C89 files, but compile everything in the tree with C99 or newer. By compiling these -ansi, that will force C89 which doesn't
test-includes: Add -ansi to the compile line to catch problems
We support C89 files, but compile everything in the tree with C99 or newer. By compiling these -ansi, that will force C89 which doesn't understand inline. All our header files must use __inline instead of inline when they define inline functions.
Sponsored by: Netflix Reviewed by: emaste Differential Revision: https://reviews.freebsd.org/D43235
show more ...
|
Revision tags: release/14.0.0, release/13.2.0, release/12.4.0, release/13.1.0 |
|
#
44b36b80 |
| 22-Mar-2022 |
Brooks Davis <brooks@FreeBSD.org> |
test-includes: improve portability
FreeBSD's shell permits [^bar] to match characters not in [bar] like common regular expressions. This is non-portable and '!' should be used in place of '^' for po
test-includes: improve portability
FreeBSD's shell permits [^bar] to match characters not in [bar] like common regular expressions. This is non-portable and '!' should be used in place of '^' for portability.
Reported by: Nathaniel Wesley Filardo Issue: https://github.com/CTSRD-CHERI/cheribsd/issues/1321 Reviewed by: imp Differential Revision: https://reviews.freebsd.org/D34597
show more ...
|
#
5ae6cc00 |
| 09-Feb-2022 |
Warner Losh <imp@FreeBSD.org> |
test-includes: Simplify $OBJDIR requirements
s=/=_=g in tested names so that all the objects live in $OBJDIR. This is more robust than depending on side effects of auto OBJDIR features and should fi
test-includes: Simplify $OBJDIR requirements
s=/=_=g in tested names so that all the objects live in $OBJDIR. This is more robust than depending on side effects of auto OBJDIR features and should fix buildworld issues some people have seen.
Suggested by: sjg@ Sponsored by: Netflix
show more ...
|
#
2f3c018b |
| 16-Dec-2021 |
Kristof Provost <kp@FreeBSD.org> |
test-includes: use the same header set for badfiles.inc as for testing
This ensures we don't end up listing files we've excluded (e.g. those starting with _). Add a slight hack to preserve the exist
test-includes: use the same header set for badfiles.inc as for testing
This ensures we don't end up listing files we've excluded (e.g. those starting with _). Add a slight hack to preserve the existing order (sys, then net) in badfiles.inc.
Reviewed by: imp Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D33505
show more ...
|
#
7a171e30 |
| 15-Dec-2021 |
Warner Losh <imp@FreeBSD.org> |
test-includes: Build a library instead of a binary
We need to build the .o's, but don't need to link. Build a static library instead of a binary to accmoplish this. This removes the need to have all
test-includes: Build a library instead of a binary
We need to build the .o's, but don't need to link. Build a static library instead of a binary to accmoplish this. This removes the need to have all the libc and crt stuff built, which is required for a binary. In addition, trying to build a non-standard binary runs into trouble with undefined symbols on arm related to EABI, even when using a simplified startup with -nostdlib -e start.
Turn back on testing includes, now that it works.
Sponsored by: Netflix Reviewed by: brooks, markj (prior version) Differential Revision: https://reviews.freebsd.org/D33452
show more ...
|
#
dd55767b |
| 15-Dec-2021 |
Warner Losh <imp@FreeBSD.org> |
Test various header files to ensure they can be included by themselves.
A number of header files in sys/* have, going back to 7th Edition Unix in 1979, reqiured other files (like sys/types.h) to com
Test various header files to ensure they can be included by themselves.
A number of header files in sys/* have, going back to 7th Edition Unix in 1979, reqiured other files (like sys/types.h) to compile. Likewise the 4BSD networking code has had prerequisites. However, going back to around the turn of the 21st century, other systems have made them be independently include-able (wide-spread header include protection post-dates 7th edition Unix by maybe 3 or so years judging from USENET source postings). Start down the path of making them all independently include-able by creating this test that fails buildworld when they are not.
The file 'badfiles.inc' contains a list of the currently broken files that cannot be included w/o any prerequisites. As files are fixed, 'make badfiles.inc' should be re-run to remove them from the list. Note: All files that start with an underscore are considered internal and not tested.
Please note: once a file is removed from badfiles.inc, it must pass on all architectures. Buildworld through at least the _includes target is needed to ensure its working (though a buildkernel should also be done on all architectures as well).
Sponsored by: Netflix Reviewed by: brooks, markj Differential Revision: https://reviews.freebsd.org/D32498
show more ...
|