Skip to content

Commit

Permalink
Added more tests to smoketest.py.
Browse files Browse the repository at this point in the history
  • Loading branch information
Maggie-M committed Dec 20, 2012
1 parent db8ba2f commit 9c79f7b
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 28 deletions.
49 changes: 22 additions & 27 deletions utils/smoketest.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,61 +10,56 @@

cmds = [
(
"conda info",
"info-1"
"conda info"
),
(
"conda list ^m.*lib$",
"list-1"
"conda list ^m.*lib$"
),
(
"conda search ^m.*lib$",
"search-1"
"conda search ^m.*lib$"
),
(
"conda depends numpy",
"depends-1"
"conda depends numpy"
),
(
"conda info -e",
"envs-1"
"conda info -e"
),
(
"conda create --yes -p %s sqlite" % myenv,
"create-1"
"conda create --yes -p %s sqlite" % myenv
),
(
"conda install --yes -p %s pandas=0.8.1" % myenv,
"install-1"
"conda install --yes -p %s pandas=0.8.1" % myenv
),
(
"conda update --yes -p %s pandas" % myenv,
"update-1"
"conda install --yes -p %s numba=0.1.1" % myenv
),
(
"conda env --yes -ap %s numba-0.3.1-np17py27_0" % myenv,
"activate-1"
"conda install --yes -p %s cython=0.16" % myenv
),
(
"conda env --yes -dp %s sqlite-3.7.13-0" % myenv,
"deactivate-1"
"conda install --yes -p %s cython=0.17.3" % myenv
),
(
"conda local --yes -r zeromq-2.2.0-0",
"remove-1"
"conda update --yes -p %s pandas" % myenv
),
(
"conda local --yes -d zeromq-2.2.0-0",
"download-1"
"conda env --yes -ap %s numba-0.3.1-np17py27_0" % myenv
),
(
"conda env --yes -dp %s sqlite-3.7.13-0" % myenv
),
(
"conda local --yes -r zeromq-2.2.0-0"
),
(
"conda local --yes -d zeromq-2.2.0-0"
)
]

def tester(commands):
cmds = commands
fails = []
for i in cmds:
cmd = i[0]
out = i[1]
for cmd in cmds:
print "-"*120
print "%s" % cmd
print "-"*120
Expand Down
2 changes: 1 addition & 1 deletion versioneer.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
LONG_VERSION_PY = '''
IN_LONG_VERSION_PY = True
# This file helps to compute a version number in source trees obtained from
# git-archive tarball (such as those provided by githubs download-from-tag
# git-archive tarball (such as those provided by github's download-from-tag
# feature). Distribution tarballs (build by setup.py sdist) and build
# directories (produced by setup.py build) will contain a much shorter file
# that just contains the computed version number.
Expand Down

0 comments on commit 9c79f7b

Please sign in to comment.