Skip to content

Commit 29342b4

Browse files
committed
added gtest library
1 parent 55c505f commit 29342b4

File tree

371 files changed

+155564
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

371 files changed

+155564
-0
lines changed

lib/googletest-1.8.0/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Ignore CI build directory
2+
build/

lib/googletest-1.8.0/.travis.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
# Build matrix / environment variable are explained on:
2+
# http://about.travis-ci.org/docs/user/build-configuration/
3+
# This file can be validated on:
4+
# http://lint.travis-ci.org/
5+
6+
install:
7+
# /usr/bin/gcc is 4.6 always, but gcc-X.Y is available.
8+
- if [ "$CXX" = "g++" ]; then export CXX="g++-4.9" CC="gcc-4.9"; fi
9+
# /usr/bin/clang is 3.4, lets override with modern one.
10+
- if [ "$CXX" = "clang++" ] && [ "$TRAVIS_OS_NAME" = "linux" ]; then export CXX="clang++-3.7" CC="clang-3.7"; fi
11+
- echo ${PATH}
12+
- echo ${CXX}
13+
- ${CXX} --version
14+
- ${CXX} -v
15+
addons:
16+
apt:
17+
# List of whitelisted in travis packages for ubuntu-precise can be found here:
18+
# https://github.com/travis-ci/apt-package-whitelist/blob/master/ubuntu-precise
19+
# List of whitelisted in travis apt-sources:
20+
# https://github.com/travis-ci/apt-source-whitelist/blob/master/ubuntu.json
21+
sources:
22+
- ubuntu-toolchain-r-test
23+
- llvm-toolchain-precise-3.7
24+
packages:
25+
- gcc-4.9
26+
- g++-4.9
27+
- clang-3.7
28+
- valgrind
29+
os:
30+
- linux
31+
- osx
32+
language: cpp
33+
compiler:
34+
- gcc
35+
- clang
36+
script: ./travis.sh
37+
env:
38+
matrix:
39+
- GTEST_TARGET=googletest SHARED_LIB=OFF STATIC_LIB=ON CMAKE_PKG=OFF BUILD_TYPE=debug VERBOSE_MAKE=true VERBOSE
40+
- GTEST_TARGET=googlemock SHARED_LIB=OFF STATIC_LIB=ON CMAKE_PKG=OFF BUILD_TYPE=debug VERBOSE_MAKE=true VERBOSE
41+
- GTEST_TARGET=googlemock SHARED_LIB=OFF STATIC_LIB=ON CMAKE_PKG=OFF BUILD_TYPE=debug CXX_FLAGS=-std=c++11 VERBOSE_MAKE=true VERBOSE
42+
# - GTEST_TARGET=googletest SHARED_LIB=ON STATIC_LIB=ON CMAKE_PKG=ON BUILD_TYPE=release VERBOSE_MAKE=false
43+
# - GTEST_TARGET=googlemock SHARED_LIB=ON STATIC_LIB=ON CMAKE_PKG=ON BUILD_TYPE=release VERBOSE_MAKE=false
44+
notifications:
45+
email: false
46+
sudo: false
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# CMAKE generated file: DO NOT EDIT!
2+
# Generated by "Unix Makefiles" Generator, CMake Version 3.5
3+
4+
# Relative path conversion top directories.
5+
set(CMAKE_RELATIVE_PATH_TOP_SOURCE "/home/gocarlos/git/interview_rapyuta")
6+
set(CMAKE_RELATIVE_PATH_TOP_BINARY "/home/gocarlos/git/interview_rapyuta")
7+
8+
# Force unix paths in dependencies.
9+
set(CMAKE_FORCE_UNIX_PATHS 1)
10+
11+
12+
# The C and CXX include file regular expressions for this directory.
13+
set(CMAKE_C_INCLUDE_REGEX_SCAN "^.*$")
14+
set(CMAKE_C_INCLUDE_REGEX_COMPLAIN "^$")
15+
set(CMAKE_CXX_INCLUDE_REGEX_SCAN ${CMAKE_C_INCLUDE_REGEX_SCAN})
16+
set(CMAKE_CXX_INCLUDE_REGEX_COMPLAIN ${CMAKE_C_INCLUDE_REGEX_COMPLAIN})
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
11
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
cmake_minimum_required(VERSION 2.6.2)
2+
3+
project( googletest-distribution )
4+
5+
enable_testing()
6+
7+
option(BUILD_GTEST "Builds the googletest subproject" OFF)
8+
9+
#Note that googlemock target already builds googletest
10+
option(BUILD_GMOCK "Builds the googlemock subproject" ON)
11+
12+
if(BUILD_GMOCK)
13+
add_subdirectory( googlemock )
14+
elseif(BUILD_GTEST)
15+
add_subdirectory( googletest )
16+
endif()
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# CMake generated Testfile for
2+
# Source directory: /home/gocarlos/git/interview_rapyuta/lib/googletest-1.8.0
3+
# Build directory: /home/gocarlos/git/interview_rapyuta/lib/googletest-1.8.0
4+
#
5+
# This file includes the relevant testing commands required for
6+
# testing this directory and lists subdirectories to be tested as well.
7+
subdirs(googlemock)

