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

Unified Diff: tools/clang/plugins/tests/test.sh

Issue 1108173002: Roll //build, //native_client, and a few more targets of opportunity. Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Test fix Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/clang/plugins/tests/system/windows.h ('k') | tools/clang/plugins/tests/virtual_specifiers.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/clang/plugins/tests/test.sh
diff --git a/tools/clang/plugins/tests/test.sh b/tools/clang/plugins/tests/test.sh
index ea2105446f07ace607cbed8c587b2c476ac934ca..cf262522eb855e291b8f769638bcddce0e9f7114 100755
--- a/tools/clang/plugins/tests/test.sh
+++ b/tools/clang/plugins/tests/test.sh
@@ -12,6 +12,8 @@ E_FAILEDTEST=1
failed_any_test=
+THIS_DIR="$(dirname "${0}")"
+
# Prints usage information.
usage() {
echo "Usage: $(basename "${0}")" \
@@ -38,6 +40,7 @@ do_testcase() {
local output="$("${CLANG_PATH}" -fsyntax-only -Wno-c++11-extensions \
-Wno-inconsistent-missing-override \
+ -isystem ${THIS_DIR}/system \
-Xclang -load -Xclang "${PLUGIN_PATH}" \
-Xclang -add-plugin -Xclang find-bad-constructs ${flags} ${1} 2>&1)"
local diffout="$(echo "${output}" | diff - "${2}")"
@@ -81,7 +84,7 @@ else
# The golden files assume that the cwd is this directory. To make the script
# work no matter what the cwd is, explicitly cd to there.
- cd "$(dirname "${0}")"
+ cd "${THIS_DIR}"
fi
for input in *.cpp; do
« no previous file with comments | « tools/clang/plugins/tests/system/windows.h ('k') | tools/clang/plugins/tests/virtual_specifiers.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698