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

Unified Diff: mojo/tools/data/apptests

Issue 888043002: Use a python script to configure unit tests and app tests to run. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Follow review Created 5 years, 10 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 | « mojo/tools/apptest_runner.py ('k') | mojo/tools/data/unittests » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/tools/data/apptests
diff --git a/mojo/tools/data/apptests b/mojo/tools/data/apptests
index f082e3f61147d360e2afa521f8ff10b544361169..e89cd3b9c8232a3994d8ad3693cdbee3df5b8b2b 100644
--- a/mojo/tools/data/apptests
+++ b/mojo/tools/data/apptests
@@ -1,7 +1,10 @@
# This file contains a list of Mojo gtest unit tests.
-# This must be a valid python dictionary.
+# This must be valid python. It can use the |config| global that will be a
+# mopy.config.Config object and must set a |tests| global that will contain the
+# tests to run.
# TODO(vtl|msw): Add a way of specifying data dependencies.
-[
+
+tests = [
{
"test": "mojo:clipboard_apptests",
},
@@ -11,38 +14,47 @@
"test-args": ["--example_apptest_arg"],
},
{
- # Runs mojo:example_apptests, replacing the mojo:example_service dependency
- # with the alternate test:example_service, launched via mojo launcher."
- "test": "mojo:example_apptests",
- # ExampleApplicationTest.CheckCommandLineArg checks --example_apptest_arg.
- "test-args": ["--example_apptest_arg"],
- "shell-args": ["--url-mappings=mojo:example_service=test:example_service"],
- "launched-services": ["test:example_service"],
- "target_os": ["!android"],
- },
- {
"test": "mojo:network_service_apptests",
},
{
- "test": "mojo:example_apptests",
- # ExampleApplicationTest.CheckCommandLineArg checks --example_apptest_arg.
- "test-args": ["--example_apptest_arg"],
- "shell-args": ["--url-mappings=mojo:example_service=mojo:python_example_service"],
- "target_os": ["!*", "linux"],
- },
- {
"test": "mojo:view_manager_service_apptests",
"shell-args": ["--args-for=mojo:native_viewport_service --use-headless-config --use-osmesa"],
},
{
- "test": "mojo:js_apptests",
- "target_os": ["!android"],
- },
- {
"test": "mojo:window_manager_apptests",
},
- {
- "test": "mojo:reaper_apptests",
- "target_os": ["!android"],
- },
]
+
+if config.target_os == config.OS_LINUX:
+ tests += [
+ {
+ "test": "mojo:example_apptests",
+ # ExampleApplicationTest.CheckCommandLineArg checks --example_apptest_arg.
+ "test-args": ["--example_apptest_arg"],
+ "shell-args": [
+ "--url-mappings=mojo:example_service=mojo:python_example_service"
+ ],
+ },
+ ]
+
+if config.target_os != config.OS_ANDROID:
+ tests += [
+ {
+ # Runs mojo:example_apptests, replacing the mojo:example_service
+ # dependency with the alternate test:example_service, launched via mojo
+ # launcher."
+ "test": "mojo:example_apptests",
+ # ExampleApplicationTest.CheckCommandLineArg checks --example_apptest_arg.
+ "test-args": ["--example_apptest_arg"],
+ "shell-args": [
+ "--url-mappings=mojo:example_service=test:example_service"
+ ],
+ "launched-services": ["test:example_service"],
+ },
+ {
+ "test": "mojo:js_apptests",
+ },
+ {
+ "test": "mojo:reaper_apptests",
+ },
+ ]
« no previous file with comments | « mojo/tools/apptest_runner.py ('k') | mojo/tools/data/unittests » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698