lit.site.cfg.py.in 1.27 KB
Newer Older
1
#*****************************************************************************
2
# Copyright 2017-2020 Intel Corporation
3 4 5 6 7 8 9 10 11 12 13 14 15
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#*****************************************************************************
16
"""Lit runner site configuration."""
17 18 19

import lit.llvm

20 21 22
config.llvm_tools_dir = "@MLIR_LLVM_TOOLS_DIR@"
config.mlir_obj_root = "@MLIR_LLVM_BUILD_DIR@"
config.mlir_tools_dir = "@MLIR_LLVM_TOOLS_DIR@"
23 24
config.suffixes = ['.mlir']

25
config.ngraph_mlir_tools_dir = "@NGRAPH_BUILD_BIN@"
26 27
config.ngraph_mlir_test_src_dir = "@NGRAPH_LIT_TEST_SRC_DIR@"
config.ngraph_mlir_test_build_dir = "@NGRAPH_LIT_TEST_BUILD_DIR@"
28 29 30 31 32

lit.llvm.initialize(lit_config, config)

# Let the main config do the real work.
lit_config.load_config(config, "@NGRAPH_LIT_TEST_SRC_DIR@/lit.cfg.py")