Port of schuchert.wikispaces.com


cpptraining.GettingCppUTestCompiledUsingCDTToolSet

cpptraining.GettingCppUTestCompiledUsingCDTToolSet

Background

These steps assume you are using the CDT’s tool set. Before following these instructions, please make sure you have followed these instructions first.

Steps

c:>cd C:\learncpp\cpputest23
cd C:\learncpp\cpputest23>set CPP_U_TEST=c:\learncpp\cpputest23
CC=gcc
C:\learncpp\cpputest23>make clean
C:\learncpp\cpputest23>make all

Note, you should be able to simply type “make clean all”, that did not work so I just used 2 commands.

C:\workspaces\CppUTest>make clean
Making clean
File not found - *.gcov

C:\workspaces\CppUTest>make all
compiling AllTests.cpp
compiling CommandLineArgumentsTest.cpp
compiling CommandLineTestRunnerTest.cpp
compiling FailureTest.cpp
compiling JUnitOutputTest.cpp
compiling MemoryLeakDetectorTest.cpp
compiling MemoryLeakWarningTest.cpp
compiling NullTestTest.cpp
compiling PluginTest.cpp
compiling SetPluginTest.cpp
compiling SimpleStringTest.cpp
tests/SimpleStringTest.cpp: In member function 'virtual void SimpleString_String
FromFormatLarge_Test::testBody()':
tests/SimpleStringTest.cpp:275: warning: deprecated conversion from string const
ant to 'char*'
compiling TestHarness_cTest.cpp
compiling TestInstallerTest.cpp
compiling TestOutputTest.cpp
compiling TestRegistryTest.cpp
compiling TestResultTest.cpp
compiling UtestTest.cpp
compiling SimpleStringExtensionsTest.cpp
compiling SimpleStringFromStdintTest.cpp
compiling TestOrderedTest.cpp
compiling CommandLineArguments.cpp
compiling CommandLineTestRunner.cpp
compiling Failure.cpp
compiling JUnitTestOutput.cpp
compiling MemoryLeakDetector.cpp
compiling MemoryLeakWarningPlugin.cpp
compiling SimpleString.cpp
compiling TestHarness_c.cpp
compiling TestOutput.cpp
compiling TestPlugin.cpp
compiling TestRegistry.cpp
compiling TestResult.cpp
compiling Utest.cpp
compiling UtestPlatform.cpp
compiling OrderedTest.cpp
compiling SimpleStringExtensions.cpp
compiling SimpleStringFromStdint.cpp
Building archive lib/libCppUTest.a
c:\Program Files\eclipse\mingw\bin\ar.exe: creating lib/libCppUTest.a
a - src/CppUTest/CommandLineArguments.o
a - src/CppUTest/CommandLineTestRunner.o
a - src/CppUTest/Failure.o
a - src/CppUTest/JUnitTestOutput.o
a - src/CppUTest/MemoryLeakDetector.o
a - src/CppUTest/MemoryLeakWarningPlugin.o
a - src/CppUTest/SimpleString.o
a - src/CppUTest/TestHarness_c.o
a - src/CppUTest/TestOutput.o
a - src/CppUTest/TestPlugin.o
a - src/CppUTest/TestRegistry.o
a - src/CppUTest/TestResult.o
a - src/CppUTest/Utest.o
a - src/Platforms/Gcc/UtestPlatform.o
a - src/CppUTest/Extensions/OrderedTest.o
a - src/CppUTest/Extensions/SimpleStringExtensions.o
a - src/CppUTest/Extensions/SimpleStringFromStdint.o
Linking CppUTest_tests
Running CppUTest_tests
.................!................................
..............!...................................
..........................................!!......
..............!..............
OK (179 tests, 174 ran, 610 checks, 5 ignored, 0 filtered out, 15 ms)


C:\workspaces\CppUTest>


Comments

" Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.