import java.util.ArrayList;
import java.util.Collection;
import java.util.HashMap;
+import java.util.HashSet;
import java.util.List;
import java.util.Map;
+import java.util.Set;
import java.util.concurrent.TimeUnit;
/**
return output.toString();
}
- private void testFiltering(List<String> includes,
- List<String> excludes,
+ private void testFiltering(Set<String> includes,
+ Set<String> excludes,
List<TestIdentifier> fullTestList,
String expectedTrie,
List<TestIdentifier> expectedTests) throws Exception {
String expectedTrie = "{dEQP-GLES3{pick_me{yes,ok,accepted}}}";
- ArrayList<String> includes = new ArrayList();
+ Set<String> includes = new HashSet();
includes.add("dEQP-GLES3.pick_me#*");
testFiltering(includes, null, allTests, expectedTrie, activeTests);
}
String expectedTrie = "{dEQP-GLES3{pick_me{yes,ok,accepted}}}";
- ArrayList<String> excludes = new ArrayList();
+ Set<String> excludes = new HashSet();
excludes.add("dEQP-GLES3.missing#*");
testFiltering(null, excludes, allTests, expectedTrie, activeTests);
}
String expectedTrie = "{dEQP-GLES3{group2{yes}}}";
- ArrayList<String> includes = new ArrayList();
+ Set<String> includes = new HashSet();
includes.add("dEQP-GLES3.group2#*");
- ArrayList<String> excludes = new ArrayList();
+ Set<String> excludes = new HashSet();
excludes.add("*foo");
excludes.add("*thoushallnotpass");
testFiltering(includes, excludes, allTests, expectedTrie, activeTests);
String expectedTrie = "{dEQP-GLES3{group1{mememe,yeah,takeitall},group2{jeba,yes,granted}}}";
- ArrayList<String> includes = new ArrayList();
+ Set<String> includes = new HashSet();
includes.add("*");
testFiltering(includes, null, allTests, expectedTrie, allTests);
String expectedTrie = "";
- ArrayList<String> excludes = new ArrayList();
+ Set<String> excludes = new HashSet();
excludes.add("*");
testFiltering(null, excludes, allTests, expectedTrie, new ArrayList<TestIdentifier>());
<?xml version="1.0" encoding="utf-8"?>
<!--
-# drawElements Quality Program utilities
-# --------------------------------------
-#
-# Copyright 2015 The Android Open Source Project
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-#-------------------------------------------------------------------------
+ drawElements Quality Program utilities
+
+ Copyright 2016 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
-->
<xsl:stylesheet
version="1.0"