1 # -*- coding: utf-8 -*-
3 #-------------------------------------------------------------------------
7 # Copyright (c) 2016 Google Inc.
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:
17 # The above copyright notice(s) and this permission notice shall be
18 # included in all copies or substantial portions of the Materials.
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.
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.
32 #-------------------------------------------------------------------------
37 sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..", "scripts"))
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
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:
53 The above copyright notice(s) and this permission notice shall be
54 included in all copies or substantial portions of the Materials.
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.
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.
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")
76 VULKAN_1_0_0_PKG = Package(module = VULKAN_MODULE, configurations = [
78 Configuration(name = "default",
79 filters = [include("master.txt"),
80 exclude("test-issues.txt"),
81 exclude("excluded-tests.txt")]),
85 Mustpass(project = PROJECT, version = "1.0.0", packages = [VULKAN_1_0_0_PKG])
88 if __name__ == "__main__":
89 genMustpassLists(MUSTPASS_LISTS, ANY_GENERATOR, BUILD_CONFIG)