forked from NCAS-CMS/cfdm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_release
More file actions
executable file
·39 lines (27 loc) · 744 Bytes
/
test_release
File metadata and controls
executable file
·39 lines (27 loc) · 744 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/bash
# --------------------------------------------------------------------
# Install and run tests in ~/tmp
#
# Usage:
#
# $ ./test_release 1.8.9.0
# --------------------------------------------------------------------
set -x
if [[ ! $1 ]] ; then
echo "Must set version as \$1 (e.g. 1.7)"
exit 1
fi
vn=$1
# Get the major.minor Python version
py=$(python -V | cut -d " " -f 2 | cut -d "." -f 1,2)
mkdir -p ~/tmp
cp dist/cfdm-$vn.tar.gz ~/tmp
cd ~/tmp
rm -fr ~/tmp/test ~/tmp/bin ~/tmp/lib ~/tmp/cfdm-$vn
tar zxvf cfdm-$vn.tar.gz
cd cfdm-$vn
export PYTHONPATH=~/tmp/lib/python/cfdm-$vn-py$py.egg:$PYTHONPATH
python setup.py install --home=~/tmp
cd ~/tmp/lib/python/cfdm-$vn-py$py.egg/cfdm/test
python run_tests.py
set -x