blob: 6dfe94c95ed8a39b7a19ef199c4831d5525d081c [file] [log] [blame]
# -*- coding: utf-8 -*-
#-------------------------------------------------------------------------
# Vulkan CTS
# ----------
#
# Copyright (c) 2016 Google Inc.
#
# 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.
#
#-------------------------------------------------------------------------
import os
import sys
scriptPath = os.path.join(os.path.dirname(__file__), "..", "..", "..", "scripts")
sys.path.insert(0, scriptPath)
from ctsbuild.common import DEQP_DIR
from ctsbuild.config import ANY_GENERATOR
from build_caselists import Module, getModuleByName, getBuildConfig, DEFAULT_BUILD_DIR, DEFAULT_TARGET
from mustpass import Project, Package, Mustpass, Configuration, include, exclude, genMustpassLists, parseBuildConfigFromCmdLineArgs
COPYRIGHT_DECLARATION = """
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.
"""
MUSTPASS_PATH = os.path.join(DEQP_DIR, "external", "vulkancts", "mustpass")
PROJECT = Project(path = MUSTPASS_PATH, copyright = COPYRIGHT_DECLARATION)
VULKAN_MODULE = getModuleByName("dEQP-VK")
VULKAN_SC_MODULE = getModuleByName("dEQP-VKSC")
BUILD_CONFIG = getBuildConfig(DEFAULT_BUILD_DIR, DEFAULT_TARGET, "Debug")
# main
VULKAN_MAIN_PKG = Package(module = VULKAN_MODULE, configurations = [
# Main
Configuration(name = "default",
filters = [include("main.txt"),
exclude("test-issues.txt"),
exclude("excluded-tests.txt"),
exclude("android-tests.txt")],
listOfGroupsToSplit = ["dEQP-VK", "dEQP-VK.pipeline", "dEQP-VK.image", "dEQP-VK.shader_object"]),
Configuration(name = "fraction-mandatory-tests",
filters = [include("fraction-mandatory-tests.txt")]),
])
VULKAN_SC_MAIN_PKG = Package(module = VULKAN_SC_MODULE, configurations = [
# Main
Configuration(name = "default",
filters = [include("main_sc.txt"),
exclude("android-tests-sc.txt")],
listOfGroupsToSplit = ["dEQP-VKSC", "dEQP-VKSC.pipeline", "dEQP-VKSC.image", "dEQP-VKSC.shader_object"]),
])
MUSTPASS_LISTS = [
Mustpass(project = PROJECT, version = "main", packages = [VULKAN_MAIN_PKG, VULKAN_SC_MAIN_PKG]),
]
if __name__ == "__main__":
genMustpassLists(MUSTPASS_LISTS, ANY_GENERATOR, parseBuildConfigFromCmdLineArgs())