summaryrefslogtreecommitdiff
path: root/scripts/TestUtil.py
diff options
context:
space:
mode:
authorJoe George <joe@zeroc.com>2016-09-01 12:30:14 -0400
committerJoe George <joe@zeroc.com>2016-09-01 12:30:14 -0400
commit364d50f63b78a6b458772e1d6651124244f68b6d (patch)
treea513b333c6396cb01d5b6dffde8540c746933319 /scripts/TestUtil.py
parentICE-7301 - slice2html generates bogus links (diff)
downloadice-364d50f63b78a6b458772e1d6651124244f68b6d.tar.bz2
ice-364d50f63b78a6b458772e1d6651124244f68b6d.tar.xz
ice-364d50f63b78a6b458772e1d6651124244f68b6d.zip
Use reverse filter for client cross tests
Reverse filters passed to allTests.py will now also be used to filter cross test languages.
Diffstat (limited to 'scripts/TestUtil.py')
-rwxr-xr-xscripts/TestUtil.py14
1 files changed, 11 insertions, 3 deletions
diff --git a/scripts/TestUtil.py b/scripts/TestUtil.py
index bd8e4bb41e1..1eae8cdd77a 100755
--- a/scripts/TestUtil.py
+++ b/scripts/TestUtil.py
@@ -595,8 +595,6 @@ def run(tests, root = False):
cross = ["cpp", "java", "js", "php", "python", "ruby"]
if isWin32():
cross.append("csharp")
- # TODO/XXX: we're currently not building Ruby on Windows
- cross.remove('ruby')
if isDarwin():
cross.append("objective-c")
if root:
@@ -611,8 +609,18 @@ def run(tests, root = False):
# js test user server for other language so we can ignore this
if lang == "js":
continue
+
+ # Run each crossLang through the remove filters. Does not support filter.
+ # We do this so that we can filter out cross language tests if necessary.
+ def langFiltered(lang):
+ for testFilter, removeFilter in filters:
+ if removeFilter and testFilter.search(lang):
+ return True
+ return False
+
# This is all other languages than the current mapping.
- crossLang = [ l for l in cross if lang != l ]
+ crossLang = [ l for l in cross if lang != l and langFiltered(l) == False]
+
# This is all eligible cross tests for the current mapping.
# Now expand out the tests. We run only tcp for most cross tests.
for c in crossLang: