| 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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| OLD | NEW |