aboutsummaryrefslogtreecommitdiff
path: root/tests/fuzz
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-03-02 17:03:33 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-03-02 17:03:33 -0800
commit748dadbc72ae9905585f07bae111c2b29c8d764e (patch)
treee586e6d79c822c14d4ac089af5273b754dbc3497 /tests/fuzz
parent0a4bc063c35aa5d70b7aaae72029b16a56432563 (diff)
emit C code size in fuzzer
Diffstat (limited to 'tests/fuzz')
-rwxr-xr-xtests/fuzz/csmith_driver.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/fuzz/csmith_driver.py b/tests/fuzz/csmith_driver.py
index 404324a2..6e1c0764 100755
--- a/tests/fuzz/csmith_driver.py
+++ b/tests/fuzz/csmith_driver.py
@@ -33,6 +33,7 @@ while 1:
shared.execute([CSMITH, '--no-volatiles', '--no-math64', '--no-packed-struct'] +
['--max-block-depth', '2', '--max-block-size', '2', '--max-expr-complexity', '2', '--max-funcs', '2'],
stdout=open(filename + '.c', 'w'))
+ print '1) Generate C... %.2f K of C source' % (len(open(filename + '.c').read())/1024.)
print '2) Compile natively'
shared.try_delete(filename)