CppUTest——【由JUnit移植过来的】C++单元测试框架——的下载安装

这篇具有很好参考价值的文章主要介绍了CppUTest——【由JUnit移植过来的】C++单元测试框架——的下载安装。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

简介

CppUnit是【由JUnit移植过来的】C++测试框架。

下载地址

单元测试框架下载

从我使用的CppUtest框架中的文档/readme/ReadmePart1_VisualStudio.rtf文件中看到了官网的地址cpputest.org,文中原话是• Go to cpputest.org, and get the latest released cpputest. (3.7.1 was used at the time of this writing)

在打开的网页中,根据自己使用的编译工具及操作系统选择对应的CppUTest框架,如下图红框所示。
CppUTest——【由JUnit移植过来的】C++单元测试框架——的下载安装

单元测试被测工程下载

也可以从上面官方连接中下载练手的被测项目的代码示例,比如Using CppUTest with Visual Studio,找到后点击对应连接下载即可如下图红框所示。
CppUTest——【由JUnit移植过来的】C++单元测试框架——的下载安装

或者在此网页一开头也给出了不同场景下的CppUnit框架的下载地址,如下图所示。
CppUTest——【由JUnit移植过来的】C++单元测试框架——的下载安装
弹出框架代码的界面,如下图所示。
CppUTest——【由JUnit移植过来的】C++单元测试框架——的下载安装

安装

安装Cygwin

Cygwin是许多自由软件的集合,最初由Cygnus Solutions开发,用于各种版本的Microsoft Windows上,运行UNIX类系统。Cygwin的主要目的是通过重新编译,将POSIX系统(例如Linux、BSD,以及其他Unix系统)上的软件移植到Windows上。Cygwin移植工作在Windows NT、Windows 2000、Windows XP以及Windows Server 2003上比较好,在Windows 95和Windows 98上,相对差劲一些。目前Cygwin由Red Hat等负责维护。

下载地址

官网下载地址?,选择符合自己操作系统的安装包,如下图所示。
CppUTest——【由JUnit移植过来的】C++单元测试框架——的下载安装

安装步骤

详见此博客。
1.双击下载好的安装包
CppUTest——【由JUnit移植过来的】C++单元测试框架——的下载安装
2、选择安装方式
CppUTest——【由JUnit移植过来的】C++单元测试框架——的下载安装
3、选择安装路径
CppUTest——【由JUnit移植过来的】C++单元测试框架——的下载安装
4、在下载的同时,Cygwin组件也保存到了本地,以便以后能够再次安装,这一步选择安装过程中从网上下载的Cygwin组件包的保存位置
CppUTest——【由JUnit移植过来的】C++单元测试框架——的下载安装
5、选择连接的方式
CppUTest——【由JUnit移植过来的】C++单元测试框架——的下载安装

  • ①Use System Proxy Settings 使用系统的代理设置。
  • ②Direct Connection 一般多数用户都是这种直接连接的网络,所以都是直接使用默认设置即可。
  • ③Use HTTP/FTP Proxy 使用HTTP或FTP类型的代理。如果有需要,自己选择此项后,设置对应的代理地址和端口,即可。

6、添加、选择下载地址

  • 阿里云镜像http://mirrors.aliyun.com/cygwin/
  • 网易开源镜像http://mirrors.163.com/cygwin/
    在下图红框中输入要使用的下载地址,点击右侧“添加”按钮,即可在上方“可用的下载站点”中添加,然后选择该站点,点击“下一步”按钮。
    CppUTest——【由JUnit移植过来的】C++单元测试框架——的下载安装
    CppUTest——【由JUnit移植过来的】C++单元测试框架——的下载安装

7、在短暂的下载、加载界面后,来到如下界面。点击图中红框中的加号按钮。此处,对于安装Cygwin来说,就是安装各种各样的模块而已。最核心的,记住一定要安装Devel这个部分的模块,其中包含了各种开发所用到的工具或模块。展开ALL—>Devel—>【建议Devel全选,而非仅从中选择binutilsgcc-coregcc-g++gdbmakemingwin64-i686-gcc-coremingwin64-i686-gcc-g++】进行安装,因为在安装完成后使用cmake --version指令,提示“‘cmake’不是内部或外部命令,也不是可运行的程序或批处理文件”,目前怀疑是Cygwin选择组件时未选择全导致的。

找到以下选项,点击后边的skip,使其变为版本号即可。(注:最好不要勾选测试,也不要选择最新版本,容易与编辑软件版本冲突)
CppUTest——【由JUnit移植过来的】C++单元测试框架——的下载安装
点击后边的skip,使其变为版本号即可。(注:最好不要勾选测试,也不要选择最新版本,容易与编辑软件版本冲突)
CppUTest——【由JUnit移植过来的】C++单元测试框架——的下载安装
等待下载安装,如下图所示。
CppUTest——【由JUnit移植过来的】C++单元测试框架——的下载安装
8、安装完成后,需要将Cygwin的bin目录添加到系统环境path中。但是在博客中提到的“测试是否环境变量添加成功——在命令行中输入:cmake --version”后,却提示的“‘cmake’不是内部或外部命令,也不是可运行的程序或批处理文件”,目前怀疑是Cygwin选择组件时未选择全导致的。如果按照前面第7步中全选了Devel,来到此处依然提示“‘cmake’不是内部或外部命令,则需要手动安装CMake

手动安装CMake

点击官网地址?,来到下图所示界面。
CppUTest——【由JUnit移植过来的】C++单元测试框架——的下载安装
下滑页面来到Older Releases,如下图所示。选择kitware的网址,点击。因为其他网址被拦截了打不开= =
CppUTest——【由JUnit移植过来的】C++单元测试框架——的下载安装
点击LatestRelease
CppUTest——【由JUnit移植过来的】C++单元测试框架——的下载安装
在下图所示的界面中,找到符合自己操作系统的安装包,比如下图红框所示。.msi是Windows安装包。
CppUTest——【由JUnit移植过来的】C++单元测试框架——的下载安装
下载后双击安装即可,在安装的一个步骤中,自认此处可以选择第二项,for all users
CppUTest——【由JUnit移植过来的】C++单元测试框架——的下载安装

9、安装完成后验证Cygwin是否安装成功、验证组件是否安装完全

  • 验证Cygwin是否安装成功
    在Windows系统的命令行中输入cygcheck -c cygwin,如下图所示。
    CppUTest——【由JUnit移植过来的】C++单元测试框架——的下载安装
  • 验证组件是否安装完全
    – 双击cygwin图标,运行cygwin
    – 在运行cygwin后弹出的命令行内依次输入如下命令,查看各组件是否安装完全,如下图所示。
cygcheck -c cygwin

gcc --version

g++ --version

gdb --version

make --version

CppUTest——【由JUnit移植过来的】C++单元测试框架——的下载安装
注: 如果有组件忘记下载,可以再次点击cygwin setup-x86_64.exe安装包更新组件,不用卸载重装

编译单元测试框架CppUTest

Windows命令行,切换到单元测试框架CppUTest根目录下,输入命令./configure先完成源码安装的前置步骤——生成makefile。执行configure文件,此文件有两个功能:①让用户选定编译特性②检查编译环境。只有此步完成,后面步骤在执行make时才能正常运行。

在上一步完成后,切换到 单元测试框架CppUTest根目录下的cpputest_build目录,输入命令cmake ..使用 cmake 生成 Makefile,如下两图所示(一张图没截全;另外因为本步暂未试通,所以划入备注部分= =)。
CppUTest——【由JUnit移植过来的】C++单元测试框架——的下载安装
CppUTest——【由JUnit移植过来的】C++单元测试框架——的下载安装

在完成使用cmake生成Makefile的步骤后,(自己第一次尝试时,未能执行cmkae,所以第二次尝试时,在./configure后——未执行cmake——直接来到本步)输入make命令进行编译,运行信息如下图所示:

