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

Unified Diff: testing/libfuzzer/gen_fuzzer_runner.py

Issue 1703523002: [libfuzzer] support of custom libfuzzer options via .options file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix nits in check_fuzzer_config.py script and fuzzer_launcher_test.cc Created 4 years, 10 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 | « testing/libfuzzer/gen_fuzzer_config.py ('k') | testing/libfuzzer/tests/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: testing/libfuzzer/gen_fuzzer_runner.py
diff --git a/testing/libfuzzer/gen_fuzzer_runner.py b/testing/libfuzzer/gen_fuzzer_runner.py
deleted file mode 100755
index 516bd6485068e40f1a19a226535f6122eb5e03ee..0000000000000000000000000000000000000000
--- a/testing/libfuzzer/gen_fuzzer_runner.py
+++ /dev/null
@@ -1,31 +0,0 @@
-#!/usr/bin/python
-#
-# Copyright (c) 2015 The Chromium Authors. All rights reserved.
-# Use of this source code is governed by a BSD-style license that can be
-# found in the LICENSE file.
-
-"""Generate .sh runner for libfuzzer test.
-
-Invoked by GN from fuzzer_test.gni.
-"""
-
-import argparse
-import os
-import sys
-
-
-parser = argparse.ArgumentParser(description="Generate fuzzer launcher.")
-parser.add_argument('--fuzzer', required=True)
-parser.add_argument('--launcher', required=True)
-parser.add_argument('--dict', required=True)
-args = parser.parse_args()
-
-out = open(args.launcher, 'w')
-out.write("""#!/bin/bash
-set -ue
-DIR=$(dirname $0)
-$DIR/%(fuzzer)s -dict=$DIR/%(dict)s $*
-""" % { "fuzzer": args.fuzzer, "dict": args.dict })
-out.close()
-
-os.chmod(args.launcher, os.stat(args.launcher).st_mode | 0o111) # chmod a+x
« no previous file with comments | « testing/libfuzzer/gen_fuzzer_config.py ('k') | testing/libfuzzer/tests/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698