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 26scriptPath = os.path.join(os.path.dirname(__file__), "..", "..", "..", "scripts") 27sys.path.insert(0, scriptPath) 28 29from ctsbuild.common import DEQP_DIR 30from ctsbuild.config import ANY_GENERATOR 31from build_caselists import Module, getModuleByName, getBuildConfig, DEFAULT_BUILD_DIR, DEFAULT_TARGET 32from mustpass import Project, Package, Mustpass, Configuration, include, exclude, genMustpassLists, parseBuildConfigFromCmdLineArgs 33 34COPYRIGHT_DECLARATION = """ 35 Licensed under the Apache License, Version 2.0 (the "License"); 36 you may not use this file except in compliance with the License. 37 You may obtain a copy of the License at 38 39 http://www.apache.org/licenses/LICENSE-2.0 40 41 Unless required by applicable law or agreed to in writing, software 42 distributed under the License is distributed on an "AS IS" BASIS, 43 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 44 See the License for the specific language governing permissions and 45 limitations under the License. 46 """ 47 48MUSTPASS_PATH = os.path.join(DEQP_DIR, "external", "vulkancts", "mustpass") 49PROJECT = Project(path = MUSTPASS_PATH, copyright = COPYRIGHT_DECLARATION) 50VULKAN_MODULE = getModuleByName("dEQP-VK") 51VULKAN_SC_MODULE = getModuleByName("dEQP-VKSC") 52BUILD_CONFIG = getBuildConfig(DEFAULT_BUILD_DIR, DEFAULT_TARGET, "Debug") 53 54# main 55 56VULKAN_MAIN_PKG = Package(module = VULKAN_MODULE, configurations = [ 57 # Main 58 Configuration(name = "default", 59 filters = [include("main.txt"), 60 exclude("test-issues.txt"), 61 exclude("excluded-tests.txt"), 62 exclude("android-tests.txt")], 63 listOfGroupsToSplit = ["dEQP-VK", "dEQP-VK.pipeline", "dEQP-VK.image", "dEQP-VK.shader_object"]), 64 Configuration(name = "fraction-mandatory-tests", 65 filters = [include("fraction-mandatory-tests.txt")]), 66 ]) 67 68VULKAN_SC_MAIN_PKG = Package(module = VULKAN_SC_MODULE, configurations = [ 69 # Main 70 Configuration(name = "default", 71 filters = [include("main_sc.txt"), 72 exclude("android-tests-sc.txt")], 73 listOfGroupsToSplit = ["dEQP-VKSC", "dEQP-VKSC.pipeline", "dEQP-VKSC.image", "dEQP-VKSC.shader_object"]), 74 ]) 75 76MUSTPASS_LISTS = [ 77 Mustpass(project = PROJECT, version = "main", packages = [VULKAN_MAIN_PKG, VULKAN_SC_MAIN_PKG]), 78 ] 79 80if __name__ == "__main__": 81 genMustpassLists(MUSTPASS_LISTS, ANY_GENERATOR, parseBuildConfigFromCmdLineArgs()) 82