Script for getting GMock in place
authorAki Koskinen <maemo@akikoskinen.info>
Sun, 14 Mar 2010 18:15:31 +0000 (20:15 +0200)
committerAki Koskinen <maemo@akikoskinen.info>
Sun, 14 Mar 2010 18:15:31 +0000 (20:15 +0200)
.gitignore
prepareGmock.sh [new file with mode: 0755]

index 8cb892a..46b8496 100644 (file)
@@ -2,3 +2,4 @@
 *.la
 *.lo
 *~
+gmock/*
diff --git a/prepareGmock.sh b/prepareGmock.sh
new file mode 100755 (executable)
index 0000000..484c8dd
--- /dev/null
@@ -0,0 +1,31 @@
+#!/bin/sh
+
+# A script to fetch GMock from source repository, compile it and run the tests.
+
+PRE_WD=`pwd`
+
+# Go to correct directory
+cd `dirname $0`
+
+# Get gmock from svn
+echo "Fetching GMock source from http://googlemock.googlecode.com"
+svn checkout http://googlemock.googlecode.com/svn/trunk/ gmock
+
+cd gmock
+echo "Running autoreconf..."
+AUTOMAKE=automake-1.9 ACLOCAL=aclocal-1.9 autoreconf -f -v -i
+
+mkdir build
+cd build
+
+echo "Running configure..."
+../configure
+
+echo "Running make..."
+make -j3
+echo "Running make check..."
+make check
+
+echo "All done"
+# Go back to original directory
+cd $PRE_WD