Changeset a2f2fda for tests/pybin/settings.py
- Timestamp:
- Nov 3, 2020, 5:29:45 PM (3 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- a3f5208a
- Parents:
- daefe93
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/pybin/settings.py
rdaefe93 ra2f2fda 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 == arch88 87 89 88 @staticmethod … … 101 100 def __init__(self, ast): 102 101 if ast == "new": 102 self.target = ast 103 103 self.string = "New AST" 104 104 self.flags = """AST_FLAGS=-XCFA,--new-ast""" 105 105 elif ast == "old": 106 self.target = ast 106 107 self.string = "Old AST" 107 108 self.flags = """AST_FLAGS=-XCFA,--old-ast""" 108 109 elif ast == None: 109 self.string = "Default AST (%s)" % ("new" if config.NEWAST else "old") 110 self.target = "new" if config.NEWAST else "old" 111 self.string = "Default AST (%s)" % self.target 110 112 self.flags = """AST_FLAGS=""" 111 113 else: 112 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] 113 120 114 121 class Install:
Note: See TracChangeset
for help on using the changeset viewer.