| OLD | NEW |
| 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 logfilename = "w%d" % iteration | 78 logfilename = "w%d" % iteration |
| 79 one_timed_run(logfilename) | 79 one_timed_run(logfilename) |
| 80 EOF | 80 EOF |
| 81 fi | 81 fi |
| 82 | 82 |
| 83 flags='--debug-code --expose-gc --verify-gc' | 83 flags='--debug-code --expose-gc --verify-gc' |
| 84 python -u "$jsfunfuzz_dir/jsfunfuzz/multi_timed_run.py" 300 \ | 84 python -u "$jsfunfuzz_dir/jsfunfuzz/multi_timed_run.py" 300 \ |
| 85 "$d8" $flags "$jsfunfuzz_dir/jsfunfuzz/jsfunfuzz.js" | 85 "$d8" $flags "$jsfunfuzz_dir/jsfunfuzz/jsfunfuzz.js" |
| 86 exit_code=$(cat w* | grep " looking good" -c) | 86 exit_code=$(cat w* | grep " looking good" -c) |
| 87 exit_code=$((100-exit_code)) | 87 exit_code=$((100-exit_code)) |
| 88 tar -cjf fuzz-results-$(date +%Y%m%d%H%M%S).tar.bz2 err-* w* | 88 archive=fuzz-results-$(date +%Y%m%d%H%M%S).tar.bz2 |
| 89 echo "Creating archive $archive" |
| 90 tar -cjf $archive err-* w* |
| 89 rm -f err-* w* | 91 rm -f err-* w* |
| 90 | 92 |
| 91 echo "Total failures: $exit_code" | 93 echo "Total failures: $exit_code" |
| 92 exit $exit_code | 94 exit $exit_code |
| OLD | NEW |