OLD | NEW |
1 #!/bin/bash | 1 #!/bin/bash |
2 # | 2 # |
3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2011 The Chromium Authors. All rights reserved. |
4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
6 # | 6 # |
7 # Hacky, primitive testing: This runs the style plugin for a set of input files | 7 # Hacky, primitive testing: This runs the style plugin for a set of input files |
8 # and compares the output with golden result files. | 8 # and compares the output with golden result files. |
9 | 9 |
10 E_BADARGS=65 | 10 E_BADARGS=65 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 export LIB=so | 64 export LIB=so |
65 elif [ "$(uname -s)" = "Darwin" ]; then | 65 elif [ "$(uname -s)" = "Darwin" ]; then |
66 export LIB=dylib | 66 export LIB=dylib |
67 fi | 67 fi |
68 fi | 68 fi |
69 | 69 |
70 for input in *.cpp; do | 70 for input in *.cpp; do |
71 do_testcase "${input}" "${input%cpp}txt" "${input%cpp}flags" | 71 do_testcase "${input}" "${input%cpp}txt" "${input%cpp}flags" |
72 done | 72 done |
73 | 73 |
| 74 for input in *.c; do |
| 75 do_testcase "${input}" "${input%c}txt" "${input%c}flags" |
| 76 done |
| 77 |
74 if [[ "${failed_any_test}" ]]; then | 78 if [[ "${failed_any_test}" ]]; then |
75 exit ${E_FAILEDTEST} | 79 exit ${E_FAILEDTEST} |
76 fi | 80 fi |
OLD | NEW |