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

Side by Side Diff: mojo/tools/mojob.sh

Issue 217043005: Mojo: Make the mojob.sh unit test runner skip previously-passed tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « mojo/tools/data/unittests ('k') | mojo/tools/pylib/transitive_hash.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/bash 1 #!/bin/bash
2 # Copyright 2013 The Chromium Authors. All rights reserved. 2 # Copyright 2013 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 # This a simple script to make building/testing Mojo components easier (on 6 # This a simple script to make building/testing Mojo components easier (on
7 # Linux). 7 # Linux).
8 8
9 # TODO(vtl): Maybe make the test runner smart and not run unchanged test 9 # TODO(vtl): Maybe make the test runner smart and not run unchanged test
10 # binaries. 10 # binaries.
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 EOF 43 EOF
44 } 44 }
45 45
46 do_build() { 46 do_build() {
47 echo "Building in out/$1 ..." 47 echo "Building in out/$1 ..."
48 ninja -C "out/$1" mojo || exit 1 48 ninja -C "out/$1" mojo || exit 1
49 } 49 }
50 50
51 do_unittests() { 51 do_unittests() {
52 echo "Running unit tests in out/$1 ..." 52 echo "Running unit tests in out/$1 ..."
53 "out/$1/mojo_common_unittests" || exit 1 53 mojo/tools/test_runner.py mojo/tools/data/unittests "out/$1" \
54 "out/$1/mojo_apps_js_unittests" || exit 1 54 mojob_test_successes || exit 1
55 "out/$1/mojo_js_unittests" || exit 1
56 "out/$1/mojo_public_bindings_unittests" || exit 1
57 "out/$1/mojo_public_environment_unittests" || exit 1
58 "out/$1/mojo_public_system_unittests" || exit 1
59 "out/$1/mojo_public_utility_unittests" || exit 1
60 "out/$1/mojo_service_manager_unittests" || exit 1
61 "out/$1/mojo_system_unittests" || exit 1
62 } 55 }
63 56
64 do_perftests() { 57 do_perftests() {
65 echo "Running perf tests in out/$1 ..." 58 echo "Running perf tests in out/$1 ..."
66 "out/$1/mojo_public_system_perftests" || exit 1 59 "out/$1/mojo_public_system_perftests" || exit 1
67 } 60 }
68 61
69 do_gyp() { 62 do_gyp() {
70 local gyp_defines="$(make_gyp_defines)" 63 local gyp_defines="$(make_gyp_defines)"
71 echo "Running gyp with GYP_DEFINES=$gyp_defines ..." 64 echo "Running gyp with GYP_DEFINES=$gyp_defines ..."
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 ;; 186 ;;
194 --no-use-mojo) 187 --no-use-mojo)
195 USE_MOJO=disabled 188 USE_MOJO=disabled
196 ;; 189 ;;
197 *) 190 *)
198 echo "Unknown command \"${arg}\". Try \"$(basename "$0") help\"." 191 echo "Unknown command \"${arg}\". Try \"$(basename "$0") help\"."
199 exit 1 192 exit 1
200 ;; 193 ;;
201 esac 194 esac
202 done 195 done
OLDNEW
« no previous file with comments | « mojo/tools/data/unittests ('k') | mojo/tools/pylib/transitive_hash.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698