| OLD | NEW |
| (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:]) | |
| OLD | NEW |