File tree Expand file tree Collapse file tree 1 file changed +11
-15
lines changed
Expand file tree Collapse file tree 1 file changed +11
-15
lines changed Original file line number Diff line number Diff line change 55#
66# Usage:
77#
8- # $ ./test_release 1.8.9.0
8+ # $ ./test_release 3.3.5
99# --------------------------------------------------------------------
1010
1111set -x
1212
1313if [[ ! $1 ]] ; then
14- echo " Must set version as \$ 1 (e.g. 1.7 )"
14+ echo " Must set version as \$ 1 (e.g. 1.9.0.1 )"
1515 exit 1
1616fi
1717
1818vn=$1
1919
20- # Get the major.minor Python version
21- py= $( python -V | cut -d " " -f 2 | cut -d " . " -f 1,2 )
20+ dir= ~ /tmp/test_cfunits
21+ rm -fr $dir
2222
23- mkdir -p ~ /tmp
23+ pip install dist/cfunits- $vn .tar.gz -t $dir --no-deps
2424
25- cp dist/cfunits-$vn .tar.gz ~ /tmp
26- cd ~ /tmp
27- rm -fr ~ /tmp/test ~ /tmp/bin ~ /tmp/lib ~ /tmp/cfunits-$vn
25+ export PYTHONPATH=$dir :$PYTHONPATH
26+ export PATH=$dir /bin:$PATH
2827
29- tar zxvf cfunits-$vn .tar.gz
30- cd cfunits-$vn
28+ cd $dir /cfunits/test
3129
32- export PYTHONPATH=~ /tmp/lib/python/cfunits-$vn -py$py .egg:$PYTHONPATH
33-
34- python setup.py install --home=~ /tmp
35-
36- cd ~ /tmp/lib/python/cfunits-$vn -py$py .egg/cfunits/test
3730python run_tests.py
31+ test_result_status=$?
3832
3933set -x
34+
35+ exit $test_result_status
You can’t perform that action at this time.
0 commit comments