lib/googletest-1.8.0/Makefile

Lines changed: 194 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,194 @@
1+
# CMAKE generated file: DO NOT EDIT!
2+
# Generated by "Unix Makefiles" Generator, CMake Version 3.5
3+
4+
# Default target executed when no arguments are given to make.
5+
default_target: all
6+
7+
.PHONY : default_target
8+
9+
# Allow only one "make -f Makefile2" at a time, but pass parallelism.
10+
.NOTPARALLEL:
11+
12+
13+
#=============================================================================
14+
# Special targets provided by cmake.
15+
16+
# Disable implicit rules so canonical targets will work.
17+
.SUFFIXES:
18+
19+
20+
# Remove some rules from gmake that .SUFFIXES does not remove.
21+
SUFFIXES =
22+
23+
.SUFFIXES: .hpux_make_needs_suffix_list
24+
25+
26+
# Suppress display of executed commands.
27+
$(VERBOSE).SILENT:
28+
29+
30+
# A target that is always out of date.
31+
cmake_force:
32+
33+
.PHONY : cmake_force
34+
35+
#=============================================================================
36+
# Set environment variables for the build.
37+
38+
# The shell in which to execute make rules.
39+
SHELL = /bin/sh
40+
41+
# The CMake executable.
42+
CMAKE_COMMAND = /usr/bin/cmake
43+
44+
# The command to remove a file.
45+
RM = /usr/bin/cmake -E remove -f
46+
47+
# Escaping for special characters.
48+
EQUALS = =
49+
50+
# The top-level source directory on which CMake was run.
51+
CMAKE_SOURCE_DIR = /home/gocarlos/git/interview_rapyuta
52+
53+
# The top-level build directory on which CMake was run.
54+
CMAKE_BINARY_DIR = /home/gocarlos/git/interview_rapyuta
55+
56+
#=============================================================================
57+
# Targets provided globally by CMake.
58+
59+
# Special rule for the target list_install_components
60+
list_install_components:
61+
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Available install components are: \"Unspecified\""
62+
.PHONY : list_install_components
63+
64+
# Special rule for the target list_install_components
65+
list_install_components/fast: list_install_components
66+
67+
.PHONY : list_install_components/fast
68+
69+
# Special rule for the target install
70+
install: preinstall
71+
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
72+
/usr/bin/cmake -P cmake_install.cmake
73+
.PHONY : install
74+
75+
# Special rule for the target install
76+
install/fast: preinstall/fast
77+
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..."
78+
/usr/bin/cmake -P cmake_install.cmake
79+
.PHONY : install/fast
80+
81+
# Special rule for the target rebuild_cache
82+
rebuild_cache:
83+
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
84+
/usr/bin/cmake -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
85+
.PHONY : rebuild_cache
86+
87+
# Special rule for the target rebuild_cache
88+
rebuild_cache/fast: rebuild_cache
89+
90+
.PHONY : rebuild_cache/fast
91+
92+
# Special rule for the target install/strip
93+
install/strip: preinstall
94+
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..."
95+
/usr/bin/cmake -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake
96+
.PHONY : install/strip
97+
98+
# Special rule for the target install/strip
99+
install/strip/fast: install/strip
100+
101+
.PHONY : install/strip/fast
102+
103+
# Special rule for the target install/local
104+
install/local: preinstall
105+
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing only the local directory..."
106+
/usr/bin/cmake -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake
107+
.PHONY : install/local
108+
109+
# Special rule for the target install/local
110+
install/local/fast: install/local
111+
112+
.PHONY : install/local/fast
113+
114+
# Special rule for the target test
115+
test:
116+
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running tests..."
117+
/usr/bin/ctest --force-new-ctest-process $(ARGS)
118+
.PHONY : test
119+
120+
# Special rule for the target test
121+
test/fast: test
122+
123+
.PHONY : test/fast
124+
125+
# Special rule for the target edit_cache
126+
edit_cache:
127+
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "No interactive CMake dialog available..."
128+
/usr/bin/cmake -E echo No\ interactive\ CMake\ dialog\ available.
129+
.PHONY : edit_cache
130+
131+
# Special rule for the target edit_cache
132+
edit_cache/fast: edit_cache
133+
134+
.PHONY : edit_cache/fast
135+
136+
# The main all target
137+
all: cmake_check_build_system
138+
cd /home/gocarlos/git/interview_rapyuta && $(CMAKE_COMMAND) -E cmake_progress_start /home/gocarlos/git/interview_rapyuta/CMakeFiles /home/gocarlos/git/interview_rapyuta/lib/googletest-1.8.0/CMakeFiles/progress.marks
139+
cd /home/gocarlos/git/interview_rapyuta && $(MAKE) -f CMakeFiles/Makefile2 lib/googletest-1.8.0/all
140+
$(CMAKE_COMMAND) -E cmake_progress_start /home/gocarlos/git/interview_rapyuta/CMakeFiles 0
141+
.PHONY : all
142+
143+
# The main clean target
144+
clean:
145+
cd /home/gocarlos/git/interview_rapyuta && $(MAKE) -f CMakeFiles/Makefile2 lib/googletest-1.8.0/clean
146+
.PHONY : clean
147+
148+
# The main clean target
149+
clean/fast: clean
150+
151+
.PHONY : clean/fast
152+
153+
# Prepare targets for installation.
154+
preinstall: all
155+
cd /home/gocarlos/git/interview_rapyuta && $(MAKE) -f CMakeFiles/Makefile2 lib/googletest-1.8.0/preinstall
156+
.PHONY : preinstall
157+
158+
# Prepare targets for installation.
159+
preinstall/fast:
160+
cd /home/gocarlos/git/interview_rapyuta && $(MAKE) -f CMakeFiles/Makefile2 lib/googletest-1.8.0/preinstall
161+
.PHONY : preinstall/fast
162+
163+
# clear depends
164+
depend:
165+
cd /home/gocarlos/git/interview_rapyuta && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
166+
.PHONY : depend
167+
168+
# Help Target
169+
help:
170+
@echo "The following are some of the valid targets for this Makefile:"
171+
@echo "... all (the default if no target is provided)"
172+
@echo "... clean"
173+
@echo "... depend"
174+
@echo "... list_install_components"
175+
@echo "... install"
176+
@echo "... rebuild_cache"
177+
@echo "... install/strip"
178+
@echo "... install/local"
179+
@echo "... test"
180+
@echo "... edit_cache"
181+
.PHONY : help
182+
183+
184+
185+
#=============================================================================
186+
# Special targets to cleanup operation of make.
187+
188+
# Special rule to run CMake to check the build system integrity.
189+
# No rule that depends on this can have commands that come from listfiles
190+
# because they might be regenerated.
191+
cmake_check_build_system:
192+
cd /home/gocarlos/git/interview_rapyuta && $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0
193+
.PHONY : cmake_check_build_system
194+

0 commit comments

Comments
 (0)