diff --git a/plugins/python-build/test/pyenv_ext.bats b/plugins/python-build/test/pyenv_ext.bats index e565d705..fe862d67 100644 --- a/plugins/python-build/test/pyenv_ext.bats +++ b/plugins/python-build/test/pyenv_ext.bats @@ -87,6 +87,10 @@ install_tmp_fixture() { run python-build $args "$TMP_FIXTURES/$name" "$destination" } +resolve_link() { + $(type -p greadlink readlink | head -1) "$1" +} + @test "apply built-in python patch before building" { cached_tarball "Python-3.2.1" @@ -195,3 +199,63 @@ OUT python -m ensurepip --altinstall OUT } + +@test "python3-config" { + mkdir -p "${INSTALL_ROOT}/bin" + touch "${INSTALL_ROOT}/bin/python3" + chmod +x "${INSTALL_ROOT}/bin/python3" + touch "${INSTALL_ROOT}/bin/python3.4" + chmod +x "${INSTALL_ROOT}/bin/python3.4" + touch "${INSTALL_ROOT}/bin/python3-config" + chmod +x "${INSTALL_ROOT}/bin/python3-config" + touch "${INSTALL_ROOT}/bin/python3.4-config" + chmod +x "${INSTALL_ROOT}/bin/python3.4-config" + + TMPDIR="$TMP" run_inline_definition <