diff --git a/plugins/python-build/test/pyenv_ext.bats b/plugins/python-build/test/pyenv_ext.bats index b79ac37a..ae9f72ab 100644 --- a/plugins/python-build/test/pyenv_ext.bats +++ b/plugins/python-build/test/pyenv_ext.bats @@ -92,6 +92,19 @@ resolve_link() { $(type -p greadlink readlink | head -1) "$1" } +run_inline_definition_with_name() { + local definition_name="build-definition" + case "$1" in + "--name="* ) + local definition_name="${1#--name=}" + shift 1 + ;; + esac + local definition="${TMP}/${definition_name}" + cat > "$definition" + run python-build "$definition" "${1:-$INSTALL_ROOT}" +} + @test "apply built-in python patch before building" { cached_tarball "Python-3.6.2" @@ -326,3 +339,43 @@ OUT assert_success assert_output "10.4" } + +@test "use the default EZ_SETUP_URL by default" { + run_inline_definition <