Add SPDX tags for libcasper(3) and services.MFC after: 2 weeks
Build service tests with Casper support.
DIRDEPS_BUILD: Connect new directories.Sponsored by: Dell EMC Isilon
Introduce caspermocks.The idea behinds mocks is that we don't need to ifdef a lot of code intools itself but those defines are hidden in the casper library.Right now the mocks are implemented as
Introduce caspermocks.The idea behinds mocks is that we don't need to ifdef a lot of code intools itself but those defines are hidden in the casper library.Right now the mocks are implemented as define/inlines functions.There was a very long discussion how this should be implemented.This approach has some advantages like we don't need to link to any additionallibraries. Unfortunately there are also some disadvantages for example it iseasy to get library out of sync between two versions of functions or that weneed extra define to compile program with casper support.This isn't an ideal solution but it's good enough for now and should simplifycapsicumizing programs. This also doesn't close us any other ways to do thosemocks and this should evolve in time.Discussed with: pjd, emaste, ed, rwatson, bapt, cem, bdreweryDifferential Revision: https://reviews.freebsd.org/D8753
show more ...
Fix result printing- Flushing stdout prevents the buffer from being printed twice, fixing issues with stdout printing out the testplan, etc, twice.- Don't print out raw source/line numbers; hide
Fix result printing- Flushing stdout prevents the buffer from being printed twice, fixing issues with stdout printing out the testplan, etc, twice.- Don't print out raw source/line numbers; hide them behind comments.MFC after: 1 week
Move libcasper tests from regression/capsicum/libcasper/ tolib/libcasper/service/${service_name}/tests.Reviewed by: emaste, ngieDifferential Revision: https://reviews.freebsd.org/D7759