Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(343)

Side by Side Diff: tools/fuzz-harness.sh

Issue 2528913002: [compiler] Make --debug-code the default in debug builds. (Closed)
Patch Set: Adapt more. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « test/webkit/fast/js/deep-recursion-test.js ('k') | tools/jsfunfuzz/fuzz-harness.sh » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 # Copyright 2012 the V8 project authors. All rights reserved. 2 # Copyright 2012 the V8 project authors. All rights reserved.
3 # Redistribution and use in source and binary forms, with or without 3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions are 4 # modification, are permitted provided that the following conditions are
5 # met: 5 # met:
6 # 6 #
7 # * Redistributions of source code must retain the above copyright 7 # * Redistributions of source code must retain the above copyright
8 # notice, this list of conditions and the following disclaimer. 8 # notice, this list of conditions and the following disclaimer.
9 # * Redistributions in binary form must reproduce the above 9 # * Redistributions in binary form must reproduce the above
10 # copyright notice, this list of conditions and the following 10 # copyright notice, this list of conditions and the following
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 - while True: 80 - while True:
81 + while iteration < 100: 81 + while iteration < 100:
82 iteration += 1 82 iteration += 1
83 logfilename = "w%d" % iteration 83 logfilename = "w%d" % iteration
84 one_timed_run(logfilename) 84 one_timed_run(logfilename)
85 EOF 85 EOF
86 fi 86 fi
87 87
88 fi 88 fi
89 89
90 flags='--debug-code --expose-gc --verify-gc' 90 flags='--expose-gc --verify-gc'
91 python -u "$jsfunfuzz_dir/jsfunfuzz/multi_timed_run.py" 300 \ 91 python -u "$jsfunfuzz_dir/jsfunfuzz/multi_timed_run.py" 300 \
92 "$d8" $flags "$jsfunfuzz_dir/jsfunfuzz/jsfunfuzz.js" 92 "$d8" $flags "$jsfunfuzz_dir/jsfunfuzz/jsfunfuzz.js"
93 exit_code=$(cat w* | grep " looking good" -c) 93 exit_code=$(cat w* | grep " looking good" -c)
94 exit_code=$((100-exit_code)) 94 exit_code=$((100-exit_code))
95 95
96 if [ -n "$2" ]; then 96 if [ -n "$2" ]; then
97 archive="$2" 97 archive="$2"
98 else 98 else
99 archive=fuzz-results-$(date +%Y%m%d%H%M%S).tar.bz2 99 archive=fuzz-results-$(date +%Y%m%d%H%M%S).tar.bz2
100 fi 100 fi
101 echo "Creating archive $archive" 101 echo "Creating archive $archive"
102 tar -cjf $archive err-* w* 102 tar -cjf $archive err-* w*
103 rm -f err-* w* 103 rm -f err-* w*
104 104
105 echo "Total failures: $exit_code" 105 echo "Total failures: $exit_code"
106 exit $exit_code 106 exit $exit_code
OLDNEW
« no previous file with comments | « test/webkit/fast/js/deep-recursion-test.js ('k') | tools/jsfunfuzz/fuzz-harness.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698