diff options
Diffstat (limited to 'tools/run_tests/run_tests.py')
-rwxr-xr-x | tools/run_tests/run_tests.py | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tools/run_tests/run_tests.py b/tools/run_tests/run_tests.py index 6013f1163b..b2e9362689 100755 --- a/tools/run_tests/run_tests.py +++ b/tools/run_tests/run_tests.py @@ -102,9 +102,16 @@ class CLanguage(object): def __init__(self, make_target, test_lang): self.make_target = make_target + if platform.system() == 'Windows': + plat = 'windows' + else: + plat = 'posix' with open('tools/run_tests/tests.json') as f: js = json.load(f) - self.binaries = [tgt for tgt in js if tgt['language'] == test_lang] + self.binaries = [tgt + for tgt in js + if tgt['language'] == test_lang and + plat in tgt['platforms']] def test_specs(self, config, travis): out = [] @@ -191,6 +198,7 @@ class PythonLanguage(object): def __str__(self): return 'python' + class RubyLanguage(object): def test_specs(self, config, travis): @@ -208,6 +216,7 @@ class RubyLanguage(object): def __str__(self): return 'ruby' + class CSharpLanguage(object): def test_specs(self, config, travis): @@ -225,6 +234,7 @@ class CSharpLanguage(object): def __str__(self): return 'csharp' + class Build(object): def test_specs(self, config, travis): |