-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refs #27: Import googletest as submodule and merge with our codebase.
* Since googletest v1.3, it provides a "fusing" script that combines all gtest source files into a single .cc file. * To update to latest version of gtest, first run git submodule update and then run cd 3rdparty && 3rdparty/update-googletest.sh.
- Loading branch information
Showing
9 changed files
with
31,655 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
[submodule "3rdparty/click-parser"] | ||
path = 3rdparty/click-parser | ||
url = https://github.com/leeopop/click-parser.git | ||
[submodule "3rdparty/googletest"] | ||
path = 3rdparty/googletest | ||
url = https://github.com/google/googletest |
Submodule googletest
added at
82b11b
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
echo 'Fusing and updating gtest sources/headers for NBA...' | ||
echo 'NOTE: You need to run "git pull" in 3rdparty/googletest manually first.' | ||
TMPDIR=/tmp/nba-gtest-update | ||
NBADIR=.. | ||
mkdir -p $TMPDIR | ||
python2 googletest/googletest/scripts/fuse_gtest_files.py $TMPDIR | ||
cp googletest/googletest/src/gtest_main.cc $TMPDIR/gtest | ||
# Replace relative include path to absolute path | ||
sed -i 's/^#include "gtest\/gtest.h"/#include <gtest\/gtest.h>/' $TMPDIR/gtest/*.cc | ||
cp $TMPDIR/gtest/gtest-all.cc $NBADIR/src/lib/gtest | ||
cp $TMPDIR/gtest/gtest_main.cc $NBADIR/src/lib/gtest | ||
cp $TMPDIR/gtest/gtest.h $NBADIR/include/gtest | ||
rm -rf $TMPDIR |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.