Import atf 0.22 snapshot ca73d08c3fc1ecffc1f1c97458c31ab82c12bb01This includes improvements to the atf-sh helper functions thatsignificantly reduce the number of spawned processes for each testan
Import atf 0.22 snapshot ca73d08c3fc1ecffc1f1c97458c31ab82c12bb01This includes improvements to the atf-sh helper functions thatsignificantly reduce the number of spawned processes for each testand therefore speeds up running the testsuite noticeably.(cherry picked from commit c203bd70b5957f85616424b6fa374479372d06e3)
show more ...
Add requiered programs (cc and c++) for some lib/atf regression testsPR: 236889Reviewed by: ngieApproved by: emaste (on IRC)MFC after: 1 monthSponsored by: Netflix
DIRDEPS_BUILD: Update dependencies.Sponsored by: Dell EMC Isilon
Merge ^/user/ngie/release-pkg-fix-tests to unbreak how test files are installedafter r298107Summary 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 installedafter r298107Summary 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 examplesso it's clear that ${PACKAGES}FILES is the suggested way forward in terms ofreplacing FILES. share/mk/bsd.README didn't seem like the appropriate methodof communicating that info.MFC after: never probablyX-MFC with: r298107PR: 209114Relnotes: yesTested with: buildworld, installworld, checkworld; buildworld, packageworldSponsored by: EMC / Isilon Storage Division
DIRDEPS_BUILD: Connect MK_TESTS.Sponsored by: EMC / Isilon Storage Division
Avoid adding the '-release' suffix to non-debug kernel packages.Sponsored by: The FreeBSD Foundation
Refactor the test/ Makefiles after recent changes to bsd.test.mk (r289158) andnetbsd-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) andnetbsd-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 clarityMFC after: 2 weeksSponsored by: EMC / Isilon Storage Divison
MFV: Import atf-0.21.
Change libatf-c and libatf-c++ to be private libraries.We should not be leaking these interfaces to the outside world giventhat it's much easier for third-party components to use the devel/atfpac
Change libatf-c and libatf-c++ to be private libraries.We should not be leaking these interfaces to the outside world giventhat it's much easier for third-party components to use the devel/atfpackage from ports.As a side-effect, we can also drop the ATF pkgconfig and aclocal filesfrom the base system. Nothing in the base system needs these, and itwas quite ugly to have to get them installed only so that a few portscould build. The offending ports have been fixed to depend ondevel/atf explicitly.Reviewed by: bapt
Make bsd.test.mk the only public mk fragment for the building of tests.Change {atf,plain,tap}.test.mk to be internal implementation details ofbsd.test.mk. Makefiles that build tests should now on
Make bsd.test.mk the only public mk fragment for the building of tests.Change {atf,plain,tap}.test.mk to be internal implementation details ofbsd.test.mk. Makefiles that build tests should now only include bsd.test.mkand declaratively specify what they want to build, without worrying aboutthe internal implementation of the mk files.The reason for this change is to permit building test programs of differentinterfaces from a single directory, which is something I had a need forwhile porting tests over from src/tools/regression/.Additionally, this change makes it possible to perform some other requestedchanges to bsd.test.mk in an easier manner. Coming soon.
MFV: Import atf-0.20.
Respect the original layout of the atf-{c,c++} tests.Put test programs for internal modules into a 'detail' subdirectory of thelibatf-c and libatf-c++ test directories, just as the upstream distri
Respect the original layout of the atf-{c,c++} tests.Put test programs for internal modules into a 'detail' subdirectory of thelibatf-c and libatf-c++ test directories, just as the upstream distributiondoes. This is necessary because the tests assume such layout to find theprocess_helper program, and currently fail because of this divergence.MFC after: 1 week
Fix the build of some ATF tests.When building various programs from a single Makefile, program-specificvariables are of the form <VAR>.<PROG>, not <VAR>_<PROG>. Fix thisobvious typo to fix the b
Fix the build of some ATF tests.When building various programs from a single Makefile, program-specificvariables are of the form <VAR>.<PROG>, not <VAR>_<PROG>. Fix thisobvious typo to fix the build when WITH_TESTS=yes.I am not sure how this ever worked before given that manual inspectionof bsd.progs.mk clearly shows that the expected character between thetwo components is a dot and not an underscore... but I suspect thechanges in r258095 exposed this oddity.Approved by: rpaulo (mentor)
Build and install the atf tests.Reviewed by: freebsd-testingApproved by: rpaulo (mentor)