this repo has no description
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

runtests.py: use the specified dyld

+12 -2
+12 -2
tests/src/bin/runtests.py
··· 4 4 import subprocess 5 5 from xml.dom.minidom import Document 6 6 7 - TEST_ARCHITECTURES = tuple([ "i386", "x86-64" ]) 7 + TEST_ARCHITECTURES = [ "i386", "x86-64" ] 8 8 TEST_PLATFORMS = tuple([ "10.2", "10.6", "10.8" ]) 9 9 10 10 successful_tests = {} 11 11 failed_tests = {} 12 + dyld_command = "dyld" 12 13 13 14 def main(): 15 + global dyld_command 14 16 orig_cwd = os.getcwd() 17 + 18 + if 'DYLD' in os.environ: 19 + dyld_command = os.environ['DYLD'] 20 + 21 + if dyld_command.endswith('32'): 22 + TEST_ARCHITECTURES.remove('x86-64') 23 + elif dyld_command.endswith('64'): 24 + TEST_ARCHITECTURES.remove('i386') 15 25 16 26 os.chdir(os.path.dirname(os.path.realpath(__file__))) 17 27 tests = glob.glob('i386/*.stdout'); ··· 49 59 continue 50 60 51 61 try: 52 - output = subprocess.check_output(["dyld", path + ".bin"]) 62 + output = subprocess.check_output([dyld_command, path + ".bin"]) 53 63 54 64 if output != expectedOutput: 55 65 description = "Expected output:\n" + expectedOutput + "\n\nActual output:\n" + output