Changeset bcd74f3 for tests/pybin
- Timestamp:
- May 8, 2020, 4:44:53 PM (6 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast, new-ast-unique-expr, pthread-emulation, qualifiedEnum, stuck-waitfor-destruct
- Children:
- 5c9b20c
- Parents:
- e3bc51c (diff), 0e7e3c17 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - Location:
- tests/pybin
- Files:
-
- 2 edited
-
settings.py (modified) (4 diffs)
-
test_run.py (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tests/pybin/settings.py
re3bc51c rbcd74f3 23 23 class Architecture: 24 24 KnownArchitectures = { 25 'x64' : 'x64',26 'x86-64' : 'x64',27 'x86_64' : 'x64',28 'x86' : 'x86',29 'aarch64' : 'arm',30 'i386' : 'x86',31 'i486' : 'x86',32 'i686' : 'x86',33 'Intel 80386' : 'x86',34 'arm' : 'arm',35 'ARM' : 'arm',25 'x64' : 'x64', 26 'x86-64' : 'x64', 27 'x86_64' : 'x64', 28 'x86' : 'x86', 29 'aarch64' : 'arm', 30 'i386' : 'x86', 31 'i486' : 'x86', 32 'i686' : 'x86', 33 'Intel 80386' : 'x86', 34 'arm' : 'arm', 35 'ARM' : 'arm', 36 36 } 37 37 … … 81 81 return True if not arch else self.target == arch 82 82 83 @ classmethod84 def make_canonical( _,arch):83 @staticmethod 84 def make_canonical(arch): 85 85 return Architecture.KnownArchitectures[arch] 86 86 … … 105 105 self.total = Timeouts.check(tg) 106 106 107 @ classmethod108 def check( _,value):107 @staticmethod 108 def check(value): 109 109 if value < 1: 110 110 print("Timeouts must be at least 1 second", file=sys.stderr) … … 129 129 global timeout2gdb 130 130 131 all_arch = [Architecture(o) for o in list(dict.fromkeys(options.arch ))] 131 all_arch = [Architecture(o) for o in list(dict.fromkeys(options.arch ))] if options.arch else [Architecture(None)] 132 132 all_debug = [Debug(o) for o in list(dict.fromkeys(options.debug ))] 133 133 all_install = [Install(o) for o in list(dict.fromkeys(options.install))] -
tests/pybin/test_run.py
re3bc51c rbcd74f3 40 40 return os.path.normpath( os.path.join(settings.BUILDDIR, self.path, self.name) ) 41 41 42 @ classmethod43 def valid_name( _,name):42 @staticmethod 43 def valid_name(name): 44 44 return not name.endswith( ('.c', '.cc', '.cpp', '.cfa') ) 45 45 46 @ classmethod47 def from_target(_, target):46 @staticmethod 47 def new_target(target, arch): 48 48 test = Test() 49 49 test.name = os.path.basename(target) 50 50 test.path = os.path.relpath (os.path.dirname(target), settings.SRCDIR) 51 test.arch = settings.arch.target if settings.arch.cross_compileelse ''51 test.arch = arch.target if arch else '' 52 52 return test 53 53 … … 72 72 return text 73 73 74 @ classmethod75 def fmtDur( cls,duration ):74 @staticmethod 75 def fmtDur( duration ): 76 76 if duration : 77 77 hours, rem = divmod(duration, 3600)
Note:
See TracChangeset
for help on using the changeset viewer.