]> git.ipfire.org Git - thirdparty/qemu.git/commit
fuzz: add a script to build reproducers
authorAlexander Bulekov <alxndr@bu.edu>
Sun, 14 Mar 2021 04:23:56 +0000 (23:23 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Mar 2021 18:19:54 +0000 (14:19 -0400)
commit97ef5f8862e1442a8d1c6044e19aa19ce9d1e974
treeac7e4768fd253b2d1dfd5db94166570bbba31ade
parentd0614b8e7a365e64ebf2ed068754787fae34d501
fuzz: add a script to build reproducers

Currently, bash and C crash reproducers are be built manually. This is a
problem, as we want to integrate reproducers into the tree, for
regression testing. This patch adds a script that converts a sequence of
QTest commands into a pasteable Bash reproducer, or a libqtest-based C
program. This will try to wrap pasteable reproducers to 72 chars, but
the generated C code will not have nice formatting. Therefore, the C
output of this script should be piped through an auto-formatter, such as
clang-format

Signed-off-by: Alexander Bulekov <alxndr@bu.edu>
Reviewed-by: Darren Kenny <darren.kenny@oracle.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
scripts/oss-fuzz/output_reproducer.py [new file with mode: 0755]