Tooling
How to generate the full coverage report
Requires gcovr program and gcc toolchain.
- Build with
F3D_COVERAGEoption enabled. - Run all tests,
xdotoolneeds to be installed. This will generate many.gcdafiles. - Generate the report with:
gcovr -r /path/to/sources --html --html-details -o coverage.html.
How to build and test with sanitizer
Requires clang toolchain.
- Build with
F3D_SANITIZERoption to any of the possible values. export LSAN_OPTIONS=suppressions=/path/to/f3d/.lsan.supp:use_tls=0.export TSAN_OPTIONS=suppressions=/path/to/f3d/.tsan.supp.- Run all tests.
How to locally generate and run the website
- Install
npm - Clone https://github.com/f3d-app/f3d-website
- Install needed npm packages:
npm install - Build and serve the website:
npm run start
Please note the search bar is not working locally, this is expected.
How to update the doc using latest master
- Generate and run as described above
- Select master:
export F3D_TAG=master - Update the doc:
npm run update-doc - Refresh the website to see the new doc
How to update the doc for a new release
- Generate and run as described above
- Select release:
export F3D_TAG=release - Update the doc:
npm run update-doc - Add a new versioned doc:
npm run docusaurus docs:version X.Y - Add
X.Yin thedocsVersionDropdownindocusaurus.config.ts - Rebuild the website:
npm run start - Refresh the website to see the new versionned doc