-
Notifications
You must be signed in to change notification settings - Fork 0
/
check_with_vars.sh
executable file
·58 lines (51 loc) · 1.22 KB
/
check_with_vars.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
54
55
56
57
58
#!/bin/bash
## either define the variables here (and get a diff to SVN)
##
## export POSTGRES_USER="someuser"
## export POSTGRES_PASSWD="..."
## export POSTGRES_HOST="somehost"
## export POSTGRES_DATABASE="testing124"
## export POSTGRES_PORT="5432"
##
## or write them to a local file that can get sourced here
##
if [ -f ~/.RPostgreSQL_Test_Vars ]
then
. ~/.RPostgreSQL_Test_Vars
fi
echo " "
echo "-------------- write version info ----------------------"
if [ -x /usr/bin/sw_vers ]
then
sw_vers
elif [ -x /usr/bin/lsb_release ]
then
lsb_release -a
fi
echo ""
svn_version=$(svnversion -n)
echo "RPostgreSQL svn version: $svn_version"
echo ""
psql --version | head -n 1
echo ""
Rscript -e 'sessionInfo(); capabilities()' | sed -n -e '1,2p'
echo ""
Rscript -e 'packageDescription("RPostgreSQL", fields = c("Package", "Version", "Packaged", "Built"))' | sed -n -e '1,4p'
#R CMD check RPostgreSQL
for f in exttests/*.R
do
echo ""
echo "==== Running $f"
R -d "valgrind --tool=memcheck --leak-check=full" --slave < $f
done
for f in RPostgreSQL/tests/*.R
do
echo ""
echo "==== Running $f"
if $skip_valgrind
then R --slave < $f
else R -d "valgrind --tool=memcheck --leak-check=full" --slave < $f
fi
done
echo "Done"
exit 0