fuzzgen: add -n / --iterations flag to fuzz


In a stressed CI environment, fuzzing for a specific time is
randomized by system resources.

In order to make fuzz runs comparable, add --iterations <N>
(short: -n) to the outer fuzz CLI and --iterations / -i to the
generated fuzzer binary.  The loop stops when N iterations have been
executed.

-t and -n may be combined; the loop stops when either limit is reached.
When only -n is specified (no -t), the default 30-second time limit is
dropped and the parent's safety alarm is raised to 24 h.

Note: -i is already used by the outer fuzz CLI for --input-file, so the
short form there is -n.  The generated binary has no such conflict and
accepts both -i and --iterations.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Change-Id: I7d6f97fe8aa2a77c7593ae4ecfd7f96acbac2fbe
Reviewed-by: Kwanghyo Park <kwanghyo.park@qt.io>
commit4d3f2ab4ee92ec4cd24db485a75990be1e766550
parent6d74d35d167488bf14f64d33da8f58152720acb0
authorAxel Spoerl <axel.spoerl@qt.io>
committerAxel Spoerl <axel.spoerl@qt.io>
commit timeWed, 15 Jul 2026 14:07:30 +0000