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

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

Issue 1365083002: [test] Make fuzzer output the archive file name for easy upload. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 months 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 | « no previous file | no next file » | 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698