| OLD | NEW |
| 1 #!/bin/bash | 1 #!/bin/bash |
| 2 # | 2 # |
| 3 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file | 3 # Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file |
| 4 # for details. All rights reserved. Use of this source code is governed by a | 4 # for details. All rights reserved. Use of this source code is governed by a |
| 5 # BSD-style license that can be found in the LICENSE file. | 5 # BSD-style license that can be found in the LICENSE file. |
| 6 # | 6 # |
| 7 | 7 |
| 8 # A quick check over a subset the tests in the runtime, compiler | 8 # A quick check over a subset the tests in the runtime, compiler |
| 9 # and client directories. | 9 # and client directories. |
| 10 | 10 |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 if [ ${DO_OPTIMIZE} == 1 ] ; then | 111 if [ ${DO_OPTIMIZE} == 1 ] ; then |
| 112 echo " Release mode (--optimize)" | 112 echo " Release mode (--optimize)" |
| 113 doTest compiler dartc release | 113 doTest compiler dartc release |
| 114 RESULT=$? | 114 RESULT=$? |
| 115 if [ ${RESULT} != 0 ] ; then | 115 if [ ${RESULT} != 0 ] ; then |
| 116 DARTC_RESULT=${RESULT} | 116 DARTC_RESULT=${RESULT} |
| 117 fi | 117 fi |
| 118 fi | 118 fi |
| 119 | 119 |
| 120 echo | 120 echo |
| 121 echo "=== frog tests ===" | |
| 122 cd frog | |
| 123 ./presubmit.py | |
| 124 FROG_RESULT=$? | |
| 125 if [ ${FROG_RESULT} != 0 ] ; then | |
| 126 TESTS_FAILED=1 | |
| 127 fi | |
| 128 cd - | |
| 129 | |
| 130 echo | |
| 131 echo "=== Client tests ===" | 121 echo "=== Client tests ===" |
| 132 echo " Chromium (Ctrl-C to skip this set of tests)" | 122 echo " Chromium (Ctrl-C to skip this set of tests)" |
| 133 doTest client chromium debug | 123 doTest client chromium debug |
| 134 CLIENT_RESULT=$? | 124 CLIENT_RESULT=$? |
| 135 | 125 |
| 136 if [ ${DO_OPTIMIZE} == 1 ] ; then | 126 if [ ${DO_OPTIMIZE} == 1 ] ; then |
| 137 echo " Chromium Release mode (--optimize)" | 127 echo " Chromium Release mode (--optimize)" |
| 138 doTest compiler chromium release | 128 doTest compiler chromium release |
| 139 RESULT=$? | 129 RESULT=$? |
| 140 if [ ${RESULT} != 0 ] ; then | 130 if [ ${RESULT} != 0 ] ; then |
| (...skipping 12 matching lines...) Expand all Loading... |
| 153 | 143 |
| 154 # Print summary of results | 144 # Print summary of results |
| 155 if [ ${RUNTIME_RESULT} != 0 ] ; then | 145 if [ ${RUNTIME_RESULT} != 0 ] ; then |
| 156 echo "*** vm tests failed" | 146 echo "*** vm tests failed" |
| 157 fi | 147 fi |
| 158 | 148 |
| 159 if [ ${DARTC_RESULT} != 0 ] ; then | 149 if [ ${DARTC_RESULT} != 0 ] ; then |
| 160 echo "*** dartc tests failed" | 150 echo "*** dartc tests failed" |
| 161 fi | 151 fi |
| 162 | 152 |
| 163 if [ ${FROG_RESULT} != 0 ] ; then | |
| 164 echo "*** frog tests failed" | |
| 165 fi | |
| 166 | |
| 167 if [ ${CLIENT_RESULT} != 0 ] ; then | 153 if [ ${CLIENT_RESULT} != 0 ] ; then |
| 168 echo "*** client tests failed" | 154 echo "*** client tests failed" |
| 169 fi | 155 fi |
| 170 | 156 |
| 171 if [ ${TESTS_FAILED} == 0 ] ; then | 157 if [ ${TESTS_FAILED} == 0 ] ; then |
| 172 echo "All presubmit tests passed!" | 158 echo "All presubmit tests passed!" |
| 173 fi | 159 fi |
| OLD | NEW |