1 # -*- coding: utf-8 -*-
3 #-------------------------------------------------------------------------
7 # Copyright (c) 2016 Google Inc.
9 # Licensed under the Apache License, Version 2.0 (the "License");
10 # you may not use this file except in compliance with the License.
11 # You may obtain a copy of the License at
13 # http://www.apache.org/licenses/LICENSE-2.0
15 # Unless required by applicable law or agreed to in writing, software
16 # distributed under the License is distributed on an "AS IS" BASIS,
17 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 # See the License for the specific language governing permissions and
19 # limitations under the License.
21 #-------------------------------------------------------------------------
26 sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..", "..", "scripts"))
28 from build.common import DEQP_DIR
29 from build.config import ANY_GENERATOR
30 from build_caselists import Module, getModuleByName, getBuildConfig, DEFAULT_BUILD_DIR, DEFAULT_TARGET
31 from mustpass import Project, Package, Mustpass, Configuration, include, exclude, genMustpassLists, parseBuildConfigFromCmdLineArgs
33 COPYRIGHT_DECLARATION = """
34 Licensed under the Apache License, Version 2.0 (the "License");
35 you may not use this file except in compliance with the License.
36 You may obtain a copy of the License at
38 http://www.apache.org/licenses/LICENSE-2.0
40 Unless required by applicable law or agreed to in writing, software
41 distributed under the License is distributed on an "AS IS" BASIS,
42 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
43 See the License for the specific language governing permissions and
44 limitations under the License.
47 MUSTPASS_PATH = os.path.join(DEQP_DIR, "external", "vulkancts", "mustpass")
48 PROJECT = Project(path = MUSTPASS_PATH, copyright = COPYRIGHT_DECLARATION)
49 VULKAN_MODULE = getModuleByName("dEQP-VK")
50 BUILD_CONFIG = getBuildConfig(DEFAULT_BUILD_DIR, DEFAULT_TARGET, "Debug")
54 VULKAN_1_0_0_PKG = Package(module = VULKAN_MODULE, configurations = [
56 Configuration(name = "default",
57 filters = [include("master.txt")]),
62 VULKAN_1_0_1_PKG = Package(module = VULKAN_MODULE, configurations = [
64 Configuration(name = "default",
65 filters = [include("master.txt")]),
70 VULKAN_1_0_2_PKG = Package(module = VULKAN_MODULE, configurations = [
72 Configuration(name = "default",
73 filters = [include("master.txt")]),
78 VULKAN_1_0_3_PKG = Package(module = VULKAN_MODULE, configurations = [
80 Configuration(name = "default",
81 filters = [include("master.txt"),
82 exclude("test-issues.txt"),
83 exclude("excluded-tests.txt"),
84 exclude("android-tests.txt"),
85 exclude("waivers.txt")]),
89 Mustpass(project = PROJECT, version = "1.0.0", packages = [VULKAN_1_0_0_PKG]),
90 Mustpass(project = PROJECT, version = "1.0.1", packages = [VULKAN_1_0_1_PKG]),
91 Mustpass(project = PROJECT, version = "1.0.2", packages = [VULKAN_1_0_2_PKG]),
92 Mustpass(project = PROJECT, version = "1.0.3", packages = [VULKAN_1_0_3_PKG]),
95 if __name__ == "__main__":
96 genMustpassLists(MUSTPASS_LISTS, ANY_GENERATOR, parseBuildConfigFromCmdLineArgs())