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

Unified Diff: mojo/tools/mojob.sh

Issue 639713002: mojo: Add python bindings tests to mojob.sh (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Check on library existence instead of config of the test. Created 6 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/tools/mojob.sh
diff --git a/mojo/tools/mojob.sh b/mojo/tools/mojob.sh
index e0804d1ef656f98b6bd27c800c66d5a204c0f763..2b82d082e734b42b34190226216cd30f7fc68d0d 100755
--- a/mojo/tools/mojob.sh
+++ b/mojo/tools/mojob.sh
@@ -19,7 +19,7 @@ command should be one of:
build - Build.
test - Run unit tests (does not build).
perftest - Run perf tests (does not build).
- pytest - Run Python unit tests.
+ pytest - Run Python unit tests (does not build).
gyp - Run gyp for mojo (does not sync).
gypall - Run gyp for all of chromium (does not sync).
sync - Sync using gclient (does not run gyp).
@@ -66,7 +66,14 @@ do_perftests() {
}
do_pytests() {
+ echo "Running python tests in out/$1 ..."
python mojo/tools/run_mojo_python_tests.py || exit 1
+ # TODO(qsr) Remove this test when the component build is not supported
+ # anymore.
+ if [ -f "out/$1/python/mojo/system.so" ]; then
+ python mojo/tools/run_mojo_python_bindings_tests.py \
+ "--build-dir=out/$1" || exit 1
+ fi
}
do_gyp() {
@@ -180,7 +187,8 @@ for arg in "$@"; do
should_do_Release && do_perftests Release
;;
pytest)
- do_pytests
+ should_do_Debug && do_pytests Debug
+ should_do_Release && do_pytests Release
;;
gyp)
set_goma_dir_if_necessary
@@ -236,3 +244,5 @@ for arg in "$@"; do
;;
esac
done
+
+exit 0
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698