|
|
@ -192,6 +192,10 @@ def run_tests(): |
|
|
|
javatests = gather_tests('test cases/java') |
|
|
|
javatests = gather_tests('test cases/java') |
|
|
|
else: |
|
|
|
else: |
|
|
|
javatests = [] |
|
|
|
javatests = [] |
|
|
|
|
|
|
|
if shutil.which('mcs'): |
|
|
|
|
|
|
|
cstests = gather_tests('test cases/csharp') |
|
|
|
|
|
|
|
else: |
|
|
|
|
|
|
|
cstests = [] |
|
|
|
if shutil.which('valac'): |
|
|
|
if shutil.which('valac'): |
|
|
|
valatests = gather_tests('test cases/vala') |
|
|
|
valatests = gather_tests('test cases/vala') |
|
|
|
else: |
|
|
|
else: |
|
|
@ -236,6 +240,11 @@ def run_tests(): |
|
|
|
[run_and_log(logfile, t) for t in javatests] |
|
|
|
[run_and_log(logfile, t) for t in javatests] |
|
|
|
else: |
|
|
|
else: |
|
|
|
print('\nNot running Java tests.\n') |
|
|
|
print('\nNot running Java tests.\n') |
|
|
|
|
|
|
|
if len(cstests) > 0: |
|
|
|
|
|
|
|
print('\nRunning C# tests.\n') |
|
|
|
|
|
|
|
[run_and_log(logfile, t) for t in cstests] |
|
|
|
|
|
|
|
else: |
|
|
|
|
|
|
|
print('\nNot running C# tests.\n') |
|
|
|
if len(valatests) > 0: |
|
|
|
if len(valatests) > 0: |
|
|
|
print('\nRunning Vala tests.\n') |
|
|
|
print('\nRunning Vala tests.\n') |
|
|
|
[run_and_log(logfile, t) for t in valatests] |
|
|
|
[run_and_log(logfile, t) for t in valatests] |
|
|
|