Administrator@poac21-PC /tmp/cpputest-3.8
$ make
make  all-am
make[1]: Entering directory '/tmp/cpputest-3.8'
g++ -DHAVE_CONFIG_H -I.   -include ./include/CppUTest/MemoryLeakDetectorMallocMacros.h -I ./include     -include ./include/CppUTest/MemoryLeakDetectorNewMacros.h  -Wno-c++11-long-long -Wno-long-long -Wall -Wextra -Wshadow -Wswitch-default -Wswitch-enum -Wconversion -pedantic -Wsign-conversion -Woverloaded-virtual -Wno-disabled-macro-expansion -Wno-padded -Wno-reserved-id-macro -Wno-keyword-macro -Wno-global-constructors -Wno-exit-time-destructors -Wno-weak-vtables -Wno-old-style-cast   -g -O2 -MT src/CppUTest/lib_libCppUTest_a-CommandLineArguments.o -MD -MP -MF src/CppUTest/.deps/lib_libCppUTest_a-CommandLineArguments.Tpo -c -o src/CppUTest/lib_libCppUTest_a-CommandLineArguments.o `test -f 'src/CppUTest/CommandLineArguments.cpp' || echo './'`src/CppUTest/CommandLineArguments.cpp
mv -f src/CppUTest/.deps/lib_libCppUTest_a-CommandLineArguments.Tpo src/CppUTest/.deps/lib_libCppUTest_a-CommandLineArguments.Po
g++ -DHAVE_CONFIG_H -I.   -include ./include/CppUTest/MemoryLeakDetectorMallocMacros.h -I ./include     -include ./include/CppUTest/MemoryLeakDetectorNewMacros.h  -Wno-c++11-long-long -Wno-long-long -Wall -Wextra -Wshadow -Wswitch-default -Wswitch-enum -Wconversion -pedantic -Wsign-conversion -Woverloaded-virtual -Wno-disabled-macro-expansion -Wno-padded -Wno-reserved-id-macro -Wno-keyword-macro -Wno-global-constructors -Wno-exit-time-destructors -Wno-weak-vtables -Wno-old-style-cast   -g -O2 -MT src/CppUTest/lib_libCppUTest_a-CommandLineTestRunner.o -MD -MP -MF src/CppUTest/.deps/lib_libCppUTest_a-CommandLineTestRunner.Tpo -c -o src/CppUTest/lib_libCppUTest_a-CommandLineTestRunner.o `test -f 'src/CppUTest/CommandLineTestRunner.cpp' || echo './'`src/CppUTest/CommandLineTestRunner.cpp
mv -f src/CppUTest/.deps/lib_libCppUTest_a-CommandLineTestRunner.Tpo src/CppUTest/.deps/lib_libCppUTest_a-CommandLineTestRunner.Po
g++ -DHAVE_CONFIG_H -I.   -include ./include/CppUTest/MemoryLeakDetectorMallocMacros.h -I ./include     -include ./include/CppUTest/MemoryLeakDetectorNewMacros.h  -Wno-c++11-long-long -Wno-long-long -Wall -Wextra -Wshadow -Wswitch-default -Wswitch-enum -Wconversion -pedantic -Wsign-conversion -Woverloaded-virtual -Wno-disabled-macro-expansion -Wno-padded -Wno-reserved-id-macro -Wno-keyword-macro -Wno-global-constructors -Wno-exit-time-destructors -Wno-weak-vtables -Wno-old-style-cast   -g -O2 -MT src/CppUTest/lib_libCppUTest_a-JUnitTestOutput.o -MD -MP -MF src/CppUTest/.deps/lib_libCppUTest_a-JUnitTestOutput.Tpo -c -o src/CppUTest/lib_libCppUTest_a-JUnitTestOutput.o `test -f 'src/CppUTest/JUnitTestOutput.cpp' || echo './'`src/CppUTest/JUnitTestOutput.cpp
mv -f src/CppUTest/.deps/lib_libCppUTest_a-JUnitTestOutput.Tpo src/CppUTest/.deps/lib_libCppUTest_a-JUnitTestOutput.Po
g++ -DHAVE_CONFIG_H -I.   -include ./include/CppUTest/MemoryLeakDetectorMallocMacros.h -I ./include     -include ./include/CppUTest/MemoryLeakDetectorNewMacros.h  -Wno-c++11-long-long -Wno-long-long -Wall -Wextra -Wshadow -Wswitch-default -Wswitch-enum -Wconversion -pedantic -Wsign-conversion -Woverloaded-virtual -Wno-disabled-macro-expansion -Wno-padded -Wno-reserved-id-macro -Wno-keyword-macro -Wno-global-constructors -Wno-exit-time-destructors -Wno-weak-vtables -Wno-old-style-cast   -g -O2 -MT src/CppUTest/lib_libCppUTest_a-MemoryLeakDetector.o -MD -MP -MF src/CppUTest/.deps/lib_libCppUTest_a-MemoryLeakDetector.Tpo -c -o src/CppUTest/lib_libCppUTest_a-MemoryLeakDetector.o `test -f 'src/CppUTest/MemoryLeakDetector.cpp' || echo './'`src/CppUTest/MemoryLeakDetector.cpp
mv -f src/CppUTest/.deps/lib_libCppUTest_a-MemoryLeakDetector.Tpo src/CppUTest/.deps/lib_libCppUTest_a-MemoryLeakDetector.Po
g++ -DHAVE_CONFIG_H -I.   -include ./include/CppUTest/MemoryLeakDetectorMallocMacros.h -I ./include     -include ./include/CppUTest/MemoryLeakDetectorNewMacros.h  -Wno-c++11-long-long -Wno-long-long -Wall -Wextra -Wshadow -Wswitch-default -Wswitch-enum -Wconversion -pedantic -Wsign-conversion -Woverloaded-virtual -Wno-disabled-macro-expansion -Wno-padded -Wno-reserved-id-macro -Wno-keyword-macro -Wno-global-constructors -Wno-exit-time-destructors -Wno-weak-vtables -Wno-old-style-cast   -g -O2 -MT src/CppUTest/lib_libCppUTest_a-MemoryLeakWarningPlugin.o -MD -MP -MF src/CppUTest/.deps/lib_libCppUTest_a-MemoryLeakWarningPlugin.Tpo -c -o src/CppUTest/lib_libCppUTest_a-MemoryLeakWarningPlugin.o `test -f 'src/CppUTest/MemoryLeakWarningPlugin.cpp' || echo './'`src/CppUTest/MemoryLeakWarningPlugin.cpp
mv -f src/CppUTest/.deps/lib_libCppUTest_a-MemoryLeakWarningPlugin.Tpo src/CppUTest/.deps/lib_libCppUTest_a-MemoryLeakWarningPlugin.Po
g++ -DHAVE_CONFIG_H -I.   -include ./include/CppUTest/MemoryLeakDetectorMallocMacros.h -I ./include     -include ./include/CppUTest/MemoryLeakDetectorNewMacros.h  -Wno-c++11-long-long -Wno-long-long -Wall -Wextra -Wshadow -Wswitch-default -Wswitch-enum -Wconversion -pedantic -Wsign-conversion -Woverloaded-virtual -Wno-disabled-macro-expansion -Wno-padded -Wno-reserved-id-macro -Wno-keyword-macro -Wno-global-constructors -Wno-exit-time-destructors -Wno-weak-vtables -Wno-old-style-cast   -g -O2 -MT src/CppUTest/lib_libCppUTest_a-SimpleString.o -MD -MP -MF src/CppUTest/.deps/lib_libCppUTest_a-SimpleString.Tpo -c -o src/CppUTest/lib_libCppUTest_a-SimpleString.o `test -f 'src/CppUTest/SimpleString.cpp' || echo './'`src/CppUTest/SimpleString.cpp
mv -f src/CppUTest/.deps/lib_libCppUTest_a-SimpleString.Tpo src/CppUTest/.deps/lib_libCppUTest_a-SimpleString.Po
g++ -DHAVE_CONFIG_H -I.   -include ./include/CppUTest/MemoryLeakDetectorMallocMacros.h -I ./include     -include ./include/CppUTest/MemoryLeakDetectorNewMacros.h  -Wno-c++11-long-long -Wno-long-long -Wall -Wextra -Wshadow -Wswitch-default -Wswitch-enum -Wconversion -pedantic -Wsign-conversion -Woverloaded-virtual -Wno-disabled-macro-expansion -Wno-padded -Wno-reserved-id-macro -Wno-keyword-macro -Wno-global-constructors -Wno-exit-time-destructors -Wno-weak-vtables -Wno-old-style-cast   -g -O2 -MT src/CppUTest/lib_libCppUTest_a-SimpleMutex.o -MD -MP -MF src/CppUTest/.deps/lib_libCppUTest_a-SimpleMutex.Tpo -c -o src/CppUTest/lib_libCppUTest_a-SimpleMutex.o `test -f 'src/CppUTest/SimpleMutex.cpp' || echo './'`src/CppUTest/SimpleMutex.cpp
mv -f src/CppUTest/.deps/lib_libCppUTest_a-SimpleMutex.Tpo src/CppUTest/.deps/lib_libCppUTest_a-SimpleMutex.Po
g++ -DHAVE_CONFIG_H -I.   -include ./include/CppUTest/MemoryLeakDetectorMallocMacros.h -I ./include     -include ./include/CppUTest/MemoryLeakDetectorNewMacros.h  -Wno-c++11-long-long -Wno-long-long -Wall -Wextra -Wshadow -Wswitch-default -Wswitch-enum -Wconversion -pedantic -Wsign-conversion -Woverloaded-virtual -Wno-disabled-macro-expansion -Wno-padded -Wno-reserved-id-macro -Wno-keyword-macro -Wno-global-constructors -Wno-exit-time-destructors -Wno-weak-vtables -Wno-old-style-cast   -g -O2 -MT src/CppUTest/lib_libCppUTest_a-TeamCityTestOutput.o -MD -MP -MF src/CppUTest/.deps/lib_libCppUTest_a-TeamCityTestOutput.Tpo -c -o src/CppUTest/lib_libCppUTest_a-TeamCityTestOutput.o `test -f 'src/CppUTest/TeamCityTestOutput.cpp' || echo './'`src/CppUTest/TeamCityTestOutput.cpp
mv -f src/CppUTest/.deps/lib_libCppUTest_a-TeamCityTestOutput.Tpo src/CppUTest/.deps/lib_libCppUTest_a-TeamCityTestOutput.Po
g++ -DHAVE_CONFIG_H -I.   -include ./include/CppUTest/MemoryLeakDetectorMallocMacros.h -I ./include     -include ./include/CppUTest/MemoryLeakDetectorNewMacros.h  -Wno-c++11-long-long -Wno-long-long -Wall -Wextra -Wshadow -Wswitch-default -Wswitch-enum -Wconversion -pedantic -Wsign-conversion -Woverloaded-virtual -Wno-disabled-macro-expansion -Wno-padded -Wno-reserved-id-macro -Wno-keyword-macro -Wno-global-constructors -Wno-exit-time-destructors -Wno-weak-vtables -Wno-old-style-cast   -g -O2 -MT src/CppUTest/lib_libCppUTest_a-TestFailure.o -MD -MP -MF src/CppUTest/.deps/lib_libCppUTest_a-TestFailure.Tpo -c -o src/CppUTest/lib_libCppUTest_a-TestFailure.o `test -f 'src/CppUTest/TestFailure.cpp' || echo './'`src/CppUTest/TestFailure.cpp
mv -f src/CppUTest/.deps/lib_libCppUTest_a-TestFailure.Tpo src/CppUTest/.deps/lib_libCppUTest_a-TestFailure.Po
g++ -DHAVE_CONFIG_H -I.   -include ./include/CppUTest/MemoryLeakDetectorMallocMacros.h -I ./include     -include ./include/CppUTest/MemoryLeakDetectorNewMacros.h  -Wno-c++11-long-long -Wno-long-long -Wall -Wextra -Wshadow -Wswitch-default -Wswitch-enum -Wconversion -pedantic -Wsign-conversion -Woverloaded-virtual -Wno-disabled-macro-expansion -Wno-padded -Wno-reserved-id-macro -Wno-keyword-macro -Wno-global-constructors -Wno-exit-time-destructors -Wno-weak-vtables -Wno-old-style-cast   -g -O2 -MT src/CppUTest/lib_libCppUTest_a-TestFilter.o -MD -MP -MF src/CppUTest/.deps/lib_libCppUTest_a-TestFilter.Tpo -c -o src/CppUTest/lib_libCppUTest_a-TestFilter.o `test -f 'src/CppUTest/TestFilter.cpp' || echo './'`src/CppUTest/TestFilter.cpp
mv -f src/CppUTest/.deps/lib_libCppUTest_a-TestFilter.Tpo src/CppUTest/.deps/lib_libCppUTest_a-TestFilter.Po
g++ -DHAVE_CONFIG_H -I.   -include ./include/CppUTest/MemoryLeakDetectorMallocMacros.h -I ./include     -include ./include/CppUTest/MemoryLeakDetectorNewMacros.h  -Wno-c++11-long-long -Wno-long-long -Wall -Wextra -Wshadow -Wswitch-default -Wswitch-enum -Wconversion -pedantic -Wsign-conversion -Woverloaded-virtual -Wno-disabled-macro-expansion -Wno-padded -Wno-reserved-id-macro -Wno-keyword-macro -Wno-global-constructors -Wno-exit-time-destructors -Wno-weak-vtables -Wno-old-style-cast   -g -O2 -MT src/CppUTest/lib_libCppUTest_a-TestHarness_c.o -MD -MP -MF src/CppUTest/.deps/lib_libCppUTest_a-TestHarness_c.Tpo -c -o src/CppUTest/lib_libCppUTest_a-TestHarness_c.o `test -f 'src/CppUTest/TestHarness_c.cpp' || echo './'`src/CppUTest/TestHarness_c.cpp
mv -f src/CppUTest/.deps/lib_libCppUTest_a-TestHarness_c.Tpo src/CppUTest/.deps/lib_libCppUTest_a-TestHarness_c.Po
g++ -DHAVE_CONFIG_H -I.   -include ./include/CppUTest/MemoryLeakDetectorMallocMacros.h -I ./include     -include ./include/CppUTest/MemoryLeakDetectorNewMacros.h  -Wno-c++11-long-long -Wno-long-long -Wall -Wextra -Wshadow -Wswitch-default -Wswitch-enum -Wconversion -pedantic -Wsign-conversion -Woverloaded-virtual -Wno-disabled-macro-expansion -Wno-padded -Wno-reserved-id-macro -Wno-keyword-macro -Wno-global-constructors -Wno-exit-time-destructors -Wno-weak-vtables -Wno-old-style-cast   -g -O2 -MT src/CppUTest/lib_libCppUTest_a-TestMemoryAllocator.o -MD -MP -MF src/CppUTest/.deps/lib_libCppUTest_a-TestMemoryAllocator.Tpo -c -o src/CppUTest/lib_libCppUTest_a-TestMemoryAllocator.o `test -f 'src/CppUTest/TestMemoryAllocator.cpp' || echo './'`src/CppUTest/TestMemoryAllocator.cpp
mv -f src/CppUTest/.deps/lib_libCppUTest_a-TestMemoryAllocator.Tpo src/CppUTest/.deps/lib_libCppUTest_a-TestMemoryAllocator.Po
g++ -DHAVE_CONFIG_H -I.   -include ./include/CppUTest/MemoryLeakDetectorMallocMacros.h -I ./include     -include ./include/CppUTest/MemoryLeakDetectorNewMacros.h  -Wno-c++11-long-long -Wno-long-long -Wall -Wextra -Wshadow -Wswitch-default -Wswitch-enum -Wconversion -pedantic -Wsign-conversion -Woverloaded-virtual -Wno-disabled-macro-expansion -Wno-padded -Wno-reserved-id-macro -Wno-keyword-macro -Wno-global-constructors -Wno-exit-time-destructors -Wno-weak-vtables -Wno-old-style-cast   -g -O2 -MT src/CppUTest/lib_libCppUTest_a-TestOutput.o -MD -MP -MF src/CppUTest/.deps/lib_libCppUTest_a-TestOutput.Tpo -c -o src/CppUTest/lib_libCppUTest_a-TestOutput.o `test -f 'src/CppUTest/TestOutput.cpp' || echo './'`src/CppUTest/TestOutput.cpp
mv -f src/CppUTest/.deps/lib_libCppUTest_a-TestOutput.Tpo src/CppUTest/.deps/lib_libCppUTest_a-TestOutput.Po
g++ -DHAVE_CONFIG_H -I.   -include ./include/CppUTest/MemoryLeakDetectorMallocMacros.h -I ./include     -include ./include/CppUTest/MemoryLeakDetectorNewMacros.h  -Wno-c++11-long-long -Wno-long-long -Wall -Wextra -Wshadow -Wswitch-default -Wswitch-enum -Wconversion -pedantic -Wsign-conversion -Woverloaded-virtual -Wno-disabled-macro-expansion -Wno-padded -Wno-reserved-id-macro -Wno-keyword-macro -Wno-global-constructors -Wno-exit-time-destructors -Wno-weak-vtables -Wno-old-style-cast   -g -O2 -MT src/CppUTest/lib_libCppUTest_a-TestPlugin.o -MD -MP -MF src/CppUTest/.deps/lib_libCppUTest_a-TestPlugin.Tpo -c -o src/CppUTest/lib_libCppUTest_a-TestPlugin.o `test -f 'src/CppUTest/TestPlugin.cpp' || echo './'`src/CppUTest/TestPlugin.cpp
mv -f src/CppUTest/.deps/lib_libCppUTest_a-TestPlugin.Tpo src/CppUTest/.deps/lib_libCppUTest_a-TestPlugin.Po
g++ -DHAVE_CONFIG_H -I.   -include ./include/CppUTest/MemoryLeakDetectorMallocMacros.h -I ./include     -include ./include/CppUTest/MemoryLeakDetectorNewMacros.h  -Wno-c++11-long-long -Wno-long-long -Wall -Wextra -Wshadow -Wswitch-default -Wswitch-enum -Wconversion -pedantic -Wsign-conversion -Woverloaded-virtual -Wno-disabled-macro-expansion -Wno-padded -Wno-reserved-id-macro -Wno-keyword-macro -Wno-global-constructors -Wno-exit-time-destructors -Wno-weak-vtables -Wno-old-style-cast   -g -O2 -MT src/CppUTest/lib_libCppUTest_a-TestRegistry.o -MD -MP -MF src/CppUTest/.deps/lib_libCppUTest_a-TestRegistry.Tpo -c -o src/CppUTest/lib_libCppUTest_a-TestRegistry.o `test -f 'src/CppUTest/TestRegistry.cpp' || echo './'`src/CppUTest/TestRegistry.cpp
mv -f src/CppUTest/.deps/lib_libCppUTest_a-TestRegistry.Tpo src/CppUTest/.deps/lib_libCppUTest_a-TestRegistry.Po
g++ -DHAVE_CONFIG_H -I.   -include ./include/CppUTest/MemoryLeakDetectorMallocMacros.h -I ./include     -include ./include/CppUTest/MemoryLeakDetectorNewMacros.h  -Wno-c++11-long-long -Wno-long-long -Wall -Wextra -Wshadow -Wswitch-default -Wswitch-enum -Wconversion -pedantic -Wsign-conversion -Woverloaded-virtual -Wno-disabled-macro-expansion -Wno-padded -Wno-reserved-id-macro -Wno-keyword-macro -Wno-global-constructors -Wno-exit-time-destructors -Wno-weak-vtables -Wno-old-style-cast   -g -O2 -MT src/CppUTest/lib_libCppUTest_a-TestResult.o -MD -MP -MF src/CppUTest/.deps/lib_libCppUTest_a-TestResult.Tpo -c -o src/CppUTest/lib_libCppUTest_a-TestResult.o `test -f 'src/CppUTest/TestResult.cpp' || echo './'`src/CppUTest/TestResult.cpp
mv -f src/CppUTest/.deps/lib_libCppUTest_a-TestResult.Tpo src/CppUTest/.deps/lib_libCppUTest_a-TestResult.Po
g++ -DHAVE_CONFIG_H -I.   -include ./include/CppUTest/MemoryLeakDetectorMallocMacros.h -I ./include     -include ./include/CppUTest/MemoryLeakDetectorNewMacros.h  -Wno-c++11-long-long -Wno-long-long -Wall -Wextra -Wshadow -Wswitch-default -Wswitch-enum -Wconversion -pedantic -Wsign-conversion -Woverloaded-virtual -Wno-disabled-macro-expansion -Wno-padded -Wno-reserved-id-macro -Wno-keyword-macro -Wno-global-constructors -Wno-exit-time-destructors -Wno-weak-vtables -Wno-old-style-cast   -g -O2 -MT src/CppUTest/lib_libCppUTest_a-TestTestingFixture.o -MD -MP -MF src/CppUTest/.deps/lib_libCppUTest_a-TestTestingFixture.Tpo -c -o src/CppUTest/lib_libCppUTest_a-TestTestingFixture.o `test -f 'src/CppUTest/TestTestingFixture.cpp' || echo './'`src/CppUTest/TestTestingFixture.cpp
mv -f src/CppUTest/.deps/lib_libCppUTest_a-TestTestingFixture.Tpo src/CppUTest/.deps/lib_libCppUTest_a-TestTestingFixture.Po
g++ -DHAVE_CONFIG_H -I.   -include ./include/CppUTest/MemoryLeakDetectorMallocMacros.h -I ./include     -include ./include/CppUTest/MemoryLeakDetectorNewMacros.h  -Wno-c++11-long-long -Wno-long-long -Wall -Wextra -Wshadow -Wswitch-default -Wswitch-enum -Wconversion -pedantic -Wsign-conversion -Woverloaded-virtual -Wno-disabled-macro-expansion -Wno-padded -Wno-reserved-id-macro -Wno-keyword-macro -Wno-global-constructors -Wno-exit-time-destructors -Wno-weak-vtables -Wno-old-style-cast   -g -O2 -MT src/CppUTest/lib_libCppUTest_a-Utest.o -MD -MP -MF src/CppUTest/.deps/lib_libCppUTest_a-Utest.Tpo -c -o src/CppUTest/lib_libCppUTest_a-Utest.o `test -f 'src/CppUTest/Utest.cpp' || echo './'`src/CppUTest/Utest.cpp
mv -f src/CppUTest/.deps/lib_libCppUTest_a-Utest.Tpo src/CppUTest/.deps/lib_libCppUTest_a-Utest.Po
g++ -DHAVE_CONFIG_H -I.   -include ./include/CppUTest/MemoryLeakDetectorMallocMacros.h -I ./include     -include ./include/CppUTest/MemoryLeakDetectorNewMacros.h  -Wno-c++11-long-long -Wno-long-long -Wall -Wextra -Wshadow -Wswitch-default -Wswitch-enum -Wconversion -pedantic -Wsign-conversion -Woverloaded-virtual -Wno-disabled-macro-expansion -Wno-padded -Wno-reserved-id-macro -Wno-keyword-macro -Wno-global-constructors -Wno-exit-time-destructors -Wno-weak-vtables -Wno-old-style-cast   -g -O2 -MT src/Platforms/Gcc/lib_libCppUTest_a-UtestPlatform.o -MD -MP -MF src/Platforms/Gcc/.deps/lib_libCppUTest_a-UtestPlatform.Tpo -c -o src/Platforms/Gcc/lib_libCppUTest_a-UtestPlatform.o `test -f 'src/Platforms/Gcc/UtestPlatform.cpp' || echo './'`src/Platforms/Gcc/UtestPlatform.cpp
mv -f src/Platforms/Gcc/.deps/lib_libCppUTest_a-UtestPlatform.Tpo src/Platforms/Gcc/.deps/lib_libCppUTest_a-UtestPlatform.Po
rm -f lib/libCppUTest.a
ar cru lib/libCppUTest.a src/CppUTest/lib_libCppUTest_a-CommandLineArguments.o src/CppUTest/lib_libCppUTest_a-CommandLineTestRunner.o src/CppUTest/lib_libCppUTest_a-JUnitTestOutput.o src/CppUTest/lib_libCppUTest_a-MemoryLeakDetector.o src/CppUTest/lib_libCppUTest_a-MemoryLeakWarningPlugin.o src/CppUTest/lib_libCppUTest_a-SimpleString.o src/CppUTest/lib_libCppUTest_a-SimpleMutex.o src/CppUTest/lib_libCppUTest_a-TeamCityTestOutput.o src/CppUTest/lib_libCppUTest_a-TestFailure.o src/CppUTest/lib_libCppUTest_a-TestFilter.o src/CppUTest/lib_libCppUTest_a-TestHarness_c.o src/CppUTest/lib_libCppUTest_a-TestMemoryAllocator.o src/CppUTest/lib_libCppUTest_a-TestOutput.o src/CppUTest/lib_libCppUTest_a-TestPlugin.o src/CppUTest/lib_libCppUTest_a-TestRegistry.o src/CppUTest/lib_libCppUTest_a-TestResult.o src/CppUTest/lib_libCppUTest_a-TestTestingFixture.o src/CppUTest/lib_libCppUTest_a-Utest.o src/Platforms/Gcc/lib_libCppUTest_a-UtestPlatform.o
ranlib lib/libCppUTest.a
g++ -DHAVE_CONFIG_H -I.   -include ./include/CppUTest/MemoryLeakDetectorMallocMacros.h -I ./include     -include ./include/CppUTest/MemoryLeakDetectorNewMacros.h  -Wno-c++11-long-long -Wno-long-long -Wall -Wextra -Wshadow -Wswitch-default -Wswitch-enum -Wconversion -pedantic -Wsign-conversion -Woverloaded-virtual -Wno-disabled-macro-expansion -Wno-padded -Wno-reserved-id-macro -Wno-keyword-macro -Wno-global-constructors -Wno-exit-time-destructors -Wno-weak-vtables -Wno-old-style-cast   -g -O2 -MT src/CppUTestExt/lib_libCppUTestExt_a-CodeMemoryReportFormatter.o -MD -MP -MF src/CppUTestExt/.deps/lib_libCppUTestExt_a-CodeMemoryReportFormatter.Tpo -c -o src/CppUTestExt/lib_libCppUTestExt_a-CodeMemoryReportFormatter.o `test -f 'src/CppUTestExt/CodeMemoryReportFormatter.cpp' || echo './'`src/CppUTestExt/CodeMemoryReportFormatter.cpp
mv -f src/CppUTestExt/.deps/lib_libCppUTestExt_a-CodeMemoryReportFormatter.Tpo src/CppUTestExt/.deps/lib_libCppUTestExt_a-CodeMemoryReportFormatter.Po
g++ -DHAVE_CONFIG_H -I.   -include ./include/CppUTest/MemoryLeakDetectorMallocMacros.h -I ./include     -include ./include/CppUTest/MemoryLeakDetectorNewMacros.h  -Wno-c++11-long-long -Wno-long-long -Wall -Wextra -Wshadow -Wswitch-default -Wswitch-enum -Wconversion -pedantic -Wsign-conversion -Woverloaded-virtual -Wno-disabled-macro-expansion -Wno-padded -Wno-reserved-id-macro -Wno-keyword-macro -Wno-global-constructors -Wno-exit-time-destructors -Wno-weak-vtables -Wno-old-style-cast   -g -O2 -MT src/CppUTestExt/lib_libCppUTestExt_a-IEEE754ExceptionsPlugin.o -MD -MP -MF src/CppUTestExt/.deps/lib_libCppUTestExt_a-IEEE754ExceptionsPlugin.Tpo -c -o src/CppUTestExt/lib_libCppUTestExt_a-IEEE754ExceptionsPlugin.o `test -f 'src/CppUTestExt/IEEE754ExceptionsPlugin.cpp' || echo './'`src/CppUTestExt/IEEE754ExceptionsPlugin.cpp
mv -f src/CppUTestExt/.deps/lib_libCppUTestExt_a-IEEE754ExceptionsPlugin.Tpo src/CppUTestExt/.deps/lib_libCppUTestExt_a-IEEE754ExceptionsPlugin.Po
g++ -DHAVE_CONFIG_H -I.   -include ./include/CppUTest/MemoryLeakDetectorMallocMacros.h -I ./include     -include ./include/CppUTest/MemoryLeakDetectorNewMacros.h  -Wno-c++11-long-long -Wno-long-long -Wall -Wextra -Wshadow -Wswitch-default -Wswitch-enum -Wconversion -pedantic -Wsign-conversion -Woverloaded-virtual -Wno-disabled-macro-expansion -Wno-padded -Wno-reserved-id-macro -Wno-keyword-macro -Wno-global-constructors -Wno-exit-time-destructors -Wno-weak-vtables -Wno-old-style-cast   -g -O2 -MT src/CppUTestExt/lib_libCppUTestExt_a-MemoryReportAllocator.o -MD -MP -MF src/CppUTestExt/.deps/lib_libCppUTestExt_a-MemoryReportAllocator.Tpo -c -o src/CppUTestExt/lib_libCppUTestExt_a-MemoryReportAllocator.o `test -f 'src/CppUTestExt/MemoryReportAllocator.cpp' || echo './'`src/CppUTestExt/MemoryReportAllocator.cpp
mv -f src/CppUTestExt/.deps/lib_libCppUTestExt_a-MemoryReportAllocator.Tpo src/CppUTestExt/.deps/lib_libCppUTestExt_a-MemoryReportAllocator.Po
g++ -DHAVE_CONFIG_H -I.   -include ./include/CppUTest/MemoryLeakDetectorMallocMacros.h -I ./include     -include ./include/CppUTest/MemoryLeakDetectorNewMacros.h  -Wno-c++11-long-long -Wno-long-long -Wall -Wextra -Wshadow -Wswitch-default -Wswitch-enum -Wconversion -pedantic -Wsign-conversion -Woverloaded-virtual -Wno-disabled-macro-expansion -Wno-padded -Wno-reserved-id-macro -Wno-keyword-macro -Wno-global-constructors -Wno-exit-time-destructors -Wno-weak-vtables -Wno-old-style-cast   -g -O2 -MT src/CppUTestExt/lib_libCppUTestExt_a-MemoryReporterPlugin.o -MD -MP -MF src/CppUTestExt/.deps/lib_libCppUTestExt_a-MemoryReporterPlugin.Tpo -c -o src/CppUTestExt/lib_libCppUTestExt_a-MemoryReporterPlugin.o `test -f 'src/CppUTestExt/MemoryReporterPlugin.cpp' || echo './'`src/CppUTestExt/MemoryReporterPlugin.cpp
mv -f src/CppUTestExt/.deps/lib_libCppUTestExt_a-MemoryReporterPlugin.Tpo src/CppUTestExt/.deps/lib_libCppUTestExt_a-MemoryReporterPlugin.Po
g++ -DHAVE_CONFIG_H -I.   -include ./include/CppUTest/MemoryLeakDetectorMallocMacros.h -I ./include     -include ./include/CppUTest/MemoryLeakDetectorNewMacros.h  -Wno-c++11-long-long -Wno-long-long -Wall -Wextra -Wshadow -Wswitch-default -Wswitch-enum -Wconversion -pedantic -Wsign-conversion -Woverloaded-virtual -Wno-disabled-macro-expansion -Wno-padded -Wno-reserved-id-macro -Wno-keyword-macro -Wno-global-constructors -Wno-exit-time-destructors -Wno-weak-vtables -Wno-old-style-cast   -g -O2 -MT src/CppUTestExt/lib_libCppUTestExt_a-MemoryReportFormatter.o -MD -MP -MF src/CppUTestExt/.deps/lib_libCppUTestExt_a-MemoryReportFormatter.Tpo -c -o src/CppUTestExt/lib_libCppUTestExt_a-MemoryReportFormatter.o `test -f 'src/CppUTestExt/MemoryReportFormatter.cpp' || echo './'`src/CppUTestExt/MemoryReportFormatter.cpp
mv -f src/CppUTestExt/.deps/lib_libCppUTestExt_a-MemoryReportFormatter.Tpo src/CppUTestExt/.deps/lib_libCppUTestExt_a-MemoryReportFormatter.Po
g++ -DHAVE_CONFIG_H -I.   -include ./include/CppUTest/MemoryLeakDetectorMallocMacros.h -I ./include     -include ./include/CppUTest/MemoryLeakDetectorNewMacros.h  -Wno-c++11-long-long -Wno-long-long -Wall -Wextra -Wshadow -Wswitch-default -Wswitch-enum -Wconversion -pedantic -Wsign-conversion -Woverloaded-virtual -Wno-disabled-macro-expansion -Wno-padded -Wno-reserved-id-macro -Wno-keyword-macro -Wno-global-constructors -Wno-exit-time-destructors -Wno-weak-vtables -Wno-old-style-cast   -g -O2 -MT src/CppUTestExt/lib_libCppUTestExt_a-MockActualCall.o -MD -MP -MF src/CppUTestExt/.deps/lib_libCppUTestExt_a-MockActualCall.Tpo -c -o src/CppUTestExt/lib_libCppUTestExt_a-MockActualCall.o `test -f 'src/CppUTestExt/MockActualCall.cpp' || echo './'`src/CppUTestExt/MockActualCall.cpp
mv -f src/CppUTestExt/.deps/lib_libCppUTestExt_a-MockActualCall.Tpo src/CppUTestExt/.deps/lib_libCppUTestExt_a-MockActualCall.Po
g++ -DHAVE_CONFIG_H -I.   -include ./include/CppUTest/MemoryLeakDetectorMallocMacros.h -I ./include     -include ./include/CppUTest/MemoryLeakDetectorNewMacros.h  -Wno-c++11-long-long -Wno-long-long -Wall -Wextra -Wshadow -Wswitch-default -Wswitch-enum -Wconversion -pedantic -Wsign-conversion -Woverloaded-virtual -Wno-disabled-macro-expansion -Wno-padded -Wno-reserved-id-macro -Wno-keyword-macro -Wno-global-constructors -Wno-exit-time-destructors -Wno-weak-vtables -Wno-old-style-cast   -g -O2 -MT src/CppUTestExt/lib_libCppUTestExt_a-MockExpectedCall.o -MD -MP -MF src/CppUTestExt/.deps/lib_libCppUTestExt_a-MockExpectedCall.Tpo -c -o src/CppUTestExt/lib_libCppUTestExt_a-MockExpectedCall.o `test -f 'src/CppUTestExt/MockExpectedCall.cpp' || echo './'`src/CppUTestExt/MockExpectedCall.cpp
mv -f src/CppUTestExt/.deps/lib_libCppUTestExt_a-MockExpectedCall.Tpo src/CppUTestExt/.deps/lib_libCppUTestExt_a-MockExpectedCall.Po
g++ -DHAVE_CONFIG_H -I.   -include ./include/CppUTest/MemoryLeakDetectorMallocMacros.h -I ./include     -include ./include/CppUTest/MemoryLeakDetectorNewMacros.h  -Wno-c++11-long-long -Wno-long-long -Wall -Wextra -Wshadow -Wswitch-default -Wswitch-enum -Wconversion -pedantic -Wsign-conversion -Woverloaded-virtual -Wno-disabled-macro-expansion -Wno-padded -Wno-reserved-id-macro -Wno-keyword-macro -Wno-global-constructors -Wno-exit-time-destructors -Wno-weak-vtables -Wno-old-style-cast   -g -O2 -MT src/CppUTestExt/lib_libCppUTestExt_a-MockExpectedCallsList.o -MD -MP -MF src/CppUTestExt/.deps/lib_libCppUTestExt_a-MockExpectedCallsList.Tpo -c -o src/CppUTestExt/lib_libCppUTestExt_a-MockExpectedCallsList.o `test -f 'src/CppUTestExt/MockExpectedCallsList.cpp' || echo './'`src/CppUTestExt/MockExpectedCallsList.cpp
mv -f src/CppUTestExt/.deps/lib_libCppUTestExt_a-MockExpectedCallsList.Tpo src/CppUTestExt/.deps/lib_libCppUTestExt_a-MockExpectedCallsList.Po
g++ -DHAVE_CONFIG_H -I.   -include ./include/CppUTest/MemoryLeakDetectorMallocMacros.h -I ./include     -include ./include/CppUTest/MemoryLeakDetectorNewMacros.h  -Wno-c++11-long-long -Wno-long-long -Wall -Wextra -Wshadow -Wswitch-default -Wswitch-enum -Wconversion -pedantic -Wsign-conversion -Woverloaded-virtual -Wno-disabled-macro-expansion -Wno-padded -Wno-reserved-id-macro -Wno-keyword-macro -Wno-global-constructors -Wno-exit-time-destructors -Wno-weak-vtables -Wno-old-style-cast   -g -O2 -MT src/CppUTestExt/lib_libCppUTestExt_a-MockFailure.o -MD -MP -MF src/CppUTestExt/.deps/lib_libCppUTestExt_a-MockFailure.Tpo -c -o src/CppUTestExt/lib_libCppUTestExt_a-MockFailure.o `test -f 'src/CppUTestExt/MockFailure.cpp' || echo './'`src/CppUTestExt/MockFailure.cpp
mv -f src/CppUTestExt/.deps/lib_libCppUTestExt_a-MockFailure.Tpo src/CppUTestExt/.deps/lib_libCppUTestExt_a-MockFailure.Po
g++ -DHAVE_CONFIG_H -I.   -include ./include/CppUTest/MemoryLeakDetectorMallocMacros.h -I ./include     -include ./include/CppUTest/MemoryLeakDetectorNewMacros.h  -Wno-c++11-long-long -Wno-long-long -Wall -Wextra -Wshadow -Wswitch-default -Wswitch-enum -Wconversion -pedantic -Wsign-conversion -Woverloaded-virtual -Wno-disabled-macro-expansion -Wno-padded -Wno-reserved-id-macro -Wno-keyword-macro -Wno-global-constructors -Wno-exit-time-destructors -Wno-weak-vtables -Wno-old-style-cast   -g -O2 -MT src/CppUTestExt/lib_libCppUTestExt_a-MockNamedValue.o -MD -MP -MF src/CppUTestExt/.deps/lib_libCppUTestExt_a-MockNamedValue.Tpo -c -o src/CppUTestExt/lib_libCppUTestExt_a-MockNamedValue.o `test -f 'src/CppUTestExt/MockNamedValue.cpp' || echo './'`src/CppUTestExt/MockNamedValue.cpp
mv -f src/CppUTestExt/.deps/lib_libCppUTestExt_a-MockNamedValue.Tpo src/CppUTestExt/.deps/lib_libCppUTestExt_a-MockNamedValue.Po
g++ -DHAVE_CONFIG_H -I.   -include ./include/CppUTest/MemoryLeakDetectorMallocMacros.h -I ./include     -include ./include/CppUTest/MemoryLeakDetectorNewMacros.h  -Wno-c++11-long-long -Wno-long-long -Wall -Wextra -Wshadow -Wswitch-default -Wswitch-enum -Wconversion -pedantic -Wsign-conversion -Woverloaded-virtual -Wno-disabled-macro-expansion -Wno-padded -Wno-reserved-id-macro -Wno-keyword-macro -Wno-global-constructors -Wno-exit-time-destructors -Wno-weak-vtables -Wno-old-style-cast   -g -O2 -MT src/CppUTestExt/lib_libCppUTestExt_a-MockSupport.o -MD -MP -MF src/CppUTestExt/.deps/lib_libCppUTestExt_a-MockSupport.Tpo -c -o src/CppUTestExt/lib_libCppUTestExt_a-MockSupport.o `test -f 'src/CppUTestExt/MockSupport.cpp' || echo './'`src/CppUTestExt/MockSupport.cpp
mv -f src/CppUTestExt/.deps/lib_libCppUTestExt_a-MockSupport.Tpo src/CppUTestExt/.deps/lib_libCppUTestExt_a-MockSupport.Po
g++ -DHAVE_CONFIG_H -I.   -include ./include/CppUTest/MemoryLeakDetectorMallocMacros.h -I ./include     -include ./include/CppUTest/MemoryLeakDetectorNewMacros.h  -Wno-c++11-long-long -Wno-long-long -Wall -Wextra -Wshadow -Wswitch-default -Wswitch-enum -Wconversion -pedantic -Wsign-conversion -Woverloaded-virtual -Wno-disabled-macro-expansion -Wno-padded -Wno-reserved-id-macro -Wno-keyword-macro -Wno-global-constructors -Wno-exit-time-destructors -Wno-weak-vtables -Wno-old-style-cast   -g -O2 -MT src/CppUTestExt/lib_libCppUTestExt_a-MockSupportPlugin.o -MD -MP -MF src/CppUTestExt/.deps/lib_libCppUTestExt_a-MockSupportPlugin.Tpo -c -o src/CppUTestExt/lib_libCppUTestExt_a-MockSupportPlugin.o `test -f 'src/CppUTestExt/MockSupportPlugin.cpp' || echo './'`src/CppUTestExt/MockSupportPlugin.cpp
mv -f src/CppUTestExt/.deps/lib_libCppUTestExt_a-MockSupportPlugin.Tpo src/CppUTestExt/.deps/lib_libCppUTestExt_a-MockSupportPlugin.Po
g++ -DHAVE_CONFIG_H -I.   -include ./include/CppUTest/MemoryLeakDetectorMallocMacros.h -I ./include     -include ./include/CppUTest/MemoryLeakDetectorNewMacros.h  -Wno-c++11-long-long -Wno-long-long -Wall -Wextra -Wshadow -Wswitch-default -Wswitch-enum -Wconversion -pedantic -Wsign-conversion -Woverloaded-virtual -Wno-disabled-macro-expansion -Wno-padded -Wno-reserved-id-macro -Wno-keyword-macro -Wno-global-constructors -Wno-exit-time-destructors -Wno-weak-vtables -Wno-old-style-cast   -g -O2 -MT src/CppUTestExt/lib_libCppUTestExt_a-MockSupport_c.o -MD -MP -MF src/CppUTestExt/.deps/lib_libCppUTestExt_a-MockSupport_c.Tpo -c -o src/CppUTestExt/lib_libCppUTestExt_a-MockSupport_c.o `test -f 'src/CppUTestExt/MockSupport_c.cpp' || echo './'`src/CppUTestExt/MockSupport_c.cpp
mv -f src/CppUTestExt/.deps/lib_libCppUTestExt_a-MockSupport_c.Tpo src/CppUTestExt/.deps/lib_libCppUTestExt_a-MockSupport_c.Po
g++ -DHAVE_CONFIG_H -I.   -include ./include/CppUTest/MemoryLeakDetectorMallocMacros.h -I ./include     -include ./include/CppUTest/MemoryLeakDetectorNewMacros.h  -Wno-c++11-long-long -Wno-long-long -Wall -Wextra -Wshadow -Wswitch-default -Wswitch-enum -Wconversion -pedantic -Wsign-conversion -Woverloaded-virtual -Wno-disabled-macro-expansion -Wno-padded -Wno-reserved-id-macro -Wno-keyword-macro -Wno-global-constructors -Wno-exit-time-destructors -Wno-weak-vtables -Wno-old-style-cast   -g -O2 -MT src/CppUTestExt/lib_libCppUTestExt_a-OrderedTest.o -MD -MP -MF src/CppUTestExt/.deps/lib_libCppUTestExt_a-OrderedTest.Tpo -c -o src/CppUTestExt/lib_libCppUTestExt_a-OrderedTest.o `test -f 'src/CppUTestExt/OrderedTest.cpp' || echo './'`src/CppUTestExt/OrderedTest.cpp
mv -f src/CppUTestExt/.deps/lib_libCppUTestExt_a-OrderedTest.Tpo src/CppUTestExt/.deps/lib_libCppUTestExt_a-OrderedTest.Po
rm -f lib/libCppUTestExt.a
ar cru lib/libCppUTestExt.a src/CppUTestExt/lib_libCppUTestExt_a-CodeMemoryReportFormatter.o src/CppUTestExt/lib_libCppUTestExt_a-IEEE754ExceptionsPlugin.o src/CppUTestExt/lib_libCppUTestExt_a-MemoryReportAllocator.o src/CppUTestExt/lib_libCppUTestExt_a-MemoryReporterPlugin.o src/CppUTestExt/lib_libCppUTestExt_a-MemoryReportFormatter.o src/CppUTestExt/lib_libCppUTestExt_a-MockActualCall.o src/CppUTestExt/lib_libCppUTestExt_a-MockExpectedCall.o src/CppUTestExt/lib_libCppUTestExt_a-MockExpectedCallsList.o src/CppUTestExt/lib_libCppUTestExt_a-MockFailure.o src/CppUTestExt/lib_libCppUTestExt_a-MockNamedValue.o src/CppUTestExt/lib_libCppUTestExt_a-MockSupport.o src/CppUTestExt/lib_libCppUTestExt_a-MockSupportPlugin.o src/CppUTestExt/lib_libCppUTestExt_a-MockSupport_c.o src/CppUTestExt/lib_libCppUTestExt_a-OrderedTest.o
ranlib lib/libCppUTestExt.a
make[1]: Leaving directory '/tmp/cpputest-3.8'

