cpptest 安装和测试
来源:互联网 发布:华为网络产品线待遇 编辑:程序博客网 时间:2024/05/21 09:41
cpptest的安装和测试
可以从 Sourceforge 免费下载 CppTest
(见 参考资料),采用的许可协议是 GNU Lesser General Public License (GPL)。按一般的开放源码配置-构建过程构建源代码。这会生成一个名为 libcpptest 的静态库。客户机代码必须包含下载的源代码中的头文件 cppTest.h,还要包含静态库 libcpptest.a 的链接
本次使用的版本为 :cpptest-1.1.1.tar.gz
所在的环境:Linux x86_64 x86_64 x86_64 GNU/Linux
由于是开发者, 需要管理员授权root权限才能安装。
安装好的头文件 放在 /usr/local/include, 库文件 放在/usr/local/lib/.
写个简单的测试用列: 案例学习参考 http://www.ibm.com/developerworks/cn/aix/library/au-ctools3_ccptest/
#include "cpptest.h"
#include <iostream>
using namespace std;
class myTest : public Test::Suite
{
void function1_to_test_some_code( ) {}
void function2_to_test_some_code( ) {}
public:
myTest( )
{
TEST_ADD (myTest::function1_to_test_some_code);
TEST_ADD (myTest::function2_to_test_some_code);
}
};
int main(int argc, char **argv)
{
myTest tests;
Test::TextOutput output(Test::TextOutput::Verbose);
return tests.run(output);
cout << "hello...." <<endl;
return 0;
}
- cpptest 安装和测试
- cpptest 的安装和破解
- CppTest安装与使用
- cppTest-1.1:数据类型及其长度测试
- cppTest-6.2:复制构造函数测试
- 白盒测试的工具CPPtest使用
- AXIS安装和测试
- 安装和测试
- mongodb安装和测试
- CUnit安装和测试
- HTK安装和测试
- Kinect安装和测试
- Kafka 安装和测试
- uwsgi安装和测试
- kafka安装和测试
- Kafka 安装和测试
- Kafka 安装和测试
- kafka 安装和测试
- ERP系统
- C++虚函数和多态学习笔记
- ubuntu查看printk消息
- spring+ibatis 批处理
- 在进程崩溃的时候自动抓取一个DUMP文件
- cpptest 安装和测试
- error LNK2001: unresolved external symbol _main解决办法:(_WinMain@16,__beginthreadex 等错误)
- flex 成功案例
- 1
- Introduction to the DirectX 9 High-Level Shader Language
- TOMCAT与Resin之比较
- Putty自动登陆远程Linux主机
- WAVE PCM soundfile format
- MyEclipse下设置合适的Content Assist快捷键(诀窍)