Split tests into primitives

This ensures separate errors for separate common files
This commit is contained in:
Joost Rijneveld 2019-04-10 16:42:28 +02:00
parent f4607265c6
commit 5d600a2543
No known key found for this signature in database
GPG Key ID: A4FE39CF49CBC553

View File

@ -12,9 +12,13 @@ import helpers
def test_common():
for d in os.listdir('common'):
primitive = re.sub(r"\.c$", "", d)
binname = os.path.join('..', 'bin', 'test_'+primitive)
helpers.make(binname)
helpers.run_subprocess([binname])
yield check_common, primitive
def check_common(primitive):
binname = os.path.join('..', 'bin', 'test_'+primitive)
helpers.make(binname)
helpers.run_subprocess([binname])
if __name__ == '__main__':