Page MenuHomeFreeBSD

build_option_survey Update
AbandonedPublic

Authored by editor_callfortesting.org on Aug 18 2018, 9:27 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, May 6, 10:38 AM
Unknown Object (File)
Thu, May 2, 2:55 PM
Unknown Object (File)
Thu, May 2, 2:55 PM
Unknown Object (File)
Thu, May 2, 11:33 AM
Unknown Object (File)
Mon, Apr 22, 10:32 AM
Unknown Object (File)
Dec 20 2023, 5:17 AM
Unknown Object (File)
Dec 10 2023, 3:01 PM
Unknown Object (File)
Sep 6 2023, 3:15 AM
Subscribers

Details

Summary

The /usr/src/tools/tools/build_option_survey/ has received very little attention since 2006 yet remains a very useful tool. It performs repeated buildworlds and installworlds with each build option (i.e. WITHOUT_TELNET) and optionally displays the results in HTML format. All options can be viewed by running 'sh sh listallopts.sh'.

Usage:

sh option_survey.sh (wait several days)
sh mkhtml.sh (Which calls reduce.sh) to generate HTML output

View the results in /usr/obj/usr/src/tools/tools/build_option_survey/HTML/

Bugs fixed:

Increased (and tested) disk image size to accommodate modern FreeBSD. 250M -> 4GB
Removed upload to server "phk" in mkhtml.sh

Features added:

time(1) support for builds with reporting for buildworld in HTML output
Links to 'showconfig', 'buildworld' and 'installworld' logs in HTML output for easier debugging
Moved from md5 hash directory naming to actual build option naming

Refinement: Simplified HTML and reporting

Tested on FreeBSD 12.0-ALPHA1

Needs testing: Syntax to preserve the reference build

Test Plan

Actively running full survey
Must interrupt the build and try the reference build preservation

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 18919

Event Timeline

bcr added a subscriber: bcr.

Adding Brad to at least know about it (CC). The WITH/WITHOUT options determine in a large part how many packages pkgbase will have and perhaps we can determine (with the help of this script) which of these options are obsolete or do not make a big difference. It's a bit tangential to this work, but maybe there is something useful in there that can be considered for pkgbase.

Moved to external utility in 2019