From 5436020ec35e93e9368ff565aa3964b9dec7bafc Mon Sep 17 00:00:00 2001 From: "Yamashita, Yuu" Date: Mon, 15 Feb 2016 00:40:07 +0000 Subject: [PATCH] Add a test for custom value for `--enable-unicode` --- plugins/python-build/test/pyenv_ext.bats | 25 ++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/plugins/python-build/test/pyenv_ext.bats b/plugins/python-build/test/pyenv_ext.bats index e538237c..4ccc7705 100644 --- a/plugins/python-build/test/pyenv_ext.bats +++ b/plugins/python-build/test/pyenv_ext.bats @@ -222,7 +222,7 @@ OUT [[ "$(resolve_link "${INSTALL_ROOT}/bin/python-config")" == "python3.4-config" ]] } -@test "--enable-framework" { +@test "enable framework" { mkdir -p "${INSTALL_ROOT}/Python.framework/Versions/Current/bin" touch "${INSTALL_ROOT}/Python.framework/Versions/Current/bin/python3" chmod +x "${INSTALL_ROOT}/Python.framework/Versions/Current/bin/python3" @@ -248,7 +248,7 @@ EOS [ -L "${INSTALL_ROOT}/Python.framework/Versions/Current/bin/python-config" ] } -@test "--enable-universalsdk" { +@test "enable universalsdk" { stub uname '-s : echo Darwin' PYTHON_CONFIGURE_OPTS="--enable-universalsdk" TMPDIR="$TMP" run_inline_definition <> build.log" \ + " : echo \"$MAKE \$@\" >> build.log && cat build.log >> '$INSTALL_ROOT/build.log'" + + PYTHON_CONFIGURE_OPTS="--enable-unicode=ucs2" TMPDIR="$TMP" install_tmp_fixture definitions/vanilla-python < /dev/null + assert_success + + assert_build_log <