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

Side by Side Diff: testing/libfuzzer/tests/check_seed_corpus_archive.py

Issue 2610323002: [libfuzzer] support multiple seed_corpus directories. (Closed)
Patch Set: Add missing scripts Created 3 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 unified diff | Download patch
« no previous file with comments | « testing/libfuzzer/tests/BUILD.gn ('k') | testing/libfuzzer/tests/fuzzer_launcher_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 #!/usr/bin/python2
2 # Copyright 2017 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 # Script that prints out number of files in given zip-archive. Used for testing.
7
8 import ConfigParser
9 import os
10 import sys
11 import zipfile
12
13 seed_corpus_archive_path = os.path.join(os.path.dirname(sys.argv[0]),
14 sys.argv[1])
15
16 if not os.path.exists(seed_corpus_archive_path):
17 sys.exit(-1)
18
19 archive = zipfile.ZipFile(seed_corpus_archive_path)
20 sys.stdout.write('%d\n' % len(archive.namelist()))
OLDNEW
« no previous file with comments | « testing/libfuzzer/tests/BUILD.gn ('k') | testing/libfuzzer/tests/fuzzer_launcher_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698