| OLD | NEW |
| 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 30 matching lines...) Expand all Loading... |
| 41 } | 41 } |
| 42 | 42 |
| 43 do_build() { | 43 do_build() { |
| 44 echo "Building in out/$1 ..." | 44 echo "Building in out/$1 ..." |
| 45 ninja -C "out/$1" mojo || exit 1 | 45 ninja -C "out/$1" mojo || exit 1 |
| 46 } | 46 } |
| 47 | 47 |
| 48 do_unittests() { | 48 do_unittests() { |
| 49 echo "Running unit tests in out/$1 ..." | 49 echo "Running unit tests in out/$1 ..." |
| 50 "out/$1/mojo_common_unittests" || exit 1 | 50 "out/$1/mojo_common_unittests" || exit 1 |
| 51 "out/$1/mojo_apps_js_unittests" || exit 1 |
| 51 "out/$1/mojo_js_unittests" || exit 1 | 52 "out/$1/mojo_js_unittests" || exit 1 |
| 52 "out/$1/mojo_public_bindings_unittests" || exit 1 | 53 "out/$1/mojo_public_bindings_unittests" || exit 1 |
| 53 "out/$1/mojo_public_environment_unittests" || exit 1 | 54 "out/$1/mojo_public_environment_unittests" || exit 1 |
| 54 "out/$1/mojo_public_system_unittests" || exit 1 | 55 "out/$1/mojo_public_system_unittests" || exit 1 |
| 55 "out/$1/mojo_public_utility_unittests" || exit 1 | 56 "out/$1/mojo_public_utility_unittests" || exit 1 |
| 56 "out/$1/mojo_service_manager_unittests" || exit 1 | 57 "out/$1/mojo_service_manager_unittests" || exit 1 |
| 57 "out/$1/mojo_system_unittests" || exit 1 | 58 "out/$1/mojo_system_unittests" || exit 1 |
| 58 } | 59 } |
| 59 | 60 |
| 60 do_perftests() { | 61 do_perftests() { |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 ;; | 173 ;; |
| 173 --static) | 174 --static) |
| 174 COMPONENT=static | 175 COMPONENT=static |
| 175 ;; | 176 ;; |
| 176 *) | 177 *) |
| 177 echo "Unknown command \"${arg}\". Try \"$(basename "$0") help\"." | 178 echo "Unknown command \"${arg}\". Try \"$(basename "$0") help\"." |
| 178 exit 1 | 179 exit 1 |
| 179 ;; | 180 ;; |
| 180 esac | 181 esac |
| 181 done | 182 done |
| OLD | NEW |