Index: tools/clang/blink_gc_plugin/tests/test.sh |
diff --git a/tools/clang/blink_gc_plugin/tests/test.sh b/tools/clang/blink_gc_plugin/tests/test.sh |
index cb3b5c032f8d8c6405d801701a5b7a76fdc74f62..d337bca39685928b6427ad6eff335a39808ffc5a 100755 |
--- a/tools/clang/blink_gc_plugin/tests/test.sh |
+++ b/tools/clang/blink_gc_plugin/tests/test.sh |
@@ -30,6 +30,10 @@ do_testcase() { |
local output="$("${CLANG_DIR}"/bin/clang -c -Wno-c++11-extensions \ |
-Xclang -load -Xclang "${CLANG_DIR}"/lib/lib${LIBNAME}.${LIB} \ |
-Xclang -add-plugin -Xclang blink-gc-plugin ${flags} ${1} 2>&1)" |
+ local json="${input%cpp}graph.json" |
+ if [ -f "$json" ]; then |
+ output="$(python ../process-graph.py -c ${json} 2>&1)" |
+ fi |
local diffout="$(echo "${output}" | diff - "${2}")" |
if [ "${diffout}" = "" ]; then |
echo "PASS: ${1}" |