Page MenuHomeFreeBSD

Do not build libcasper regression tests if WITHOUT_CASPER is set
AbandonedPublic

Authored by olivier on Feb 7 2023, 11:16 AM.
Tags
None
Referenced Files
Unknown Object (File)
Dec 23 2023, 5:31 AM
Unknown Object (File)
Nov 21 2023, 1:03 AM
Unknown Object (File)
Nov 12 2023, 7:01 AM
Unknown Object (File)
Nov 9 2023, 4:29 PM
Unknown Object (File)
Oct 19 2023, 11:29 PM
Unknown Object (File)
Oct 11 2023, 6:01 AM
Unknown Object (File)
Oct 8 2023, 3:22 PM
Unknown Object (File)
Sep 18 2023, 11:58 PM
Subscribers
None

Details

Reviewers
emaste
Summary

The comment in tools/build/options/WITHOUT_CASPER says "Do not build Casper program and related libraries".
The library isn't installed but the regression tests are still installed (so they are failing).

Test Plan

Build & install world with WITHOUT_CASPER then check there is no /usr/tests/lib/libcasper (neither the /usr/lib/libcasper.so too).

Diff Detail

Lint
Lint Skipped
Unit
Tests Skipped

Event Timeline

olivier created this revision.
olivier retitled this revision from Do not build libcasper if WITHOUT_CASPER is set to Do not build libcasper regression tests if WITHOUT_CASPER is set.

Need more work

In file included from /usr/src/bin/cat/cat.c:60:
/usr/obj/amd64.amd64/tmp/usr/include/capsicum_helpers.h:42:10: fatal error: 'libcasper.h' file not found
#include <libcasper.h>

libcasper provides non-sandboxed stubs so some tests should pass

perhaps we need to avoid installing specific tests