| OLD | NEW |
| 1 #!/usr/bin/env bash | 1 #!/usr/bin/env bash |
| 2 # Copyright (c) 2016 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2016 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 # Get the full directory path of this script regardless of where it's run from | 6 # Get the full directory path of this script regardless of where it's run from |
| 7 # Based on: http://stackoverflow.com/questions/59895/can-a-bash-script-tell-whic
h-directory-it-is-stored-in | 7 # Based on: http://stackoverflow.com/questions/59895/can-a-bash-script-tell-whic
h-directory-it-is-stored-in |
| 8 SCRIPT_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd)" | 8 SCRIPT_PATH="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd)" |
| 9 | 9 |
| 10 CHROMIUM_ROOT_PATH=${SCRIPT_PATH}"/../../../../.." | 10 CHROMIUM_ROOT_PATH=${SCRIPT_PATH}"/../../../../.." |
| 11 OUT_PATH=${CHROMIUM_ROOT_PATH}"/out/Release" | 11 OUT_PATH=${CHROMIUM_ROOT_PATH}"/out/Release" |
| 12 RUN_LAYOUT_TEST_PATH=${CHROMIUM_ROOT_PATH}"/blink/tools/run_layout_tests.py" | 12 RUN_LAYOUT_TEST_PATH=${CHROMIUM_ROOT_PATH}"/blink/tools/run_layout_tests.py" |
| 13 ALL_TESTS=" inspector** http/tests/inspector**" | 13 ALL_TESTS=" inspector** http/tests/inspector**" |
| 14 DEBUG_FLAG=" --additional-driver-flag='--debug-devtools'" | 14 DEBUG_FLAG=" --additional-driver-flag='--debug-devtools'" |
| 15 | 15 |
| 16 COMMAND=${RUN_LAYOUT_TEST_PATH} | 16 COMMAND=${RUN_LAYOUT_TEST_PATH} |
| 17 | 17 |
| 18 #ninja -C ${OUT_PATH} devtools_frontend_resources | 18 ninja -C ${OUT_PATH} devtools_frontend_resources |
| 19 if [ $1 == "-d" ] | 19 if [ $1 == "-d" ] |
| 20 then | 20 then |
| 21 shift | 21 shift |
| 22 COMMAND=${COMMAND}${DEBUG_FLAG} | 22 COMMAND=${COMMAND}${DEBUG_FLAG} |
| 23 fi | 23 fi |
| 24 | 24 |
| 25 if [ $# -eq 0 ] | 25 if [ $# -eq 0 ] |
| 26 then | 26 then |
| 27 COMMAND=${COMMAND}${ALL_TESTS} | 27 COMMAND=${COMMAND}${ALL_TESTS} |
| 28 else | 28 else |
| 29 COMMAND=${COMMAND}" $@" | 29 COMMAND=${COMMAND}" $@" |
| 30 fi | 30 fi |
| 31 | 31 |
| 32 ${COMMAND} | 32 ${COMMAND} |
| OLD | NEW |