Merge branch '274-remove-round' 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 PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
21 # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
22 # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
23 # IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
24 # CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
25 # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
26 # MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
27 #
28 #-------------------------------------------------------------------------
29
30 import os
31 import sys
32
33 sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..", "scripts"))
34
35 from build.common import DEQP_DIR
36 from build.config import ANY_GENERATOR
37 from build_caselists import Module, getModuleByName, getBuildConfig, DEFAULT_BUILD_DIR, DEFAULT_TARGET
38 from mustpass import Project, Package, Mustpass, Configuration, include, exclude, genMustpassLists
39
40 COPYRIGHT_DECLARATION = """
41      Permission is hereby granted, free of charge, to any person obtaining a
42      copy of this software and/or associated documentation files (the
43      "Materials"), to deal in the Materials without restriction, including
44      without limitation the rights to use, copy, modify, merge, publish,
45      distribute, sublicense, and/or sell copies of the Materials, and to
46      permit persons to whom the Materials are furnished to do so, subject to
47      the following conditions:
48
49      The above copyright notice(s) and this permission notice shall be
50      included in all copies or substantial portions of the Materials.
51
52      THE MATERIALS ARE PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
53      EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
54      MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
55      IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
56      CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
57      TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
58      MATERIALS OR THE USE OR OTHER DEALINGS IN THE MATERIALS.
59      """
60
61 MUSTPASS_PATH           = os.path.join(DEQP_DIR, "external", "vulkancts", "mustpass")
62 PROJECT                         = Project(path = MUSTPASS_PATH, copyright = COPYRIGHT_DECLARATION)
63 VULKAN_MODULE           = getModuleByName("dEQP-VK")
64 BUILD_CONFIG            = getBuildConfig(DEFAULT_BUILD_DIR, DEFAULT_TARGET, "Debug")
65
66 # 1.0.0
67
68 VULKAN_1_0_0_PKG        = Package(module = VULKAN_MODULE, configurations = [
69                 # Master
70                 Configuration(name              = "default",
71                                           filters       = [include("master.txt"),
72                                                                    exclude("test-issues.txt"),
73                                                                    exclude("excluded-tests.txt")]),
74         ])
75
76 MUSTPASS_LISTS          = [
77                 Mustpass(project = PROJECT, version = "1.0.0",          packages = [VULKAN_1_0_0_PKG])
78         ]
79
80 if __name__ == "__main__":
81         genMustpassLists(MUSTPASS_LISTS, ANY_GENERATOR, BUILD_CONFIG)