You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

12345678910111213141516171819202122232425262728293031
  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. # ============================================================================
  16. CURRPATH=$(dirname "${BASH_SOURCE-$0}")
  17. PROJECT_PATH=$(cd ${CURRPATH}/../../.. || exit; pwd)
  18. if [ $BUILD_PATH ];then
  19. echo "BUILD_PATH = $BUILD_PATH"
  20. else
  21. BUILD_PATH=${PROJECT_PATH}/build
  22. echo "BUILD_PATH = $BUILD_PATH"
  23. fi
  24. MINDSPORE_PYTHON=${PROJECT_PATH}/mindspore/python
  25. export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:${BUILD_PATH}/third_party/gtest/lib
  26. export PYTHONPATH=$PYTHONPATH:${MINDSPORE_PYTHON}:${PROJECT_PATH}/tests/ut/cpp/python_input:${PROJECT_PATH}/tests/ut/python
  27. echo "export PYTHONPATH=$PYTHONPATH"
  28. export GC_COLLECT_IN_CELL=1