From a1d39c1e2525c92d947b92ec9d0890ab7681fc5b Mon Sep 17 00:00:00 2001 From: "Yamashita, Yuu" Date: Thu, 29 Mar 2018 00:58:06 +0000 Subject: [PATCH] Add test for custom `GET_PIP_URL` per versions --- plugins/python-build/test/pyenv_ext.bats | 53 ++++++++++++++++++++++++ 1 file changed, 53 insertions(+) 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 <