forked from conda/conda
-
Notifications
You must be signed in to change notification settings - Fork 0
/
smoketest.sh
executable file
·53 lines (45 loc) · 1.05 KB
/
smoketest.sh
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
#!/bin/bash -u
TESTLOG="conda-testlog.txt"
echo "rm -rf ~/anaconda/envs/myenv"
rm -rf ~/anaconda/envs/myenv
if [[ -f $TESTLOG ]]; then
rm $TESTLOG
fi
function log()
{
echo "$*" >> $TESTLOG
}
function run()
{
echo "-------------------------------------------------------------"
echo "$*"
echo "-------------------------------------------------------------"
echo ""
eval "$*"
if [[ $? != 0 ]]; then
echo ""
echo "FAILED"
log "$*"
else
echo ""
echo "PASSED"
fi
echo ""
}
declare -a COND=(
"conda info"
"conda list ^m.*lib$"
"conda search ^m.*lib$"
"conda depends numpy"
"conda info -e"
"conda create --yes -n myenv sqlite"
"conda install --yes -n myenv pandas=0.8.1"
"conda update --yes -n myenv pandas"
"conda env --yes -ap ~/anaconda/envs/myenv numba-0.3.1-np17py27_0"
"conda env --yes -dn myenv sqlite-3.7.13-0"
"conda local --yes -r zeromq-2.2.0-0"
"conda local --yes -d zeromq-2.2.0-0"
)
for i in "${COND[@]}"; do
run $i
done