diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 05:54:39 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 05:54:39 +0000 |
commit | 267c6f2ac71f92999e969232431ba04678e7437e (patch) | |
tree | 358c9467650e1d0a1d7227a21dac2e3d08b622b2 /vcl/qa/afl-eventtesting/README.eventtesting | |
parent | Initial commit. (diff) | |
download | libreoffice-267c6f2ac71f92999e969232431ba04678e7437e.tar.xz libreoffice-267c6f2ac71f92999e969232431ba04678e7437e.zip |
Adding upstream version 4:24.2.0.upstream/4%24.2.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vcl/qa/afl-eventtesting/README.eventtesting')
-rw-r--r-- | vcl/qa/afl-eventtesting/README.eventtesting | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/vcl/qa/afl-eventtesting/README.eventtesting b/vcl/qa/afl-eventtesting/README.eventtesting new file mode 100644 index 0000000000..963bed1cdd --- /dev/null +++ b/vcl/qa/afl-eventtesting/README.eventtesting @@ -0,0 +1,24 @@ +Notes on experimental afl driven ui fuzzing + +only keyboard events for now + +vcl/workben/eventtesting.writer is just serialized "hello" + ctrl+a + ctrl+b +keystrokes to get things started + +vcl/workben/eventtesting.impress is a bit more involved and inserts text, +a new slide via the menu, bullets and undos for all of that + +currently an arbitrary limit of 50 keystrokes before application quits in +order to initially explore that shallow space + +writer: +Xnest :1 +cp vcl/workben/eventtesting.writer eventtesting +afl-fuzz -f eventtesting -t 10000 -i ~/fuzz/in.vcl -o ~/fuzz/out.vcl -d -T vcl -m 50000000 instdir/program/soffice.bin --nologo --writer --eventtesting --norestore --display :1 + +impress: +Xnest :1 +cp vcl/workben/eventtesting.impress eventtesting +afl-fuzz -f eventtesting -t 10000 -i ~/fuzz/in.vcl -o ~/fuzz/out.vcl -d -T vcl -m 50000000 instdir/program/soffice.bin --nologo --impress --eventtesting --norestore --display :1 + +This also works with --headless and no --display entry and thus no Xnest required |