Changes in tests/pybin/settings.py [a2f2fda:9509a412]
- File:
-
- 1 edited
-
tests/pybin/settings.py (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/pybin/settings.py
ra2f2fda r9509a412 85 85 def filter(self, tests): 86 86 return [test for test in tests if not test.arch or self.target == test.arch] 87 return True if not arch else self.target == arch 87 88 88 89 @staticmethod … … 96 97 self.flags = """DEBUG_FLAGS=%s""" % ("-debug -O0" if value else "-nodebug -O2") 97 98 self.path = "debug" if value else "nodebug" 98 99 class AST:100 def __init__(self, ast):101 if ast == "new":102 self.target = ast103 self.string = "New AST"104 self.flags = """AST_FLAGS=-XCFA,--new-ast"""105 elif ast == "old":106 self.target = ast107 self.string = "Old AST"108 self.flags = """AST_FLAGS=-XCFA,--old-ast"""109 elif ast == None:110 self.target = "new" if config.NEWAST else "old"111 self.string = "Default AST (%s)" % self.target112 self.flags = """AST_FLAGS="""113 else:114 print("""ERROR: Invalid ast configuration, must be "old", "new" or left unspecified, was %s""" % (value), file=sys.stderr)115 sys.exit(1)116 117 def filter(self, tests):118 119 return [test for test in tests if not test.astv or self.target == test.astv]120 99 121 100 class Install: … … 141 120 142 121 def init( options ): 143 global all_ast144 122 global all_arch 145 123 global all_debug 146 124 global all_install 147 global ast148 125 global arch 126 global archive 127 global continue_ 149 128 global debug 150 global archive151 global install152 153 global continue_154 129 global dry_run 155 130 global generating 131 global install 156 132 global make 157 133 global output_width … … 159 135 global timeout2gdb 160 136 161 all_ast = [AST(o) for o in list(dict.fromkeys(options.ast ))] if options.ast else [AST(None)]162 137 all_arch = [Architecture(o) for o in list(dict.fromkeys(options.arch ))] if options.arch else [Architecture(None)] 163 138 all_debug = [Debug(o) for o in list(dict.fromkeys(options.debug ))]
Note:
See TracChangeset
for help on using the changeset viewer.