MCPcopy Create free account
hub / github.com/ARM-software/astc-encoder / main

Function main

Test/astc_test_functional.py:2263–2284  ·  view source on GitHub ↗

The main function. Return: The process return code.

()

Source from the content-addressed store, hash-verified

2261
2262
2263def main() -> int:
2264 '''
2265 The main function.
2266
2267 Return:
2268 The process return code.
2269 '''
2270 parser = argparse.ArgumentParser()
2271
2272 coders = ['none', 'neon', 'sve_128', 'sve_256', 'sse2', 'sse4.1', 'avx2']
2273 parser.add_argument('--encoder', dest='encoder', default='avx2',
2274 choices=coders, help='test encoder variant')
2275 args = parser.parse_known_args()
2276
2277 # Set the encoder for this test run
2278 CLITestBase.test_encoder = args[0].encoder
2279
2280 # Set the sys.argv to remaining args (leave sys.argv[0] alone)
2281 sys.argv[1:] = args[1]
2282
2283 results = unittest.main(exit=False)
2284 return 0 if results.result.wasSuccessful() else 1
2285
2286
2287if __name__ == '__main__':

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected