#!/usr/bin/env batsload test_helperbats_bin="${BATS_TEST_DIRNAME}/../bin/python-build"static_version="$(grep VERSION "$bats_bin" | head -n1 | cut -d'"' -f 2)"@test "python-build static version" {stub git 'echo "ASPLODE" >&2; exit 1'run python-build --versionassert_success "python-build ${static_version}"unstub git}@test "python-build git version" {stub git \'remote -v : echo origin https://github.com/pyenv/pyenv.git' \"describe --tags HEAD : echo v1984-12-gSHA"run python-build --versionassert_success "python-build 1984-12-gSHA"unstub git}@test "git describe fails" {stub git \'remote -v : echo origin https://github.com/pyenv/pyenv.git' \"describe --tags HEAD : echo ASPLODE >&2; exit 1"run python-build --versionassert_success "python-build ${static_version}"unstub git}@test "git remote doesn't match" {stub git \'remote -v : echo origin https://github.com/Homebrew/homebrew.git'run python-build --versionassert_success "python-build ${static_version}"}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。