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

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: 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..33afcb500a290f907cd2dc1cfd2b52dbf4f060b4 100755
--- a/tools/ipc_fuzzer/mutate/cf_package_builder.py
+++ b/tools/ipc_fuzzer/mutate/cf_package_builder.py
@@ -15,12 +15,24 @@ import shutil
import sys
import tempfile
+FUZZER_LIST_FOR_PLATFORM_DICT = {
Tom Sepez 2015/01/22 00:13:05 We should probably just have code to add a ".exe"
+ 'LINUX': ['ipc_fuzzer_mut', 'ipc_fuzzer_gen'],
+ 'MAC': ['ipc_fuzzer_mut', 'ipc_fuzzer_gen'],
+ 'WINDOWS': ['ipc_fuzzer_mut.exe', 'ipc_fuzzer_gen.exe'],
+}
+
+def GetPlatform():
+ if sys.platform.startswith('win'):
+ return 'WINDOWS'
+ elif sys.platform.startswith('linux'):
Tom Sepez 2015/01/22 00:13:05 nit: elif after return
+ return 'LINUX'
+ elif sys.platform == 'darwin':
+ return 'MAC'
+
class CFPackageBuilder:
def __init__(self):
- self.fuzzer_list = [
- 'ipc_fuzzer_mut',
- 'ipc_fuzzer_gen',
- ]
+ self.platform = GetPlatform()
+ self.fuzzer_list = FUZZER_LIST_FOR_PLATFORM_DICT[self.platform]
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