summaryrefslogtreecommitdiff
path: root/tests/test_activate.sh
diff options
context:
space:
mode:
authorMarc Abramowitz <marc@marc-abramowitz.com>2012-05-04 12:46:03 -0700
committerMarc Abramowitz <marc@marc-abramowitz.com>2012-05-04 12:47:07 -0700
commit782a566f4de3ccda3a0db6d90c7fbadf56ccde82 (patch)
tree90423b94873809beb2423d78a5379065f4e16a10 /tests/test_activate.sh
parent25b3f13023e3143fe912d1ece7f3daac43c078a7 (diff)
downloadvirtualenv-782a566f4de3ccda3a0db6d90c7fbadf56ccde82.tar.gz
More verbose output to show what's being tested.
Diffstat (limited to 'tests/test_activate.sh')
-rwxr-xr-xtests/test_activate.sh20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/test_activate.sh b/tests/test_activate.sh
index f6531a0..d25072d 100755
--- a/tests/test_activate.sh
+++ b/tests/test_activate.sh
@@ -20,26 +20,44 @@ echo "$0: Activating ${TESTENV}..." 1>&2
source ${TESTENV}/bin/activate
echo "$0: Activated ${TESTENV}." 1>&2
+echo "$0: Checking value of \$VIRTUAL_ENV..." 1>&2
+
if [ "$VIRTUAL_ENV" != "${TESTENV}" ]; then
echo "$0: Expected \$VIRTUAL_ENV to be set to \"${TESTENV}\"; actual value: \"${VIRTUAL_ENV}\"!" 1>&2
exit 2
fi
+echo "$0: \$VIRTUAL_ENV = \"${VIRTUAL_ENV}\" -- OK." 1>&2
+
+echo "$0: Checking output of \$(which python)..." 1>&2
+
if [ "$(which python)" != "${TESTENV}/bin/python" ]; then
echo "$0: Expected \$(which python) to return \"${TESTENV}/bin/python\"; actual value: \"$(which python)\"!" 1>&2
exit 3
fi
+echo "$0: Output of \$(which python) is OK." 1>&2
+
+echo "$0: Checking output of \$(which pip)..." 1>&2
+
if [ "$(which pip)" != "${TESTENV}/bin/pip" ]; then
echo "$0: Expected \$(which pip) to return \"${TESTENV}/bin/pip\"; actual value: \"$(which pip)\"!" 1>&2
exit 4
fi
+echo "$0: Output of \$(which pip) is OK." 1>&2
+
+echo "$0: Checking output of \$(which easy_install)..." 1>&2
+
if [ "$(which easy_install)" != "${TESTENV}/bin/easy_install" ]; then
echo "$0: Expected \$(which easy_install) to return \"${TESTENV}/bin/easy_install\"; actual value: \"$(which easy_install)\"!" 1>&2
exit 5
fi
+echo "$0: Output of \$(which easy_install) is OK." 1>&2
+
+echo "$0: Executing a simple Python program..." 1>&2
+
TESTENV=${TESTENV} python <<__END__
import os, sys
@@ -56,6 +74,8 @@ if [ $? -ne 0 ]; then
exit 6
fi
+echo "$0: Execution of a simple Python program -- OK." 1>&2
+
echo "$0: Testing pydoc..." 1>&2
if ! PAGER=cat pydoc pydoc_test | grep 'This is pydoc_test.py' > /dev/null; then