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

Unified Diff: tools/ipc_fuzzer/mutate/cf_package_builder.py

Issue 861113003: Fix issues with replay_process in ipc fuzzer. Make it compile on windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Log to both stderr, file since stderr is hard to get on windows. Created 5 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/all.gyp ('k') | tools/ipc_fuzzer/play_testcase.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/ipc_fuzzer/mutate/cf_package_builder.py
diff --git a/tools/ipc_fuzzer/mutate/cf_package_builder.py b/tools/ipc_fuzzer/mutate/cf_package_builder.py
index 806ce66e518086b999e8cd8aee4dbce34f987537..730fad6ddf07bee1bfbeb5fcc0c3de0717b99af3 100755
--- a/tools/ipc_fuzzer/mutate/cf_package_builder.py
+++ b/tools/ipc_fuzzer/mutate/cf_package_builder.py
@@ -15,12 +15,30 @@ import shutil
import sys
import tempfile
+FUZZER_LIST = [
+ 'ipc_fuzzer_mut',
+ 'ipc_fuzzer_gen',
+]
+
+def GetPlatform():
+ platform = None
+ if sys.platform.startswith('win'):
+ platform = 'WINDOWS'
+ elif sys.platform.startswith('linux'):
+ platform = 'LINUX'
+ elif sys.platform == 'darwin':
+ platform = 'MAC'
+
+ assert platform is not None
+ return platform
+
class CFPackageBuilder:
def __init__(self):
- self.fuzzer_list = [
- 'ipc_fuzzer_mut',
- 'ipc_fuzzer_gen',
- ]
+ self.platform = GetPlatform()
+ if self.platform == 'WINDOWS':
+ self.fuzzer_list = [i + '.exe' for i in FUZZER_LIST]
+ else:
+ self.fuzzer_list = FUZZER_LIST
def parse_args(self):
desc = 'Builder of IPC fuzzer packages for ClusterFuzz'
« no previous file with comments | « build/all.gyp ('k') | tools/ipc_fuzzer/play_testcase.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698