diff options
author | Benoit Foucher <benoit@zeroc.com> | 2018-10-18 15:24:08 +0200 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2018-10-18 15:24:08 +0200 |
commit | f0b0d3f3551ec1b4f74c99d77cca1362d8f1c1c2 (patch) | |
tree | b08ce51f7839c7d5c7275dc33baf643e4fc20799 /scripts/tests | |
parent | Fix C# test instructions for .NET Core (diff) | |
download | ice-f0b0d3f3551ec1b4f74c99d77cca1362d8f1c1c2.tar.bz2 ice-f0b0d3f3551ec1b4f74c99d77cca1362d8f1c1c2.tar.xz ice-f0b0d3f3551ec1b4f74c99d77cca1362d8f1c1c2.zip |
Added support for --cpp-path to test driver
Diffstat (limited to 'scripts/tests')
-rw-r--r-- | scripts/tests/IceSSL/configuration.py | 13 | ||||
-rw-r--r-- | scripts/tests/Slice/generation.py | 4 |
2 files changed, 9 insertions, 8 deletions
diff --git a/scripts/tests/IceSSL/configuration.py b/scripts/tests/IceSSL/configuration.py index 6203f56871d..2c2c75a15fb 100644 --- a/scripts/tests/IceSSL/configuration.py +++ b/scripts/tests/IceSSL/configuration.py @@ -17,7 +17,7 @@ class ConfigurationTestCase(ClientServerTestCase): if not isinstance(self.getMapping(), CppMapping): return - certsPath = os.path.abspath(os.path.join(self.getPath(), "..", "certs")) + certsPath = os.path.abspath(os.path.join(current.testsuite.getPath(), "..", "certs")) if isinstance(platform, Darwin) and current.config.buildPlatform == "macosx": keychainPath = os.path.join(certsPath, "Find.keychain") os.system("mkdir -p {0}".format(os.path.join(certsPath, "keychain"))) @@ -40,7 +40,7 @@ class ConfigurationTestCase(ClientServerTestCase): if not isinstance(self.getMapping(), CppMapping): return - certsPath = os.path.abspath(os.path.join(self.getPath(), "..", "certs")) + certsPath = os.path.abspath(os.path.join(current.testsuite.getPath(), "..", "certs")) if isinstance(platform, Darwin) and current.config.buildPlatform == "macosx": os.system("rm -rf {0} {1}".format(os.path.join(certsPath, "keychain"), os.path.join(certsPath, "Find.keychain"))) elif current.config.openssl or platform.hasOpenSSL(): @@ -49,17 +49,18 @@ class ConfigurationTestCase(ClientServerTestCase): out = run("{openssl} x509 -subject_hash -noout -in {pem}".format(pem=pem, openssl=self.getOpenSSLCommand())) os.remove("{dir}/{out}.0".format(out=out, dir=certsPath)) if isinstance(platform, Windows): - os.remove(os.path.join(self.getPath(), "openssl.cnf")) + os.remove(os.path.join(current.testsuite.getPath(), "openssl.cnf")) del os.environ["OPENSSL_CONF"] def getOpenSSLCommand(self): if isinstance(platform, Windows): - conf = os.path.join(self.getPath(), "openssl.cnf") + conf = os.path.join(current.testsuite.getPath(), "openssl.cnf") os.environ["OPENSSL_CONF"] = conf with open(conf, "w") as file: file.write("# Dummy openssl configuration file to avoid warnings with Windows testing") - return os.path.join(self.getPath(), "..", "..", "..", "msbuild", "packages", "zeroc.openssl.v140.1.0.2.5", - "build", "native", "bin", "Win32", "Release", "openssl.exe") + return os.path.join(current.testsuite.getPath(), "..", "..", "..", "msbuild", "packages", + "zeroc.openssl.v140.1.0.2.5", "build", "native", "bin", "Win32", "Release", + "openssl.exe") else: return "openssl" diff --git a/scripts/tests/Slice/generation.py b/scripts/tests/Slice/generation.py index 5d12e905fbc..b4c0929c346 100644 --- a/scripts/tests/Slice/generation.py +++ b/scripts/tests/Slice/generation.py @@ -17,10 +17,10 @@ class SliceGenerationTestCase(ClientTestCase): slice2java.run(current, args=["--list-generated", "--output-dir", "classes", "File1.ice", "File2.ice"] + - (["--compat"] if current.testcase.getPath().find("java-compat") >= 0 else [])) + (["--compat"] if current.testsuite.getPath().find("java-compat") >= 0 else [])) lines1 = slice2java.getOutput(current).strip().split("\n") - lines2 = open(os.path.join(self.getPath(), "list-generated.out"), "r").readlines() + lines2 = open(os.path.join(current.testsuite.getPath(), "list-generated.out"), "r").readlines() if len(lines1) != len(lines2): raise RuntimeError("failed!") |