GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing apple.github.io — Internal Dev Tools — FoundationDB 8.0.1 documentation Internal Dev ToolsCode ProbesCode probes are a mechanism in FDB to prove that certain code-paths are being tested under the right conditions. They differ from code coverage in multiple ways (explained below). The general format of a code probe is: CODE_PROBE(<condition>, "Comment", [annotations...]); A simple example of a code probe could look as follows: CODE_PROBE(self->forceRecovery, "Resolver detects forced recovery", probe::context::sim2); On a very high level, the above code will indicate that whenever this line is executed and By default, FDB simply will write a trace-line when this code is hit and the condition is We expect that ALL code probes will be hit in a nightly run. In the future we can potentially use this feature for other things (like instructing the simulator to do an extensive search starting when one of these probes is being hit). In addition to CODE_PROBE(condition, "Some comment", assert::simOnly); These will add an assertion to the code. In addition to that, the simulator will not print missed code probes that asserted that the probe won’t be hit in simulation. Test HarnessTestHarness is our primary testing tool. It has multiple jobs:
Test Harness can be found in the FDB source repository under python3 -m test_harness.app -s ${JOSHUA_SEED} --old-binaries-path ${OLDBINDIR} Here the seed is a random number generated by joshua and In order to figure out what command line arguments ReportingAfter a joshua ensemble completed, |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |