Update to Google Test 1.8
With Google Test 1.8 gtest and gmock are distributed together
so gmock is also being enabled here.
Change-Id: I76f8bee07aedd17d888ebffb21660bb4ef8b2fb6
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/build-unit-test-docker.sh b/build-unit-test-docker.sh
index fb89638..014c885 100755
--- a/build-unit-test-docker.sh
+++ b/build-unit-test-docker.sh
@@ -74,11 +74,15 @@
RUN tar -xJf autoconf-archive-2016.09.16.tar.xz
RUN cd autoconf-archive-2016.09.16 && ./configure --prefix=/usr && make && make install
-RUN wget https://github.com/google/googletest/archive/release-1.7.0.tar.gz
-RUN tar -xzf release-1.7.0.tar.gz
-RUN cd googletest-release-1.7.0 && cmake -DBUILD_SHARED_LIBS=ON . && make && \
-cp -a include/gtest /usr/include && \
-cp -a libgtest_main.so libgtest.so /usr/lib/
+RUN wget https://github.com/google/googletest/archive/release-1.8.0.tar.gz
+RUN tar -xzf release-1.8.0.tar.gz
+RUN cd googletest-release-1.8.0 && cmake -DBUILD_SHARED_LIBS=ON . && make && \
+cp -a googletest/include/gtest /usr/include && \
+cp -a googlemock/include/gmock /usr/include && \
+cp -a googlemock/gtest/libgtest.so /usr/lib/ && \
+cp -a googlemock/gtest/libgtest_main.so /usr/lib/ && \
+cp -a googlemock/libgmock.so /usr/lib/ && \
+cp -a googlemock/libgmock_main.so /usr/lib/
RUN grep -q ${GROUPS} /etc/group || groupadd -g ${GROUPS} ${USER}
RUN grep -q ${UID} /etc/passwd || useradd -d ${HOME} -m -u ${UID} -g ${GROUPS} ${USER}