Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Side by Side Diff: tools/clang/plugins/tests/test.sh

Issue 213403010: Re-enable the clang check for enum constants. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change "dont" to "don't". Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698