forked from NCAS-CMS/cf-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_release
More file actions
executable file
·31 lines (20 loc) · 537 Bytes
/
test_release
File metadata and controls
executable file
·31 lines (20 loc) · 537 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
#!/bin/bash
# --------------------------------------------------------------------
# Install and run tests in ~/tmp
# --------------------------------------------------------------------
set -x
if [[ ! $1 ]] ; then
echo "Must set version as \$1 (e.g. 3.10.0)"
exit 1
fi
vn=$1
dir=~/tmp/test_cf-python
rm -fr $dir
pip install dist/cf-python-$vn.tar.gz -t $dir --no-deps
export PYTHONPATH=$dir:$PYTHONPATH
export PATH=$dir/bin:$PATH
cd $dir/cf/test
python run_tests.py
test_result_status=$?
set -x
exit $test_result_status