Merge branch 'jekstrand_renderpass_transfer_bit_fix' into 'master'
[platform/upstream/VK-GL-CTS.git] / external / vulkancts / build_mustpass.py
1 # -*- coding: utf-8 -*-
2
3 #-------------------------------------------------------------------------
4 # Vulkan CTS
5 # ----------
6 #
7 # Copyright (c) 2016 Google Inc.
8 #
9 # Permission is hereby granted, free of charge, to any person obtaining a
10 # copy of this software and/or associated documentation files (the
11 # "Materials"), to deal in the Materials without restriction, including
12 # without limitation the rights to use, copy, modify, merge, publish,
13 # distribute, sublicense, and/or sell copies of the Materials, and to
14 # permit persons to whom the Materials are furnished to do so, subject to
15 # the following conditions:
16 #
17 # The above copyright notice(s) and this permission notice shall be
18 # included in all copies or substantial portions of the Materials.
19 #
20 # The Materials are Confidential Information as defined by the
21 # Khronos Membership Agreement until designated non-confidential by
22 # Khronos, at which point this condition clause shall be removed.
23 #
24 # THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
25 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
26 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
27 # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
28 # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
29 # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
30 # MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
31 #
32 #-------------------------------------------------------------------------
33
34 import os
35 import sys
36
37 sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..", "scripts"))
38
39 from build.common import DEQP_DIR
40 from build.config import ANY_GENERATOR
41 from build_caselists import Module, getModuleByName, getBuildConfig, DEFAULT_BUILD_DIR, DEFAULT_TARGET
42 from mustpass import Project, Package, Mustpass, Configuration, include, exclude, genMustpassLists
43
44 COPYRIGHT_DECLARATION = """
45      Permission is hereby granted, free of charge, to any person obtaining a
46      copy of this software and/or associated documentation files (the
47      "Materials"), to deal in the Materials without restriction, including
48      without limitation the rights to use, copy, modify, merge, publish,
49      distribute, sublicense, and/or sell copies of the Materials, and to
50      permit persons to whom the Materials are furnished to do so, subject to
51      the following conditions:
52
53      The above copyright notice(s) and this permission notice shall be
54      included in all copies or substantial portions of the Materials.
55
56      The Materials are Confidential Information as defined by the
57      Khronos Membership Agreement until designated non-confidential by
58      Khronos, at which point this condition clause shall be removed.
59
60      THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
61      EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
62      MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
63      IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
64      CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
65      TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
66      MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
67      """
68
69 MUSTPASS_PATH           = os.path.join(DEQP_DIR, "external", "vulkancts", "mustpass")
70 PROJECT                         = Project(path = MUSTPASS_PATH, copyright = COPYRIGHT_DECLARATION)
71 VULKAN_MODULE           = getModuleByName("dEQP-VK")
72 BUILD_CONFIG            = getBuildConfig(DEFAULT_BUILD_DIR, DEFAULT_TARGET, "Debug")
73
74 # 1.0.0
75
76 VULKAN_1_0_0_PKG        = Package(module = VULKAN_MODULE, configurations = [
77                 # Master
78                 Configuration(name              = "default",
79                                           filters       = [include("master.txt"),
80                                                                    exclude("test-issues.txt"),
81                                                                    exclude("excluded-tests.txt")]),
82         ])
83
84 MUSTPASS_LISTS          = [
85                 Mustpass(project = PROJECT, version = "1.0.0",          packages = [VULKAN_1_0_0_PKG])
86         ]
87
88 if __name__ == "__main__":
89         genMustpassLists(MUSTPASS_LISTS, ANY_GENERATOR, BUILD_CONFIG)