Administrator@poac21-PC /tmp/cpputest-3.8
$ 

编译完成后,查看cygwin/usr/local/lib目录下的内容,如下图所示。
CppUTest——【由JUnit移植过来的】C++单元测试框架——的下载安装
然后使用make install命令进行安装,命令运行后的cygwin/usr/local/lib目录下的内容,如下图所示(自己尝试的过程中,没有下图中的CppUTest文件夹)。
CppUTest——【由JUnit移植过来的】C++单元测试框架——的下载安装

$ make install
make[1]: Entering directory '/tmp/cpputest-3.8'
 /usr/bin/mkdir -p '/usr/local/lib'
 /usr/bin/install -c -m 644  lib/libCppUTest.a lib/libCppUTestExt.a '/usr/local/lib'
 ( cd '/usr/local/lib' && ranlib libCppUTest.a )
 ( cd '/usr/local/lib' && ranlib libCppUTestExt.a )
 /usr/bin/mkdir -p '/usr/local/include/CppUTest'
 /usr/bin/install -c -m 644 include/CppUTest/CommandLineArguments.h include/CppUTest/CommandLineTestRunner.h include/CppUTest/CppUTestConfig.h include/CppUTest/JUnitTestOutput.h include/CppUTest/MemoryLeakDetector.h include/CppUTest/MemoryLeakDetectorMallocMacros.h include/CppUTest/MemoryLeakDetectorNewMacros.h include/CppUTest/MemoryLeakWarningPlugin.h include/CppUTest/PlatformSpecificFunctions.h include/CppUTest/PlatformSpecificFunctions_c.h include/CppUTest/SimpleString.h include/CppUTest/SimpleMutex.h include/CppUTest/StandardCLibrary.h include/CppUTest/TeamCityTestOutput.h include/CppUTest/TestFailure.h include/CppUTest/TestFilter.h include/CppUTest/TestHarness.h include/CppUTest/TestHarness_c.h include/CppUTest/TestMemoryAllocator.h include/CppUTest/TestOutput.h include/CppUTest/TestPlugin.h include/CppUTest/TestRegistry.h include/CppUTest/TestResult.h include/CppUTest/TestTestingFixture.h include/CppUTest/Utest.h include/CppUTest/UtestMacros.h generated/CppUTestGeneratedConfig.h '/usr/local/include/CppUTest'
 /usr/bin/mkdir -p '/usr/local/include/CppUTestExt'
 /usr/bin/install -c -m 644 include/CppUTestExt/GMock.h include/CppUTestExt/GTest.h include/CppUTestExt/GTestConvertor.h include/CppUTestExt/IEEE754ExceptionsPlugin.h include/CppUTestExt/MemoryReportAllocator.h include/CppUTestExt/MemoryReporterPlugin.h include/CppUTestExt/MemoryReportFormatter.h include/CppUTestExt/MockActualCall.h include/CppUTestExt/MockCheckedActualCall.h include/CppUTestExt/MockCheckedExpectedCall.h include/CppUTestExt/MockExpectedCall.h include/CppUTestExt/MockExpectedCallsList.h include/CppUTestExt/MockFailure.h include/CppUTestExt/MockNamedValue.h include/CppUTestExt/MockSupport.h include/CppUTestExt/MockSupportPlugin.h include/CppUTestExt/MockSupport_c.h include/CppUTestExt/OrderedTest.h '/usr/local/include/CppUTestExt'
 /usr/bin/mkdir -p '/usr/local/lib/pkgconfig'
 /usr/bin/install -c -m 644 cpputest.pc '/usr/local/lib/pkgconfig'
