1# -*- coding: utf-8 -*- 2 3#------------------------------------------------------------------------- 4# Vulkan CTS 5# ---------- 6# 7# Copyright (c) 2016 Google Inc. 8# 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 12# 13# http://www.apache.org/licenses/LICENSE-2.0 14# 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. 20# 21#------------------------------------------------------------------------- 22 23import os 24import sys 25 26sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..", "..", "scripts")) 27 28from build.common import DEQP_DIR 29from build.config import ANY_GENERATOR 30from build_caselists import Module, getModuleByName, getBuildConfig, DEFAULT_BUILD_DIR, DEFAULT_TARGET 31from mustpass import Project, Package, Mustpass, Configuration, include, exclude, genMustpassLists, parseBuildConfigFromCmdLineArgs 32 33COPYRIGHT_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 37 38 http://www.apache.org/licenses/LICENSE-2.0 39 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. 45 """ 46 47MUSTPASS_PATH = os.path.join(DEQP_DIR, "external", "vulkancts", "mustpass") 48PROJECT = Project(path = MUSTPASS_PATH, copyright = COPYRIGHT_DECLARATION) 49VULKAN_MODULE = getModuleByName("dEQP-VK") 50BUILD_CONFIG = getBuildConfig(DEFAULT_BUILD_DIR, DEFAULT_TARGET, "Debug") 51 52# 1.0.0 53 54VULKAN_1_0_0_PKG = Package(module = VULKAN_MODULE, configurations = [ 55 # Master 56 Configuration(name = "default", 57 filters = [include("master.txt")]), 58 ]) 59 60# 1.0.1 61 62VULKAN_1_0_1_PKG = Package(module = VULKAN_MODULE, configurations = [ 63 # Master 64 Configuration(name = "default", 65 filters = [include("master.txt")]), 66 ]) 67 68# 1.0.2 69 70VULKAN_1_0_2_PKG = Package(module = VULKAN_MODULE, configurations = [ 71 # Master 72 Configuration(name = "default", 73 filters = [include("master.txt")]), 74 ]) 75 76# 1.1.0 77 78VULKAN_1_1_0_PKG = Package(module = VULKAN_MODULE, configurations = [ 79 # Master 80 Configuration(name = "default", 81 filters = [include("master.txt"), 82 exclude("waivers.txt")]), 83 Configuration(name = "default-no-waivers", 84 filters = [include("master.txt")]), 85 86 ]) 87 88# 1.1.1 89 90VULKAN_1_1_1_PKG = Package(module = VULKAN_MODULE, configurations = [ 91 # Master 92 Configuration(name = "default", 93 filters = [include("master.txt"), 94 exclude("waivers.txt")]), 95 Configuration(name = "default-no-waivers", 96 filters = [include("master.txt")]), 97 ]) 98 99# 1.1.2 100 101VULKAN_1_1_2_PKG = Package(module = VULKAN_MODULE, configurations = [ 102 # Master 103 Configuration(name = "default", 104 filters = [include("master.txt"), 105 exclude("waivers.txt")]), 106 Configuration(name = "default-no-waivers", 107 filters = [include("master.txt")]), 108 ]) 109 110# 1.1.3 111 112VULKAN_1_1_3_PKG = Package(module = VULKAN_MODULE, configurations = [ 113 # Master 114 Configuration(name = "default", 115 filters = [include("master.txt"), 116 exclude("test-issues.txt"), 117 exclude("excluded-tests.txt"), 118 exclude("android-tests.txt"), 119 exclude("waivers.txt")]), 120 Configuration(name = "default-no-waivers", 121 filters = [include("master.txt"), 122 exclude("test-issues.txt"), 123 exclude("excluded-tests.txt"), 124 exclude("android-tests.txt")]), 125 ]) 126 127 128MUSTPASS_LISTS = [ 129 Mustpass(project = PROJECT, version = "1.0.0", packages = [VULKAN_1_0_0_PKG]), 130 Mustpass(project = PROJECT, version = "1.0.1", packages = [VULKAN_1_0_1_PKG]), 131 Mustpass(project = PROJECT, version = "1.0.2", packages = [VULKAN_1_0_2_PKG]), 132 Mustpass(project = PROJECT, version = "1.1.0", packages = [VULKAN_1_1_0_PKG]), 133 Mustpass(project = PROJECT, version = "1.1.1", packages = [VULKAN_1_1_1_PKG]), 134 Mustpass(project = PROJECT, version = "1.1.2", packages = [VULKAN_1_1_2_PKG]), 135 Mustpass(project = PROJECT, version = "1.1.3", packages = [VULKAN_1_1_3_PKG]), 136 ] 137 138if __name__ == "__main__": 139 genMustpassLists(MUSTPASS_LISTS, ANY_GENERATOR, parseBuildConfigFromCmdLineArgs()) 140