#*****************************************************************************
# Copyright 2017-2020 Intel Corporation
#
# 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.
#*****************************************************************************
"""Lit runner site configuration."""

import lit.llvm

config.llvm_tools_dir = "@MLIR_LLVM_TOOLS_DIR@"
config.mlir_obj_root = "@MLIR_LLVM_BUILD_DIR@"
config.mlir_tools_dir = "@MLIR_LLVM_TOOLS_DIR@"
config.suffixes = ['.mlir']

config.ngraph_mlir_tools_dir = "@NGRAPH_BUILD_BIN@"
config.ngraph_mlir_test_src_dir = "@NGRAPH_LIT_TEST_SRC_DIR@"
config.ngraph_mlir_test_build_dir = "@NGRAPH_LIT_TEST_BUILD_DIR@"

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")