ctest_entrypoint.sh 660 B

123456789101112131415161718192021
  1. #!/bin/bash
  2. #
  3. # Copyright (c) Contributors to the Open 3D Engine Project.
  4. # For complete copyright and license terms please see the LICENSE at the root of this distribution.
  5. #
  6. # SPDX-License-Identifier: Apache-2.0 OR MIT
  7. #
  8. #
  9. # Continuous Integration CLI entrypoint script to start CTest, triggering post-build tests
  10. #
  11. CURRENT_SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE:-0}" )" >/dev/null 2>&1 && pwd )"
  12. DEV_DIR=$( dirname "$( dirname "$CURRENT_SCRIPT_DIR" )" )
  13. PYTHON=$DEV_DIR/python/python.sh
  14. CTEST_SCRIPT=$CURRENT_SCRIPT_DIR/ctest_driver.py
  15. # pass all args to python-based CTest script
  16. echo "Invoking: $PYTHON $CTEST_SCRIPT $*"
  17. $PYTHON $CTEST_SCRIPT $*