Extracted more common stuff to ut_common.pri
[ptas] / prepareGmock.sh
1 #!/bin/sh
2
3 # A script to fetch GMock from source repository, compile it and run the tests.
4
5 PRE_WD=`pwd`
6
7 # Go to correct directory
8 cd `dirname $0`
9
10 # Get gmock from svn
11 echo "Fetching GMock source from http://googlemock.googlecode.com"
12 svn checkout http://googlemock.googlecode.com/svn/trunk/ gmock
13
14 cd gmock
15 echo "Running autoreconf..."
16 AUTOMAKE=automake-1.9 ACLOCAL=aclocal-1.9 autoreconf -f -v -i
17
18 mkdir build
19 cd build
20
21 echo "Running configure..."
22 ../configure
23
24 echo "Running make..."
25 make -j3
26 echo "Running make check..."
27 make check
28
29 echo "All done"
30 # Go back to original directory
31 cd $PRE_WD