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

Unified Diff: mojo/tools/get_test_list.py

Issue 1384243002: Adds the ability to run pure Go unit tests in the Mojo test suite. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Responds to code review commnets. Created 5 years, 2 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 | « no previous file | mojo/tools/run_pure_go_tests.py » ('j') | mojo/tools/run_pure_go_tests.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/tools/get_test_list.py
diff --git a/mojo/tools/get_test_list.py b/mojo/tools/get_test_list.py
index c59602c10244b174054ca4e0120d7a7db2ceaa19..d6555cffbb26818f3a4f2458ff4e7f6c75d848c2 100755
--- a/mojo/tools/get_test_list.py
+++ b/mojo/tools/get_test_list.py
@@ -117,9 +117,21 @@ def GetTestList(config, verbose_count=0):
if (target_os == Config.OS_LINUX and
config.sanitizer != Config.SANITIZER_ASAN and
ShouldRunTest(Config.TEST_TYPE_DEFAULT, Config.TEST_TYPE_UNIT, "go")):
- AddEntry("Go unit tests",
+
viettrungluu 2015/10/06 01:46:30 no blank line here
rudominer 2015/10/06 20:28:53 Done.
+ # Go system tests:
+ AddEntry("Go system tests",
[os.path.join(build_dir, "obj", "mojo", "go", "system_test")])
+ # Pure Go unit tests:
+ if "go_build_tool" in config.values:
+ go_tool = config.values["go_build_tool"]
+ else:
+ go_tool = os.path.join(Paths().src_root, "third_party", "go", "tool",
+ "linux_amd64", "bin", "go")
+ AddEntry("Go unit tests",
+ ["python", os.path.join("mojo", "tools", "run_pure_go_tests.py"),
viettrungluu 2015/10/06 01:46:30 indent one more space
rudominer 2015/10/06 20:28:53 Done.
+ go_tool])
+
# Python unit tests:
if ShouldRunTest(Config.TEST_TYPE_DEFAULT, Config.TEST_TYPE_UNIT, "python"):
AddEntry("Python unit tests",
« no previous file with comments | « no previous file | mojo/tools/run_pure_go_tests.py » ('j') | mojo/tools/run_pure_go_tests.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698