run_test.bat 815 B

123456789101112131415161718192021222324252627
  1. :: clear conda stuff from parent process
  2. SET CONDA_SHLVL=
  3. SET _CE_CONDA=
  4. SET _CE_M=
  5. SET _CONDA_EXE=
  6. :: load shell interface
  7. :: CALL is necessary because conda is a bat script,
  8. :: running bat files within other bat files requires CALL or else
  9. :: the outer script (our test script) exits when the inner completes
  10. CALL %PREFIX%\condabin\conda_hook.bat
  11. :: display conda details
  12. CALL conda info --all
  13. :: create, activate, and deactivate a conda environment
  14. CALL conda create --yes --prefix ".\built-conda-test-env" "m2-patch"
  15. IF NOT %ERRORLEVEL% == 0 EXIT /B 1
  16. CALL conda activate ".\built-conda-test-env"
  17. ECHO "CONDA_PREFIX=%CONDA_PREFIX%"
  18. IF NOT "%CONDA_PREFIX%" == "%CD%\built-conda-test-env" EXIT /B 1
  19. %CONDA_PREFIX%\Library\usr\bin\patch.exe --version
  20. IF NOT %ERRORLEVEL% == 0 EXIT /B 1
  21. CALL conda deactivate