diff options
author | Benoit Foucher <benoit@zeroc.com> | 2016-11-25 13:13:22 +0100 |
---|---|---|
committer | Benoit Foucher <benoit@zeroc.com> | 2016-11-25 13:13:22 +0100 |
commit | dcdc32af1fced49d80a8ccd93230e15d91ab45d8 (patch) | |
tree | eb69e2555fbd54496fce8a33f4dd610e1473ff51 /python/test/Slice/import/test.py | |
parent | C# IceSSL/configuration log expired certificate exceptions. (diff) | |
download | ice-dcdc32af1fced49d80a8ccd93230e15d91ab45d8.tar.bz2 ice-dcdc32af1fced49d80a8ccd93230e15d91ab45d8.tar.xz ice-dcdc32af1fced49d80a8ccd93230e15d91ab45d8.zip |
Refactored test scripts
Diffstat (limited to 'python/test/Slice/import/test.py')
-rw-r--r-- | python/test/Slice/import/test.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/python/test/Slice/import/test.py b/python/test/Slice/import/test.py new file mode 100644 index 00000000000..6a0343d1e4e --- /dev/null +++ b/python/test/Slice/import/test.py @@ -0,0 +1,26 @@ +# ********************************************************************** +# +# Copyright (c) 2003-2016 ZeroC, Inc. All rights reserved. +# +# This copy of Ice is licensed to you under the terms described in the +# ICE_LICENSE file included in this distribution. +# +# ********************************************************************** + +class SliceImportTestCase(ClientTestCase): + + def setupClientSide(self, current): + + testdir = current.testcase.getPath() + if os.path.exists(os.path.join(testdir, "Test1_ice.py")): + os.remove(os.path.join(testdir, "Test1_ice.py")) + if os.path.exists(os.path.join(testdir, "Test2_ice.py")): + os.remove(os.path.join(testdir, "Test2_ice.py")) + if os.path.exists(os.path.join(testdir, "Test")): + shutil.rmtree(os.path.join(testdir, "Test")) + + slice2py = SliceTranslator("slice2py") + slice2py.run(current, args=["Test1.ice"]) + slice2py.run(current, args=["Test2.ice"]) + +TestSuite(__name__, [ SliceImportTestCase() ])
\ No newline at end of file |