[memprof] Upgrade a unit test to MemProf Version 3 (#117063)
[llvm-project.git] / cross-project-tests / debuginfo-tests / dexter / dexter.py
blob8473cff3c7135b8525fc8f708eefff128e7110f9
1 #!/usr/bin/env python
2 # DExTer : Debugging Experience Tester
3 # ~~~~~~ ~ ~~ ~ ~~
5 # Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
6 # See https://llvm.org/LICENSE.txt for license information.
7 # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8 """DExTer entry point. This is the only non-module file."""
10 import sys
12 if sys.version_info < (3, 6, 0):
13 sys.stderr.write("You need python 3.6 or later to run DExTer\n")
14 # Equivalent to sys.exit(ReturnCode._ERROR).
15 sys.exit(1)
17 from dex.tools import main
19 if __name__ == "__main__":
20 return_code = main()
21 sys.exit(return_code.value)