Chinaunix首页 | 论坛 | 博客
  • 博客访问: 4470536
  • 博文数量: 356
  • 博客积分: 10458
  • 博客等级: 上将
  • 技术积分: 4734
  • 用 户 组: 普通用户
  • 注册时间: 2008-03-24 14:59
文章分类

全部博文(356)

文章存档

2020年(17)

2019年(9)

2018年(26)

2017年(5)

2016年(11)

2015年(20)

2014年(2)

2013年(17)

2012年(15)

2011年(4)

2010年(7)

2009年(14)

2008年(209)

分类: LINUX

2015-01-10 10:56:27

编译lib
tar -xvf gmock-1.5.0.tar.bz2 
cd gmock-1.5.0/
./configure
make
sudo make install


编译自带的测试例子
cd make
make
./gmock_test
Running main() from gmock_main.cc
[==========] Running 13 tests from 3 test cases.
[----------] Global test environment set-up.
[----------] 6 tests from InitGoogleMockTest
[ RUN      ] InitGoogleMockTest.ParsesInvalidCommandLine
[       OK ] InitGoogleMockTest.ParsesInvalidCommandLine (0 ms)
[ RUN      ] InitGoogleMockTest.ParsesEmptyCommandLine
[       OK ] InitGoogleMockTest.ParsesEmptyCommandLine (0 ms)
[ RUN      ] InitGoogleMockTest.ParsesSingleFlag
[       OK ] InitGoogleMockTest.ParsesSingleFlag (0 ms)
[ RUN      ] InitGoogleMockTest.ParsesUnrecognizedFlag
[       OK ] InitGoogleMockTest.ParsesUnrecognizedFlag (0 ms)
[ RUN      ] InitGoogleMockTest.ParsesGoogleMockFlagAndUnrecognizedFlag
[       OK ] InitGoogleMockTest.ParsesGoogleMockFlagAndUnrecognizedFlag (0 ms)
[ RUN      ] InitGoogleMockTest.CallsInitGoogleTest
[       OK ] InitGoogleMockTest.CallsInitGoogleTest (1 ms)
[----------] 6 tests from InitGoogleMockTest (1 ms total)
.......................




阅读(4712) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~