summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authordkegel@google.com <dkegel@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-16 20:48:29 +0000
committerdkegel@google.com <dkegel@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-16 20:48:29 +0000
commit4b7f783f138f5ec55da9083bf31aa7d813be68e5 (patch)
tree1a2ccea7dd3b9fa88ed257658ade29407e2330d7 /tools
parent8c16e87782241d7c513d9384acd1259c53add196 (diff)
downloadchromium_src-4b7f783f138f5ec55da9083bf31aa7d813be68e5.zip
chromium_src-4b7f783f138f5ec55da9083bf31aa7d813be68e5.tar.gz
chromium_src-4b7f783f138f5ec55da9083bf31aa7d813be68e5.tar.bz2
For ease of scripting, allow the actual test binary name to be used as an argument to -t
rather than just the abbreviation. Review URL: http://codereview.chromium.org/42654 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13873 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools')
-rwxr-xr-xtools/valgrind/chrome_tests.py23
1 files changed, 12 insertions, 11 deletions
diff --git a/tools/valgrind/chrome_tests.py b/tools/valgrind/chrome_tests.py
index bc40a3d..485b6a5 100755
--- a/tools/valgrind/chrome_tests.py
+++ b/tools/valgrind/chrome_tests.py
@@ -41,18 +41,19 @@ class ChromeTests:
'''
def __init__(self, options, args, test):
- # the known list of tests
+ # The known list of tests.
+ # Recognise the original abbreviations as well as full executable names.
self._test_list = {
- "test_shell": self.TestTestShell,
- "unit": self.TestUnit,
- "net": self.TestNet,
- "ipc": self.TestIpc,
- "base": self.TestBase,
- "googleurl": self.TestGoogleurl,
- "media": self.TestMedia,
- "printing": self.TestPrinting,
- "layout": self.TestLayout,
- "ui": self.TestUI
+ "base": self.TestBase, "base_unittests": self.TestBase,
+ "googleurl": self.TestGoogleurl, "googleurl_tests": self.TestGoogleurl,
+ "ipc": self.TestIpc, "ipc_tests": self.TestIpc,
+ "layout": self.TestLayout, "layout_tests": self.TestLayout,
+ "media": self.TestMedia, "media_unittests": self.TestMedia,
+ "net": self.TestNet, "net_unittests": self.TestNet,
+ "printing": self.TestPrinting, "printing_unittests": self.TestPrinting,
+ "test_shell": self.TestTestShell, "test_shell_tests": self.TestTestShell,
+ "ui": self.TestUI, "ui_tests": self.TestUI,
+ "unit": self.TestUnit, "unit_tests": self.TestUnit,
}
if test not in self._test_list: