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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
83 fi | 83 fi |
84 | 84 |
85 echo | 85 echo |
86 echo "--- Building release ---" | 86 echo "--- Building release ---" |
87 doBuild ia32 release | 87 doBuild ia32 release |
88 | 88 |
89 echo | 89 echo |
90 echo "--- Building debug ---" | 90 echo "--- Building debug ---" |
91 doBuild ia32 debug | 91 doBuild ia32 debug |
92 | 92 |
93 | 93 # Create a symlink for the Dart VM for frog |
94 if [ ! -f frog/bin/dart_bin ] ; then | |
95 mkdir -p frog/bin | |
96 (cd frog/bin; ln -s ../../out/Release_ia32/dart_bin .) | |
Siggi Cherem (dart-lang)
2011/11/02 20:12:14
we've noticed that using relative paths sometimes
| |
97 fi | |
94 | 98 |
95 echo | 99 echo |
96 echo "=== Runtime tests === " | 100 echo "=== Runtime tests === " |
97 echo " Debug (Ctrl-C to skip this set of tests)" | 101 echo " Debug (Ctrl-C to skip this set of tests)" |
98 doTest runtime vm debug | 102 doTest runtime vm debug |
99 RUNTIME_RESULT=$? | 103 RUNTIME_RESULT=$? |
100 if [ ${RUNTIME_RESULT} == 0 ] ; then | 104 if [ ${RUNTIME_RESULT} == 0 ] ; then |
101 echo " Release (Ctrl-C to skip this set of tests)" | 105 echo " Release (Ctrl-C to skip this set of tests)" |
102 doTest runtime vm release | 106 doTest runtime vm release |
103 RUNTIME_RESULT=$? | 107 RUNTIME_RESULT=$? |
104 fi | 108 fi |
105 | 109 |
106 | 110 |
107 echo | 111 echo |
108 echo "=== Compiler tests ===" | 112 echo "=== dartc tests ===" |
109 echo " Debug mode (Ctrl-C to skip this set of tests)" | 113 echo " Debug mode (Ctrl-C to skip this set of tests)" |
110 doTest compiler dartc debug | 114 doTest compiler dartc debug |
111 COMPILER_RESULT=$? | 115 COMPILER_RESULT=$? |
112 | 116 |
113 if [ ${DO_OPTIMIZE} == 1 ] ; then | 117 if [ ${DO_OPTIMIZE} == 1 ] ; then |
114 echo " Release mode (--optimize)" | 118 echo " Release mode (--optimize)" |
115 doTest compiler dartc release | 119 doTest compiler dartc release |
116 RESULT=$? | 120 RESULT=$? |
117 if [ ${RESULT} != 0 ] ; then | 121 if [ ${RESULT} != 0 ] ; then |
118 COMPILER_RESULT=${RESULT} | 122 COMPILER_RESULT=${RESULT} |
119 fi | 123 fi |
120 fi | 124 fi |
121 | 125 |
122 echo | 126 echo |
127 echo "=== frog tests ===" | |
128 # TODO(zundel): Update once frog is integrated into test.py | |
129 (cd frog ; ./presubmit.py) | |
130 | |
131 echo | |
123 echo "=== Client tests ===" | 132 echo "=== Client tests ===" |
124 echo " Chromium (Ctrl-C to skip this set of tests)" | 133 echo " Chromium (Ctrl-C to skip this set of tests)" |
125 doTest client chromium debug | 134 doTest client chromium debug |
126 CLIENT_RESULT=$? | 135 CLIENT_RESULT=$? |
127 | 136 |
128 if [ ${DO_OPTIMIZE} == 1 ] ; then | 137 if [ ${DO_OPTIMIZE} == 1 ] ; then |
129 echo " Chromium Release mode (--optimize)" | 138 echo " Chromium Release mode (--optimize)" |
130 doTest compiler chromium release | 139 doTest compiler chromium release |
131 RESULT=$? | 140 RESULT=$? |
132 if [ ${RESULT} != 0 ] ; then | 141 if [ ${RESULT} != 0 ] ; then |
(...skipping 19 matching lines...) Expand all Loading... | |
152 echo "*** Compiler tests failed" | 161 echo "*** Compiler tests failed" |
153 fi | 162 fi |
154 | 163 |
155 if [ ${CLIENT_RESULT} != 0 ] ; then | 164 if [ ${CLIENT_RESULT} != 0 ] ; then |
156 echo "*** Client tests failed" | 165 echo "*** Client tests failed" |
157 fi | 166 fi |
158 | 167 |
159 if [ ${TESTS_FAILED} == 0 ] ; then | 168 if [ ${TESTS_FAILED} == 0 ] ; then |
160 echo "All presubmit tests passed!" | 169 echo "All presubmit tests passed!" |
161 fi | 170 fi |
OLD | NEW |