From e86effd159d06a6ceeb5571f98d4f45c7fe9f893 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 21 Oct 2015 14:19:37 +0100 Subject: move afl examples/test-cases to dedicated dir Change-Id: I36f09cd19ea721ee69e62fac4cf0744827e8cefb --- vcl/qa/afl-eventtesting/README.eventtesting | 24 ++++++++++++++++++++++++ vcl/qa/afl-eventtesting/eventtesting.impress | Bin 0 -> 196 bytes vcl/qa/afl-eventtesting/eventtesting.writer | Bin 0 -> 28 bytes vcl/source/helper/evntpost.cxx | 1 - vcl/workben/README.eventtesting | 24 ------------------------ vcl/workben/eventtesting.impress | Bin 196 -> 0 bytes vcl/workben/eventtesting.writer | Bin 28 -> 0 bytes 7 files changed, 24 insertions(+), 25 deletions(-) create mode 100644 vcl/qa/afl-eventtesting/README.eventtesting create mode 100644 vcl/qa/afl-eventtesting/eventtesting.impress create mode 100644 vcl/qa/afl-eventtesting/eventtesting.writer delete mode 100644 vcl/workben/README.eventtesting delete mode 100644 vcl/workben/eventtesting.impress delete mode 100644 vcl/workben/eventtesting.writer diff --git a/vcl/qa/afl-eventtesting/README.eventtesting b/vcl/qa/afl-eventtesting/README.eventtesting new file mode 100644 index 000000000000..963bed1cdd22 --- /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 diff --git a/vcl/qa/afl-eventtesting/eventtesting.impress b/vcl/qa/afl-eventtesting/eventtesting.impress new file mode 100644 index 000000000000..ac7991875af2 Binary files /dev/null and b/vcl/qa/afl-eventtesting/eventtesting.impress differ diff --git a/vcl/qa/afl-eventtesting/eventtesting.writer b/vcl/qa/afl-eventtesting/eventtesting.writer new file mode 100644 index 000000000000..b85a20356f1d Binary files /dev/null and b/vcl/qa/afl-eventtesting/eventtesting.writer differ diff --git a/vcl/source/helper/evntpost.cxx b/vcl/source/helper/evntpost.cxx index 5331ecaad34e..abc9bbb8f01b 100644 --- a/vcl/source/helper/evntpost.cxx +++ b/vcl/source/helper/evntpost.cxx @@ -40,7 +40,6 @@ EventPoster::~EventPoster() } void EventPoster::Post() - { DBG_TESTSOLARMUTEX(); m_nId = Application::PostUserEvent( ( LINK( this, EventPoster, DoEvent_Impl ) ) ); diff --git a/vcl/workben/README.eventtesting b/vcl/workben/README.eventtesting deleted file mode 100644 index 963bed1cdd22..000000000000 --- a/vcl/workben/README.eventtesting +++ /dev/null @@ -1,24 +0,0 @@ -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 diff --git a/vcl/workben/eventtesting.impress b/vcl/workben/eventtesting.impress deleted file mode 100644 index ac7991875af2..000000000000 Binary files a/vcl/workben/eventtesting.impress and /dev/null differ diff --git a/vcl/workben/eventtesting.writer b/vcl/workben/eventtesting.writer deleted file mode 100644 index b85a20356f1d..000000000000 Binary files a/vcl/workben/eventtesting.writer and /dev/null differ -- cgit