comparison comparetests.py @ 217:acd29e2664c6

Added testcases file. Some fixes to test generator for dealing with indexed mode with base and index reg the same. Added support for blastem headless mode in test runner.
author Mike Pavone <pavone@retrodev.com>
date Sat, 20 Apr 2013 00:29:14 -0700
parents 9126c33cc33c
children cb72780e17b1
comparison
equal deleted inserted replaced
216:0b5ec22dcda2 217:acd29e2664c6
3 import subprocess 3 import subprocess
4 from sys import exit 4 from sys import exit
5 5
6 for path in glob('generated_tests/*.bin'): 6 for path in glob('generated_tests/*.bin'):
7 try: 7 try:
8 b = subprocess.check_output(['./blastem', path]) 8 b = subprocess.check_output(['./blastem', path, '-v'])
9 try: 9 try:
10 m = subprocess.check_output(['musashi/mustrans', path]) 10 m = subprocess.check_output(['musashi/mustrans', path])
11 _,_,b = b.partition('\n') 11 #_,_,b = b.partition('\n')
12 if b != m: 12 if b != m:
13 print '-----------------------------' 13 print '-----------------------------'
14 print 'Mismatch in ' + path 14 print 'Mismatch in ' + path
15 print 'blastem output:' 15 print 'blastem output:'
16 print b 16 print b