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 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.
28 #-------------------------------------------------------------------------
33 sys.path.append(os.path.join(os.path.dirname(__file__), "..", "..", "scripts"))
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
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:
49 The above copyright notice(s) and this permission notice shall be
50 included in all copies or substantial portions of the Materials.
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.
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")
68 VULKAN_1_0_0_PKG = Package(module = VULKAN_MODULE, configurations = [
70 Configuration(name = "default",
71 filters = [include("master.txt"),
72 exclude("test-issues.txt"),
73 exclude("excluded-tests.txt")]),
77 Mustpass(project = PROJECT, version = "1.0.0", packages = [VULKAN_1_0_0_PKG])
80 if __name__ == "__main__":
81 genMustpassLists(MUSTPASS_LISTS, ANY_GENERATOR, BUILD_CONFIG)