diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2015-03-19 02:01:45 +0100 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2015-04-01 22:35:56 +0200 |
commit | 008078862ed0731f2d1e74fb4182b67a29b31589 (patch) | |
tree | 0da27d88397a3f3bdbe3e5f1db6a28a1b0f00dfd /node.gyp | |
parent | 382bd9d2e0173569e551be4fc2702696190f5c1a (diff) | |
download | android-node-v8-008078862ed0731f2d1e74fb4182b67a29b31589.tar.gz android-node-v8-008078862ed0731f2d1e74fb4182b67a29b31589.tar.bz2 android-node-v8-008078862ed0731f2d1e74fb4182b67a29b31589.zip |
deps: check in gtest, add util unit test
Check in a gypified gtest and add a simple unit test to show that the
basic infrastructure is in place.
PR-URL: https://github.com/iojs/io.js/pull/1199
Refs: https://github.com/iojs/io.js/issues/1193
Reviewed-By: Fedor Indutny <fedor@indutny.com>
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
Diffstat (limited to 'node.gyp')
-rw-r--r-- | node.gyp | 25 |
1 files changed, 25 insertions, 0 deletions
@@ -611,6 +611,31 @@ ], } ], ] + }, + { + 'target_name': 'cctest', + 'type': 'executable', + 'dependencies': [ 'deps/gtest/gtest.gyp:gtest' ], + 'conditions': [ + [ 'node_shared_v8=="false"', { + 'dependencies': [ 'deps/v8/tools/gyp/v8.gyp:v8' ], + }], + ], + 'include_dirs': [ + 'src', + ], + 'defines': [ + # gtest's ASSERT macros conflict with our own. + 'GTEST_DONT_DEFINE_ASSERT_EQ=1', + 'GTEST_DONT_DEFINE_ASSERT_GE=1', + 'GTEST_DONT_DEFINE_ASSERT_GT=1', + 'GTEST_DONT_DEFINE_ASSERT_LE=1', + 'GTEST_DONT_DEFINE_ASSERT_LT=1', + 'GTEST_DONT_DEFINE_ASSERT_NE=1', + ], + 'sources': [ + 'test/cctest/util.cc', + ], } ] # end targets } |