diff --git a/run_tests.py b/run_tests.py index 96dbbf2ce..75d1a81a4 100755 --- a/run_tests.py +++ b/run_tests.py @@ -192,6 +192,10 @@ def run_tests(): javatests = gather_tests('test cases/java') else: javatests = [] + if shutil.which('mcs'): + cstests = gather_tests('test cases/csharp') + else: + cstests = [] if shutil.which('valac'): valatests = gather_tests('test cases/vala') else: @@ -236,6 +240,11 @@ def run_tests(): [run_and_log(logfile, t) for t in javatests] else: 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: print('\nRunning Vala tests.\n') [run_and_log(logfile, t) for t in valatests]