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

Side by Side Diff: sandbox/linux/seccomp/tests/list_tests.py

Issue 3225010: Pull seccomp-sandbox in via DEPS rather than using an in-tree copy... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 3 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 | Annotate | Revision Log
« no previous file with comments | « sandbox/linux/seccomp/syscall_table.c ('k') | sandbox/linux/seccomp/tests/test_syscalls.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 # Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 import re
6 import sys
7
8
9 def get_tests(filename):
10 for line in open(filename):
11 match = re.match(r"TEST\((\w+)\)", line)
12 if match is not None:
13 yield match.group(1)
14
15
16 def main(args):
17 for name in get_tests(args[0]):
18 print ' { "%s", %s },' % (name, name)
19
20
21 if __name__ == "__main__":
22 main(sys.argv[1:])
OLDNEW
« no previous file with comments | « sandbox/linux/seccomp/syscall_table.c ('k') | sandbox/linux/seccomp/tests/test_syscalls.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698