diff options
author | Jussi Pakkanen <jpakkane@gmail.com> | 2016-08-21 13:22:19 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-08-21 13:22:19 +0300 |
commit | 399d65380394556ba5cd1c2a3b364f891d095bfe (patch) | |
tree | 39192e313c0108ef43bef8ae2331ffe8b08dc8ce /run_tests.py | |
parent | 5a926172e6e7870574585b5fe742fcf3e48b4398 (diff) | |
parent | 309f7a1b4a7179f44f53b75736b7cd6030f9f40d (diff) | |
download | meson-399d65380394556ba5cd1c2a3b364f891d095bfe.zip meson-399d65380394556ba5cd1c2a3b364f891d095bfe.tar.gz meson-399d65380394556ba5cd1c2a3b364f891d095bfe.tar.bz2 |
Merge pull request #685 from ximion/master
Implement D support
Diffstat (limited to 'run_tests.py')
-rwxr-xr-x | run_tests.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/run_tests.py b/run_tests.py index 34258d8..3e49662 100755 --- a/run_tests.py +++ b/run_tests.py @@ -304,6 +304,17 @@ def gather_tests(testdir): tests = [os.path.join(testdir, t[1]) for t in testlist] return tests +def have_d_compiler(): + if shutil.which("ldc2"): + return True + elif shutil.which("ldc"): + return True + elif shutil.which("gdc"): + return True + elif shutil.which("dmd"): + return True + return False + def detect_tests_to_run(): all_tests = [] all_tests.append(('common', gather_tests('test cases/common'), False)) @@ -318,6 +329,7 @@ def detect_tests_to_run(): all_tests.append(('C#', gather_tests('test cases/csharp'), False if shutil.which('mcs') else True)) all_tests.append(('vala', gather_tests('test cases/vala'), False if shutil.which('valac') else True)) all_tests.append(('rust', gather_tests('test cases/rust'), False if shutil.which('rustc') else True)) + all_tests.append(('d', gather_tests('test cases/d'), False if have_d_compiler() else True)) all_tests.append(('objective c', gather_tests('test cases/objc'), False if not mesonlib.is_windows() else True)) all_tests.append(('fortran', gather_tests('test cases/fortran'), False if shutil.which('gfortran') else True)) all_tests.append(('swift', gather_tests('test cases/swift'), False if shutil.which('swiftc') else True)) |