llvm-for-llvmta/utils/lit/tests/Inputs/config-map-discovery/driver.py

17 lines
443 B
Python
Raw Permalink Normal View History

2022-04-25 10:02:23 +02:00
import lit.util
import os
import sys
main_config = sys.argv[1]
main_config = os.path.realpath(main_config)
main_config = os.path.normcase(main_config)
config_map = {main_config : sys.argv[2]}
builtin_parameters = {'config_map' : config_map}
if __name__=='__main__':
from lit.main import main
main_config_dir = os.path.dirname(main_config)
sys.argv = [sys.argv[0]] + sys.argv[3:] + [main_config_dir]
main(builtin_parameters)