1# -*- Python -*- 2 3import lit.util 4import lit.formats 5import os 6 7use_lit_shell = os.environ.get("LIT_USE_INTERNAL_SHELL") 8config.test_format = lit.formats.ShTest(use_lit_shell == "0") 9 10config.substitutions.append( 11 ( 12 "%exploded_graph_rewriter", 13 "'%s' %s --dump-dot-only" 14 % ( 15 config.python_executable, 16 os.path.join( 17 config.clang_src_dir, "utils", "analyzer", "exploded-graph-rewriter.py" 18 ), 19 ), 20 ) 21) 22 23config.suffixes.add(".dot") 24