MCPcopy Create free account
hub / github.com/LunarG/VulkanTools / main

Function main

scripts/github_ci_linux.py:124–148  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

122#
123# Module Entrypoint
124def main():
125 parser = argparse.ArgumentParser()
126 parser.add_argument(
127 '-c', '--config', dest='configuration',
128 metavar='CONFIG', action='store',
129 choices=CONFIGURATIONS, default=DEFAULT_CONFIGURATION,
130 help='Build target configuration. Can be one of: {0}'.format(
131 ', '.join(CONFIGURATIONS)))
132 parser.add_argument(
133 '--tests', dest='tests',
134 choices=TESTS_MODES, default=DEFAULT_TESTS_MODE)
135 args = parser.parse_args()
136
137 global ret_code
138 try:
139 BuildVT(args)
140 except subprocess.CalledProcessError as proc_error:
141 print('Command "%s" failed with return code %s' % (' '.join(proc_error.cmd), proc_error.returncode))
142 sys.exit(proc_error.returncode)
143 except Exception as unknown_error:
144 print('An unkown error occured: %s', unknown_error)
145 sys.exit(1)
146
147 RunVTTests(args)
148 sys.exit(ret_code)
149
150if __name__ == '__main__':
151 main()

Callers 1

github_ci_linux.pyFile · 0.70

Calls 3

BuildVTFunction · 0.85
RunVTTestsFunction · 0.85
formatMethod · 0.80

Tested by

no test coverage detected