Repository navigation
Commit 2ee2a0d
fix(testcomp): the smoke test requires evidence that each engine ran
Review of #86: the "Executing AFL++/Klee with map2check" banners are logged
before the engine is launched, so they also appear when it fails to start,
and the other engine can still produce the suite the smoke test asks for.
With afl-fuzz unable to start, KLEE found Cover-Error's 42 and the check
passed.
The frontend now logs, after each engine, what the engine itself wrote:
- "AFL++ ran: N executions, M inputs in the corpus", from execs_done and
corpus_count in afl-fuzz's fuzzer_stats; with no executions, a warning
carrying the last lines of fuzzer.output, which the scratch cleanup
would otherwise remove;
- "KLEE ran: N tests generated", from the .ktest files in klee-last.
smoketest.sh requires those lines with a positive count instead of the
banners: AFL++ in both examples, KLEE in Cover-Branches.
Checked on the archive rebuilt from this branch: the smoke test passes on
ubuntu:24.04 and 26.04 with python3 and gcc-multilib, and fails with only
python3, with an afl-fuzz that exits at once ("AFL++ did not run", its
output in the log) and with a klee that exits at once ("KLEE did not run").
Unit tests: 14/14.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>1 parent 4186227 commit 2ee2a0d
3 files changed
Lines changed: 88 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
198 | 198 | | |
199 | 199 | | |
200 | 200 | | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
201 | 248 | | |
202 | 249 | | |
203 | 250 | | |
| |||
1446 | 1493 | | |
1447 | 1494 | | |
1448 | 1495 | | |
| 1496 | + | |
| 1497 | + | |
| 1498 | + | |
| 1499 | + | |
| 1500 | + | |
| 1501 | + | |
| 1502 | + | |
| 1503 | + | |
| 1504 | + | |
| 1505 | + | |
1449 | 1506 | | |
1450 | 1507 | | |
1451 | 1508 | | |
| |||
1577 | 1634 | | |
1578 | 1635 | | |
1579 | 1636 | | |
| 1637 | + | |
| 1638 | + | |
| 1639 | + | |
| 1640 | + | |
| 1641 | + | |
| 1642 | + | |
| 1643 | + | |
| 1644 | + | |
| 1645 | + | |
| 1646 | + | |
| 1647 | + | |
| 1648 | + | |
| 1649 | + | |
| 1650 | + | |
| 1651 | + | |
| 1652 | + | |
| 1653 | + | |
| 1654 | + | |
| 1655 | + | |
| 1656 | + | |
1580 | 1657 | | |
1581 | 1658 | | |
1582 | 1659 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
48 | 52 | | |
49 | 53 | | |
50 | 54 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
49 | 52 | | |
50 | 53 | | |
51 | | - | |
52 | | - | |
| 54 | + | |
| 55 | + | |
53 | 56 | | |
54 | 57 | | |
55 | 58 | | |
| |||
0 commit comments