diff options
Diffstat (limited to 'cpp/test/Slice/errorDetection/test.py')
-rw-r--r-- | cpp/test/Slice/errorDetection/test.py | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/cpp/test/Slice/errorDetection/test.py b/cpp/test/Slice/errorDetection/test.py index a0ed798edea..d9a7664b086 100644 --- a/cpp/test/Slice/errorDetection/test.py +++ b/cpp/test/Slice/errorDetection/test.py @@ -4,6 +4,9 @@ # import glob +import os +import shutil + class SliceErrorDetectionTestCase(ClientTestCase): @@ -39,8 +42,15 @@ class SliceErrorDetectionTestCase(ClientTestCase): i = i + 1 else: current.writeln("ok") + + for language in ["cpp", "cs", "html", "java", "js", "matlab", "objc", "php", "py", "rb"]: + compiler = SliceTranslator('slice2%s' % language) + if not os.path.isfile(compiler.getCommandLine(current)): + continue + compiler.run(current, args=["forward/Forward.ice", "--output-dir", "tmp"]) + current.writeln("ok") finally: - for file in glob.glob("{0}/tmp/*".format(testdir)): - current.files.append(file) + if os.path.exists("{0}/tmp".format(testdir)): + shutil.rmtree("{0}/tmp".format(testdir)) TestSuite(__name__, [ SliceErrorDetectionTestCase() ]) |