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

Unified 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, 4 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 | « sandbox/linux/seccomp/syscall_table.c ('k') | sandbox/linux/seccomp/tests/test_syscalls.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/linux/seccomp/tests/list_tests.py
===================================================================
--- sandbox/linux/seccomp/tests/list_tests.py (revision 57969)
+++ sandbox/linux/seccomp/tests/list_tests.py (working copy)
@@ -1,22 +0,0 @@
-# Copyright (c) 2010 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.
-
-import re
-import sys
-
-
-def get_tests(filename):
- for line in open(filename):
- match = re.match(r"TEST\((\w+)\)", line)
- if match is not None:
- yield match.group(1)
-
-
-def main(args):
- for name in get_tests(args[0]):
- print ' { "%s", %s },' % (name, name)
-
-
-if __name__ == "__main__":
- main(sys.argv[1:])
« 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