0


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

C++单元测试框架CppUTest的下载与安装

简介

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框架,如下图红框所示。
在这里插入图片描述

单元测试被测工程下载

也可以从上面官方连接中下载练手的被测项目的代码示例,比如

Using CppUTest with Visual Studio

,找到后点击对应连接下载即可如下图红框所示。
在这里插入图片描述

或者在此网页一开头也给出了不同场景下的CppUnit框架的下载地址,如下图所示。
在这里插入图片描述
弹出框架代码的界面,如下图所示。
在这里插入图片描述

安装

安装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等负责维护。

下载地址

官网下载地址?,选择符合自己操作系统的安装包,如下图所示。
在这里插入图片描述

安装步骤

详见此博客。
1.双击下载好的安装包
在这里插入图片描述
2、选择安装方式
在这里插入图片描述
3、选择安装路径
在这里插入图片描述
4、在下载的同时,Cygwin组件也保存到了本地,以便以后能够再次安装,这一步选择安装过程中从网上下载的Cygwin组件包的保存位置
在这里插入图片描述
5、选择连接的方式
在这里插入图片描述

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

6、添加、选择下载地址

7、在短暂的下载、加载界面后,来到如下界面。点击图中红框中的加号按钮。此处,对于安装Cygwin来说,就是安装各种各样的模块而已。最核心的,记住一定要安装Devel这个部分的模块,其中包含了各种开发所用到的工具或模块。展开

ALL

—>

Devel

—>【建议Devel全选,而非仅从中选择

binutils

gcc-core

gcc-g++

gdb

make

mingwin64-i686-gcc-core

mingwin64-i686-gcc-g++

】进行安装,因为在安装完成后使用cmake --version指令,提示“‘cmake’不是内部或外部命令,也不是可运行的程序或批处理文件”,目前怀疑是Cygwin选择组件时未选择全导致的。

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

Devel

,来到此处依然提示“‘cmake’不是内部或外部命令,则需要手动安装CMake

手动安装CMake

点击官网地址?,来到下图所示界面。
在这里插入图片描述
下滑页面来到

Older Releases

,如下图所示。选择

kitware

的网址,点击。因为其他网址被拦截了打不开= =
在这里插入图片描述
点击

LatestRelease

在这里插入图片描述
在下图所示的界面中,找到符合自己操作系统的安装包,比如下图红框所示。.msi是Windows安装包。
在这里插入图片描述
下载后双击安装即可,在安装的一个步骤中,自认此处可以选择第二项,for all users。
在这里插入图片描述

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

  • 验证Cygwin是否安装成功 在Windows系统的命令行中输入cygcheck -c cygwin,如下图所示。在这里插入图片描述
  • 验证组件是否安装完全 – 双击cygwin图标,运行cygwin – 在运行cygwin后弹出的命令行内依次输入如下命令,查看各组件是否安装完全,如下图所示。
cygcheck -c cygwin

gcc --version

g++ --version

gdb --version

make --version

在这里插入图片描述
注: 如果有组件忘记下载,可以再次点击cygwin setup-x86_64.exe安装包更新组件,不用卸载重装。

编译单元测试框架CppUTest

Windows命令行,切换到单元测试框架CppUTest根目录下,输入命令

./configure

先完成源码安装的前置步骤——生成makefile。执行configure文件,此文件有两个功能:①让用户选定编译特性②检查编译环境。只有此步完成,后面步骤在执行make时才能正常运行。

在上一步完成后,切换到 单元测试框架CppUTest根目录下的cpputest_build目录,输入命令

cmake ..

使用 cmake 生成 Makefile,如下两图所示(一张图没截全;另外因为本步暂未试通,所以划入备注部分= =)。
在这里插入图片描述
在这里插入图片描述

在完成使用

cmake

生成

Makefile

的步骤后,(自己第一次尝试时,未能执行cmkae,所以第二次尝试时,在./configure后——未执行cmake——直接来到本步)输入

make

命令进行编译,运行信息如下图所示:

Administrator@poac21-PC /tmp/cpputest-3.8
$ makemake  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

目录下的内容,如下图所示。
在这里插入图片描述
然后使用

make install

命令进行安装,命令运行后的

cygwin/usr/local/lib

目录下的内容,如下图所示(自己尝试的过程中,没有下图中的CppUTest文件夹)。
在这里插入图片描述

$ makeinstall
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_HOME

——CppUTest框架安装的根目录,如下图所示。
在这里插入图片描述

导入到Virtual Studio

准备条件

需要安装

Virtual Studio

C++桌面组件

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

将下载的CppUnit框架使用示例的压缩包

.zip

解压即可。下载的示例根目录下的

cpputest-starter-project-vs-master\vs-test-build

路径,根据Virtual Studio的版本选择对应的

.sln

文件即可,如下图红框所示。
在这里插入图片描述


本文转载自: https://blog.csdn.net/u010804417/article/details/131251162
版权归原作者 龙俊亨 所有, 如有侵权,请联系我们删除。

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

还没有评论