Commit fb5ac16c authored by Marco Bartolini's avatar Marco Bartolini
Browse files

moved getTemplateForTest into getTemplateForTests and all necessary dependencies

parent 35cac57a
Loading
Loading
Loading
Loading
+0 −32
Original line number Diff line number Diff line
#!/bin/bash
if [[ $(id -u) -ne 0 ]] ; then echo "Script must be run as root" ; exit 1 ; fi
GMOCK=gmock-1.7.0
GMOCK_BASE_URL=https://googlemock.googlecode.com/files
BUILDDIR=build
PWD=`pwd`
TMPDIR=`mktemp -d`
cd $TMPDIR
wget $GMOCK_BASE_URL/$GMOCK.zip
unzip $GMOCK.zip
cd $GMOCK
export GMOCK_HOME=`pwd`
mkdir $BUILDDIR
cd $BUILDDIR
cmake ..
make
chmod a+x *.a
cp *.a /usr/local/lib
cd $GMOCK_HOME/include
cp -r gmock /usr/local/include
cd $GMOCK_HOME/gtest
mkdir $BUILDDIR
cd $BUILDDIR
cmake ..
make
chmod a+x *.a
cp *.a /usr/local/lib
cd $GMOCK_HOME/gtest/include
cp -r gtest /usr/local/include
cd $PWD
rm -rf $TMPDIR
+3 −5
Original line number Diff line number Diff line
@@ -12,10 +12,8 @@
#
# Python stuff (public and local)
# ----------------------------
PY_SCRIPTS         = getTemplateForTest
PY_MODULES         = gettemplatefortest

SCRIPTS_L          = install_gmock
PY_SCRIPTS         = getTemplateForTests
PY_MODULES         = gettemplatefortests

#
#>>>>> END OF standard rules
@@ -37,7 +35,7 @@ all: do_all
	@echo " . . . 'all' done" 

clean_templates:
	rm -rf $(INTROOT)/templates/test
	rm -rf $(INTROOT)/templates/tests
	@echo " . . . templates removed from introot"

clean : clean_all clean_templates
+2 −2
Original line number Diff line number Diff line
@@ -18,11 +18,11 @@
#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
#
import sys
import gettemplatefortest
import gettemplatefortests

args = sys.argv[1:]
try:
    gettemplatefortest.command_line_util(args)
    gettemplatefortests.command_line_util(args)
except Exception, e:
    print e.message
    sys.exit(1)
Loading