run_test.sh 567 B

123456789101112131415161718192021222324
  1. #!/usr/bin/env bash
  2. # clear conda stuff from parent process
  3. unset CONDA_SHLVL
  4. unset _CE_CONDA
  5. unset _CE_M
  6. unset CONDA_EXE
  7. # load shell interface
  8. eval "$(python -m conda shell.bash hook)"
  9. # display conda details
  10. conda info --all
  11. # create, activate, and deactivate a conda environment
  12. conda create --yes --prefix "./built-conda-test-env" "patch" || exit 1
  13. conda activate "./built-conda-test-env"
  14. echo "CONDA_PREFIX=${CONDA_PREFIX}"
  15. [[ "${CONDA_PREFIX}" == "${PWD}/built-conda-test-env" ]] || exit 1
  16. ${CONDA_PREFIX}/bin/patch --version || exit 1
  17. conda deactivate