Changeset add6b31 in mod_gnutls for test/README.md
- Timestamp:
- Jun 27, 2020, 5:19:51 AM (7 months ago)
- Branches:
- asyncio, master
- Children:
- e63515a
- Parents:
- 30b23d6
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
test/README.md
r30b23d6 radd6b31 168 168 169 169 170 ## Coverage reports 171 172 You can create test coverage reports using [clang's source-based code 173 coverage](https://clang.llvm.org/docs/SourceBasedCodeCoverage.html). This 174 requires two things: 175 176 1. Use the clang compiler to build the module (e.g. `CC=clang`). 177 2. Pass `--enable-clang-coverage` to `./configure`, which adds the 178 required `CFLAGS` to the build. 179 180 This will build mod\_gnutls with clang profiling instrumentation, and 181 generate profiling data during tests. **Do not use a profiling build 182 for production!** 183 184 The gathered profiling data can then be compiled into a coverage 185 report using `make coverage` (in this directory). The coverage report 186 will be in [`coverage/index.html`](coverage/index.html). So the full 187 process to build a coverage report might be, including opening the 188 report (in this example using Firefox): 189 190 ```bash 191 CC=clang ./configure --enable-clang-coverage 192 make check 193 cd test 194 make coverage 195 firefox coverage/index.html 196 ``` 197 198 If you'd like to work with the profiling data yourself, you can find 199 the raw data in `outputs/coverage/`, the indexed and merged data in 200 `outputs/coverage.profdata`. 201 202 170 203 ## Adding a Test 171 204
Note: See TracChangeset
for help on using the changeset viewer.