• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2# Copyright 2021 Huawei Technologies Co., Ltd
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15# ============================================================================
16CURRPATH=$(dirname "${BASH_SOURCE-$0}")
17PROJECT_PATH=$(cd ${CURRPATH}/../../.. || exit; pwd)
18
19if [ $BUILD_PATH ];then
20    echo "BUILD_PATH = $BUILD_PATH"
21else
22    BUILD_PATH=${PROJECT_PATH}/build
23    echo "BUILD_PATH = $BUILD_PATH"
24fi
25
26MINDSPORE_PYTHON=${PROJECT_PATH}/mindspore/python
27
28export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${BUILD_PATH}/third_party/gtest/lib
29export PYTHONPATH=$PYTHONPATH:${MINDSPORE_PYTHON}:${PROJECT_PATH}/tests/ut/cpp/python_input:${PROJECT_PATH}/tests/ut/python
30echo "export PYTHONPATH=$PYTHONPATH"
31export GC_COLLECT_IN_CELL=1