make[1]: Leaving directory '/tmp/cpputest-3.8'

Administrator@poac21-PC /tmp/cpputest-3.8
$ 

最后,将cygwin/usr/local/lib下生成的内容拷贝到cpputest安装的根目录下的lib目录下(按照此博客进行到了此步,但不知道用途是什么= =)。
CppUTest——【由JUnit移植过来的】C++单元测试框架——的下载安装
最后配置环境变量CPPUTEST_HOME——CppUTest框架安装的根目录,如下图所示。
CppUTest——【由JUnit移植过来的】C++单元测试框架——的下载安装

导入到Virtual Studio

准备条件

需要安装Virtual StudioC++桌面组件

根据VS版本选择导入对应的.sln文件

将下载的CppUnit框架使用示例的压缩包.zip解压即可。下载的示例根目录下的cpputest-starter-project-vs-master\vs-test-build路径,根据Virtual Studio的版本选择对应的.sln文件即可,如下图红框所示。
CppUTest——【由JUnit移植过来的】C++单元测试框架——的下载安装文章来源地址https://www.toymoban.com/news/detail-503001.html

到了这里,关于CppUTest——【由JUnit移植过来的】C++单元测试框架——的下载安装的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包 赞助服务器费用

相关文章

  • 自动化测试之JUnit单元测试框架

    目录 一、什么是 JUnit 二、JUnit5 相关技术 1.注解 1.1 @Test 1.2 @Disabled 1.3 @BeforeAll、@AfterAll 1.4 @BeforeEach、@AfterEach 2.参数化 2.1 单参数 2.2 CSV 获取参数 2.3 方法获取参数 2.4 多参数 3.测试用例的执行顺序 3.1 顺序执行:@TestMethodOrder(MethodOrderer.OrderAnnotation.class) 3.2 随机执行:@TestMetho

    2024年02月06日
    浏览(70)
  • Android 单元测试框架 JUnit 4

    JUnit 4测试框架,它是Java中广泛使用的单元测试框架之一,使开发者能够编写可重复、可维护和可验证的测试。 单元测试是针对代码中的个别单元或组件进行测试,可以包括以下方面: 功能测试:测试代码单元是否按照预期执行功能。 边界测试:测试代码单元响应不同的边

    2024年02月15日
    浏览(44)
  • idea 安装JUnit单元测试框架

    JUnit是一套专门用于java的单元测试框架,主要是测试方法 junit4官方网站: JUnit – About junit5官方网站:JUnit 5  框架依赖:junit-4.12.jar;hamcrest-core-1.3.jar 安装步骤: (1)项目中创建lib目录 (2)把两个jar文件复制到lib目录 (3)选择lib目录然后点击右键选择“Add as Library.....

    2024年02月07日
    浏览(42)
  • Junit5单元测试框架详解

    前面我们学习了Selenium自动化测试框架,但是有的时候测试用例会很多,我们需要一个工具来管理这些测试用例,而Junit就是一个很好的管理工具,简单点来说,Junit就是一个针对Java的单元测试框架; 目录 一. 关于Junit5 二. Junit使用 2.1 添加Maven依赖 2.2 注解 2.3 断言 2.4 套件

    2024年02月06日
    浏览(46)
  • Java学习笔记——单元测试(JUnit框架)

    public class mathDemo { int area = 0; public int getArea(int a,int b){ area = a*b; return area; } } mathDemoTest类的代码 package UnitDemo; import UnitDemo.mathDemo; import org.junit.*; import static org.junit.Assert.*; public class mathDemoTest { mathDemo m = new mathDemo(); @BeforeClass public static void setUpClass(){ System.out.println(“在当前类的

    2024年04月26日
    浏览(41)
  • 【单元测试】如何使用 JUnit5 框架?

      Junit5是一个用于在Java平台上进行单元测试的框架。JUnit 5 框架主要由三部分组成:JUnit Platform、JUnit Jupiter 和 JUnit Vintage。 JUnit Platform:定义了测试引擎的 API,是 JVM 上用于启动测试框架的基础服务,支持通过 IDE、构建工具、命令行等方式运行单元测试。 JUnit Jupiter:包含

    2024年04月10日
    浏览(44)
  • 单元测试框架JUnit 4.12源码分析

    初窥门径之JUnit源码分析中提到源码分析建议按如下步骤进行: 1、了解框架架构图 2、了解各个package包所包含的功能点 3、选择需要关注/感兴趣/待解决问题的功能点入手 4、了解 数据流和控制流 5、绘制 类图和时序图 6、复盘 有前人经验,本文换个版本权当练习。 先通过某

    2024年02月12日
    浏览(36)
  • 浅谈java单元测试框架junit4/5

    junit是一个开源的Java语言的单元测试框架。目前junit主要有版本junit3,junit4和junit5。因在junit3中,是通过对测试类和测试方法的命名来确定是否是测试,且所有的测试类必须继承junit的测试基类TestCase,所以本文不再讨论junit3,只讨论使用比较多的junit4和junit5。 提供注解标识测

    2024年02月03日
    浏览(38)
  • SpringBoot单元测试--Mockito+Junit5框架使用

    作为程序员为了提前发现代码bug,优化代码; 通常我们写完某个功能模块代码后都需要写单元测试对代码块进行测试(特别是敏捷开发中);Java项目最常用的单元测试框架即为Junit(目前最新版本为Junit5),SpringBoot本身也整合了该框架。在写单元测试时代码块中的调到第三方接口方

    2024年02月02日
    浏览(45)
  • test-01-java 单元测试框架 junit 入门介绍

    JUnit 是一个用于编写可重复测试的简单框架。 它是 xUnit 架构的一种实例,专门用于单元测试框架。 What to test? Need Desc Right 结果是否正确 B 边界条件是否满足 I 能反向关联吗 C 有其他手段交叉检查吗 E 是否可以强制异常发生 P 性能问题 CalculatorTest 类包含了一个测试方法 test

    2024年02月04日
    浏览(40)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包