mirror of
https://github.com/unittest-cpp/unittest-cpp
synced 2026-09-29 04:35:29 +03:00
r10 | charles.nicholson | 2010-03-17 18:04:53 -0500 (Wed, 17 Mar 2010) | 1 line
rename unittestpp folder to src, fix bin/lib/obj folders in vcproj files
This commit is contained in:
parent
c8f551a502
commit
bcde677ff0
8 changed files with 862 additions and 288 deletions
|
|
@ -1,68 +1,68 @@
|
|||
#ifndef UNITTEST_MEMORYOUTSTREAM_H
|
||||
#define UNITTEST_MEMORYOUTSTREAM_H
|
||||
|
||||
#include "Config.h"
|
||||
|
||||
#ifndef UNITTEST_USE_CUSTOM_STREAMS
|
||||
|
||||
#include <sstream>
|
||||
|
||||
namespace UnitTest
|
||||
{
|
||||
|
||||
class MemoryOutStream : public std::ostringstream
|
||||
{
|
||||
public:
|
||||
MemoryOutStream() {}
|
||||
~MemoryOutStream() {}
|
||||
char const* GetText() const;
|
||||
|
||||
private:
|
||||
MemoryOutStream(MemoryOutStream const&);
|
||||
void operator =(MemoryOutStream const&);
|
||||
|
||||
mutable std::string m_text;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
#include <cstddef>
|
||||
|
||||
namespace UnitTest
|
||||
{
|
||||
|
||||
class MemoryOutStream
|
||||
{
|
||||
public:
|
||||
explicit MemoryOutStream(int const size = 256);
|
||||
~MemoryOutStream();
|
||||
|
||||
char const* GetText() const;
|
||||
|
||||
MemoryOutStream& operator << (char const* txt);
|
||||
MemoryOutStream& operator << (int n);
|
||||
MemoryOutStream& operator << (long n);
|
||||
MemoryOutStream& operator << (unsigned long n);
|
||||
MemoryOutStream& operator << (float f);
|
||||
MemoryOutStream& operator << (double d);
|
||||
MemoryOutStream& operator << (void const* p);
|
||||
MemoryOutStream& operator << (unsigned int s);
|
||||
|
||||
enum { GROW_CHUNK_SIZE = 32 };
|
||||
int GetCapacity() const;
|
||||
|
||||
private:
|
||||
void operator= (MemoryOutStream const&);
|
||||
void GrowBuffer(int capacity);
|
||||
|
||||
int m_capacity;
|
||||
char* m_buffer;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
#ifndef UNITTEST_MEMORYOUTSTREAM_H
|
||||
#define UNITTEST_MEMORYOUTSTREAM_H
|
||||
|
||||
#include "Config.h"
|
||||
|
||||
#ifndef UNITTEST_USE_CUSTOM_STREAMS
|
||||
|
||||
#include <sstream>
|
||||
|
||||
namespace UnitTest
|
||||
{
|
||||
|
||||
class MemoryOutStream : public std::ostringstream
|
||||
{
|
||||
public:
|
||||
MemoryOutStream() {}
|
||||
~MemoryOutStream() {}
|
||||
char const* GetText() const;
|
||||
|
||||
private:
|
||||
MemoryOutStream(MemoryOutStream const&);
|
||||
void operator =(MemoryOutStream const&);
|
||||
|
||||
mutable std::string m_text;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
#include <cstddef>
|
||||
|
||||
namespace UnitTest
|
||||
{
|
||||
|
||||
class MemoryOutStream
|
||||
{
|
||||
public:
|
||||
explicit MemoryOutStream(int const size = 256);
|
||||
~MemoryOutStream();
|
||||
|
||||
char const* GetText() const;
|
||||
|
||||
MemoryOutStream& operator << (char const* txt);
|
||||
MemoryOutStream& operator << (int n);
|
||||
MemoryOutStream& operator << (long n);
|
||||
MemoryOutStream& operator << (unsigned long n);
|
||||
MemoryOutStream& operator << (float f);
|
||||
MemoryOutStream& operator << (double d);
|
||||
MemoryOutStream& operator << (void const* p);
|
||||
MemoryOutStream& operator << (unsigned int s);
|
||||
|
||||
enum { GROW_CHUNK_SIZE = 32 };
|
||||
int GetCapacity() const;
|
||||
|
||||
private:
|
||||
void operator= (MemoryOutStream const&);
|
||||
void GrowBuffer(int capacity);
|
||||
|
||||
int m_capacity;
|
||||
char* m_buffer;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,33 +1,33 @@
|
|||
#include "TimeHelpers.h"
|
||||
#include <unistd.h>
|
||||
|
||||
namespace UnitTest {
|
||||
|
||||
Timer::Timer()
|
||||
{
|
||||
m_startTime.tv_sec = 0;
|
||||
m_startTime.tv_usec = 0;
|
||||
}
|
||||
|
||||
void Timer::Start()
|
||||
{
|
||||
gettimeofday(&m_startTime, 0);
|
||||
}
|
||||
|
||||
double Timer::GetTimeInMs() const
|
||||
{
|
||||
struct timeval currentTime;
|
||||
gettimeofday(¤tTime, 0);
|
||||
|
||||
double const dsecs = currentTime.tv_sec - m_startTime.tv_sec;
|
||||
double const dus = currentTime.tv_usec - m_startTime.tv_usec;
|
||||
|
||||
return (dsecs * 1000.0) + (dus / 1000.0);
|
||||
}
|
||||
|
||||
void TimeHelpers::SleepMs(int ms)
|
||||
{
|
||||
usleep(ms * 1000);
|
||||
}
|
||||
|
||||
}
|
||||
#include "TimeHelpers.h"
|
||||
#include <unistd.h>
|
||||
|
||||
namespace UnitTest {
|
||||
|
||||
Timer::Timer()
|
||||
{
|
||||
m_startTime.tv_sec = 0;
|
||||
m_startTime.tv_usec = 0;
|
||||
}
|
||||
|
||||
void Timer::Start()
|
||||
{
|
||||
gettimeofday(&m_startTime, 0);
|
||||
}
|
||||
|
||||
double Timer::GetTimeInMs() const
|
||||
{
|
||||
struct timeval currentTime;
|
||||
gettimeofday(¤tTime, 0);
|
||||
|
||||
double const dsecs = currentTime.tv_sec - m_startTime.tv_sec;
|
||||
double const dus = currentTime.tv_usec - m_startTime.tv_usec;
|
||||
|
||||
return (dsecs * 1000.0) + (dus / 1000.0);
|
||||
}
|
||||
|
||||
void TimeHelpers::SleepMs(int ms)
|
||||
{
|
||||
usleep(ms * 1000);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,28 +1,28 @@
|
|||
#ifndef UNITTEST_TIMEHELPERS_H
|
||||
#define UNITTEST_TIMEHELPERS_H
|
||||
|
||||
#include <sys/time.h>
|
||||
|
||||
namespace UnitTest {
|
||||
|
||||
class Timer
|
||||
{
|
||||
public:
|
||||
Timer();
|
||||
void Start();
|
||||
double GetTimeInMs() const;
|
||||
|
||||
private:
|
||||
struct timeval m_startTime;
|
||||
};
|
||||
|
||||
|
||||
namespace TimeHelpers
|
||||
{
|
||||
void SleepMs (int ms);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
#ifndef UNITTEST_TIMEHELPERS_H
|
||||
#define UNITTEST_TIMEHELPERS_H
|
||||
|
||||
#include <sys/time.h>
|
||||
|
||||
namespace UnitTest {
|
||||
|
||||
class Timer
|
||||
{
|
||||
public:
|
||||
Timer();
|
||||
void Start();
|
||||
double GetTimeInMs() const;
|
||||
|
||||
private:
|
||||
struct timeval m_startTime;
|
||||
};
|
||||
|
||||
|
||||
namespace TimeHelpers
|
||||
{
|
||||
void SleepMs (int ms);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,46 +1,46 @@
|
|||
#include "TestReporterStdout.h"
|
||||
#include <cstdio>
|
||||
|
||||
#include "TestDetails.h"
|
||||
|
||||
// cstdio doesn't pull in namespace std on VC6, so we do it here.
|
||||
#if defined(_MSC_VER) && (_MSC_VER == 1200)
|
||||
namespace std {}
|
||||
#endif
|
||||
|
||||
namespace UnitTest {
|
||||
|
||||
void TestReporterStdout::ReportFailure(TestDetails const& details, char const* failure)
|
||||
{
|
||||
#if defined(__APPLE__) || defined(__GNUG__)
|
||||
char const* const errorFormat = "%s:%d: error: Failure in %s: %s\n";
|
||||
#else
|
||||
char const* const errorFormat = "%s(%d): error: Failure in %s: %s\n";
|
||||
#endif
|
||||
|
||||
using namespace std;
|
||||
printf(errorFormat, details.filename, details.lineNumber, details.testName, failure);
|
||||
}
|
||||
|
||||
void TestReporterStdout::ReportTestStart(TestDetails const& /*test*/)
|
||||
{
|
||||
}
|
||||
|
||||
void TestReporterStdout::ReportTestFinish(TestDetails const& /*test*/, float)
|
||||
{
|
||||
}
|
||||
|
||||
void TestReporterStdout::ReportSummary(int const totalTestCount, int const failedTestCount,
|
||||
int const failureCount, float secondsElapsed)
|
||||
{
|
||||
using namespace std;
|
||||
|
||||
if (failureCount > 0)
|
||||
printf("FAILURE: %d out of %d tests failed (%d failures).\n", failedTestCount, totalTestCount, failureCount);
|
||||
else
|
||||
printf("Success: %d tests passed.\n", totalTestCount);
|
||||
|
||||
printf("Test time: %.2f seconds.\n", secondsElapsed);
|
||||
}
|
||||
|
||||
}
|
||||
#include "TestReporterStdout.h"
|
||||
#include <cstdio>
|
||||
|
||||
#include "TestDetails.h"
|
||||
|
||||
// cstdio doesn't pull in namespace std on VC6, so we do it here.
|
||||
#if defined(_MSC_VER) && (_MSC_VER == 1200)
|
||||
namespace std {}
|
||||
#endif
|
||||
|
||||
namespace UnitTest {
|
||||
|
||||
void TestReporterStdout::ReportFailure(TestDetails const& details, char const* failure)
|
||||
{
|
||||
#if defined(__APPLE__) || defined(__GNUG__)
|
||||
char const* const errorFormat = "%s:%d: error: Failure in %s: %s\n";
|
||||
#else
|
||||
char const* const errorFormat = "%s(%d): error: Failure in %s: %s\n";
|
||||
#endif
|
||||
|
||||
using namespace std;
|
||||
printf(errorFormat, details.filename, details.lineNumber, details.testName, failure);
|
||||
}
|
||||
|
||||
void TestReporterStdout::ReportTestStart(TestDetails const& /*test*/)
|
||||
{
|
||||
}
|
||||
|
||||
void TestReporterStdout::ReportTestFinish(TestDetails const& /*test*/, float)
|
||||
{
|
||||
}
|
||||
|
||||
void TestReporterStdout::ReportSummary(int const totalTestCount, int const failedTestCount,
|
||||
int const failureCount, float secondsElapsed)
|
||||
{
|
||||
using namespace std;
|
||||
|
||||
if (failureCount > 0)
|
||||
printf("FAILURE: %d out of %d tests failed (%d failures).\n", failedTestCount, totalTestCount, failureCount);
|
||||
else
|
||||
printf("Success: %d tests passed.\n", totalTestCount);
|
||||
|
||||
printf("Test time: %.2f seconds.\n", secondsElapsed);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,48 +1,48 @@
|
|||
#ifndef UNITTEST_TIMEHELPERS_H
|
||||
#define UNITTEST_TIMEHELPERS_H
|
||||
|
||||
#include "../Config.h"
|
||||
|
||||
|
||||
#ifdef UNITTEST_MINGW
|
||||
#ifndef __int64
|
||||
#define __int64 long long
|
||||
#endif
|
||||
#endif
|
||||
|
||||
namespace UnitTest {
|
||||
|
||||
class Timer
|
||||
{
|
||||
public:
|
||||
Timer();
|
||||
void Start();
|
||||
double GetTimeInMs() const;
|
||||
|
||||
private:
|
||||
__int64 GetTime() const;
|
||||
|
||||
void* m_threadHandle;
|
||||
|
||||
#if defined(_WIN64)
|
||||
unsigned __int64 m_processAffinityMask;
|
||||
#else
|
||||
unsigned long m_processAffinityMask;
|
||||
#endif
|
||||
|
||||
__int64 m_startTime;
|
||||
__int64 m_frequency;
|
||||
};
|
||||
|
||||
|
||||
namespace TimeHelpers
|
||||
{
|
||||
void SleepMs (int ms);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
#ifndef UNITTEST_TIMEHELPERS_H
|
||||
#define UNITTEST_TIMEHELPERS_H
|
||||
|
||||
#include "../Config.h"
|
||||
|
||||
|
||||
#ifdef UNITTEST_MINGW
|
||||
#ifndef __int64
|
||||
#define __int64 long long
|
||||
#endif
|
||||
#endif
|
||||
|
||||
namespace UnitTest {
|
||||
|
||||
class Timer
|
||||
{
|
||||
public:
|
||||
Timer();
|
||||
void Start();
|
||||
double GetTimeInMs() const;
|
||||
|
||||
private:
|
||||
__int64 GetTime() const;
|
||||
|
||||
void* m_threadHandle;
|
||||
|
||||
#if defined(_WIN64)
|
||||
unsigned __int64 m_processAffinityMask;
|
||||
#else
|
||||
unsigned long m_processAffinityMask;
|
||||
#endif
|
||||
|
||||
__int64 m_startTime;
|
||||
__int64 m_frequency;
|
||||
};
|
||||
|
||||
|
||||
namespace TimeHelpers
|
||||
{
|
||||
void SleepMs (int ms);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,65 +1,65 @@
|
|||
#include "../unittestpp.h"
|
||||
#include "../TimeHelpers.h"
|
||||
|
||||
#include "RecordingReporter.h"
|
||||
#include "ScopedCurrentTest.h"
|
||||
|
||||
namespace {
|
||||
|
||||
TEST(TimeConstraintMacroQualifiesNamespace)
|
||||
{
|
||||
// If this compiles without a "using namespace UnitTest;", all is well.
|
||||
UNITTEST_TIME_CONSTRAINT(1);
|
||||
}
|
||||
|
||||
TEST(TimeConstraintMacroUsesCorrectInfo)
|
||||
{
|
||||
int testLine = 0;
|
||||
RecordingReporter reporter;
|
||||
|
||||
{
|
||||
UnitTest::TestResults testResults(&reporter);
|
||||
ScopedCurrentTest scopedResults(testResults);
|
||||
|
||||
UNITTEST_TIME_CONSTRAINT(10); testLine = __LINE__;
|
||||
UnitTest::TimeHelpers::SleepMs(20);
|
||||
}
|
||||
|
||||
using namespace std;
|
||||
|
||||
CHECK_EQUAL(1, reporter.testFailedCount);
|
||||
CHECK(strstr(reporter.lastFailedFile, __FILE__));
|
||||
CHECK_EQUAL(testLine, reporter.lastFailedLine);
|
||||
CHECK(strstr(reporter.lastFailedTest, "TimeConstraintMacroUsesCorrectInfo"));
|
||||
}
|
||||
|
||||
TEST(TimeConstraintMacroComparesAgainstPreciseActual)
|
||||
{
|
||||
int testLine = 0;
|
||||
RecordingReporter reporter;
|
||||
|
||||
{
|
||||
UnitTest::TestResults testResults(&reporter);
|
||||
ScopedCurrentTest scopedResults(testResults);
|
||||
|
||||
UNITTEST_TIME_CONSTRAINT(1); testLine = __LINE__;
|
||||
|
||||
// start a new timer and run until we're as little over the 1 msec
|
||||
// threshold as we can achieve; this should guarantee that the "test"
|
||||
// runs in some very small amount of time > 1 msec
|
||||
UnitTest::Timer myTimer;
|
||||
myTimer.Start();
|
||||
|
||||
while (myTimer.GetTimeInMs() < 1.001)
|
||||
UnitTest::TimeHelpers::SleepMs(0);
|
||||
}
|
||||
|
||||
using namespace std;
|
||||
|
||||
CHECK_EQUAL(1, reporter.testFailedCount);
|
||||
CHECK(strstr(reporter.lastFailedFile, __FILE__));
|
||||
CHECK_EQUAL(testLine, reporter.lastFailedLine);
|
||||
CHECK(strstr(reporter.lastFailedTest, "TimeConstraintMacroComparesAgainstPreciseActual"));
|
||||
}
|
||||
|
||||
}
|
||||
#include "../unittestpp.h"
|
||||
#include "../TimeHelpers.h"
|
||||
|
||||
#include "RecordingReporter.h"
|
||||
#include "ScopedCurrentTest.h"
|
||||
|
||||
namespace {
|
||||
|
||||
TEST(TimeConstraintMacroQualifiesNamespace)
|
||||
{
|
||||
// If this compiles without a "using namespace UnitTest;", all is well.
|
||||
UNITTEST_TIME_CONSTRAINT(1);
|
||||
}
|
||||
|
||||
TEST(TimeConstraintMacroUsesCorrectInfo)
|
||||
{
|
||||
int testLine = 0;
|
||||
RecordingReporter reporter;
|
||||
|
||||
{
|
||||
UnitTest::TestResults testResults(&reporter);
|
||||
ScopedCurrentTest scopedResults(testResults);
|
||||
|
||||
UNITTEST_TIME_CONSTRAINT(10); testLine = __LINE__;
|
||||
UnitTest::TimeHelpers::SleepMs(20);
|
||||
}
|
||||
|
||||
using namespace std;
|
||||
|
||||
CHECK_EQUAL(1, reporter.testFailedCount);
|
||||
CHECK(strstr(reporter.lastFailedFile, __FILE__));
|
||||
CHECK_EQUAL(testLine, reporter.lastFailedLine);
|
||||
CHECK(strstr(reporter.lastFailedTest, "TimeConstraintMacroUsesCorrectInfo"));
|
||||
}
|
||||
|
||||
TEST(TimeConstraintMacroComparesAgainstPreciseActual)
|
||||
{
|
||||
int testLine = 0;
|
||||
RecordingReporter reporter;
|
||||
|
||||
{
|
||||
UnitTest::TestResults testResults(&reporter);
|
||||
ScopedCurrentTest scopedResults(testResults);
|
||||
|
||||
UNITTEST_TIME_CONSTRAINT(1); testLine = __LINE__;
|
||||
|
||||
// start a new timer and run until we're as little over the 1 msec
|
||||
// threshold as we can achieve; this should guarantee that the "test"
|
||||
// runs in some very small amount of time > 1 msec
|
||||
UnitTest::Timer myTimer;
|
||||
myTimer.Start();
|
||||
|
||||
while (myTimer.GetTimeInMs() < 1.001)
|
||||
UnitTest::TimeHelpers::SleepMs(0);
|
||||
}
|
||||
|
||||
using namespace std;
|
||||
|
||||
CHECK_EQUAL(1, reporter.testFailedCount);
|
||||
CHECK(strstr(reporter.lastFailedFile, __FILE__));
|
||||
CHECK_EQUAL(testLine, reporter.lastFailedLine);
|
||||
CHECK(strstr(reporter.lastFailedTest, "TimeConstraintMacroComparesAgainstPreciseActual"));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
256
src/tests/test-unittestpp.vcproj
Normal file
256
src/tests/test-unittestpp.vcproj
Normal file
|
|
@ -0,0 +1,256 @@
|
|||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="8.00"
|
||||
Name="test-unittestpp"
|
||||
ProjectGUID="{9CCC3439-309E-4E85-B3B8-CE704D385D48}"
|
||||
RootNamespace="test-unittestpp"
|
||||
Keyword="Win32Proj"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory="$(SolutionDir)bin\$(ConfigurationName)"
|
||||
IntermediateDirectory="$(SolutionDir)obj\$(ProjectName)\$(ConfigurationName)"
|
||||
ConfigurationType="1"
|
||||
CharacterSet="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE"
|
||||
MinimalRebuild="true"
|
||||
ExceptionHandling="2"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="3"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="4"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="4"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
LinkIncremental="2"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="1"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
CommandLine=""$(TargetPath)""
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory="$(SolutionDir)bin\$(ConfigurationName)"
|
||||
IntermediateDirectory="$(SolutionDir)obj\$(ProjectName)\$(ConfigurationName)"
|
||||
ConfigurationType="1"
|
||||
CharacterSet="1"
|
||||
WholeProgramOptimization="0"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="3"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE;_CRT_SECURE_NO_DEPRECATE"
|
||||
ExceptionHandling="2"
|
||||
RuntimeLibrary="2"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="4"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLinkerTool"
|
||||
LinkIncremental="1"
|
||||
GenerateDebugInformation="true"
|
||||
SubSystem="1"
|
||||
OptimizeReferences="2"
|
||||
EnableCOMDATFolding="2"
|
||||
TargetMachine="1"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManifestTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCAppVerifierTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebDeploymentTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
CommandLine=""$(TargetPath)""
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<File
|
||||
RelativePath=".\Main.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\RecordingReporter.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\ScopedCurrentTest.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\TestAssertHandler.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\TestCheckMacros.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\TestChecks.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\TestCurrentTest.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\TestDeferredTestReporter.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\TestExceptions.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\TestMemoryOutStream.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\TestTest.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\TestTestList.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\TestTestMacros.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\TestTestResults.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\TestTestRunner.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\TestTestSuite.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\TestTimeConstraint.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\TestTimeConstraintMacro.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\TestUnitTestPP.cpp"
|
||||
>
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
||||
318
src/unittestpp.vcproj
Normal file
318
src/unittestpp.vcproj
Normal file
|
|
@ -0,0 +1,318 @@
|
|||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="8.00"
|
||||
Name="unittestpp"
|
||||
ProjectGUID="{64A4FEFE-0461-4E95-8CC1-91EF5F57DBC6}"
|
||||
RootNamespace="unittestpp"
|
||||
Keyword="Win32Proj"
|
||||
>
|
||||
<Platforms>
|
||||
<Platform
|
||||
Name="Win32"
|
||||
/>
|
||||
</Platforms>
|
||||
<ToolFiles>
|
||||
</ToolFiles>
|
||||
<Configurations>
|
||||
<Configuration
|
||||
Name="Debug|Win32"
|
||||
OutputDirectory="$(SolutionDir)lib\$(ConfigurationName)"
|
||||
IntermediateDirectory="$(SolutionDir)obj\$(ProjectName)\$(ConfigurationName)"
|
||||
ConfigurationType="4"
|
||||
CharacterSet="1"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="0"
|
||||
PreprocessorDefinitions="WIN32;_DEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE"
|
||||
MinimalRebuild="true"
|
||||
ExceptionHandling="2"
|
||||
BasicRuntimeChecks="3"
|
||||
RuntimeLibrary="3"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="4"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="4"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLibrarianTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
<Configuration
|
||||
Name="Release|Win32"
|
||||
OutputDirectory="$(SolutionDir)lib\$(ConfigurationName)"
|
||||
IntermediateDirectory="$(SolutionDir)obj\$(ProjectName)\$(ConfigurationName)"
|
||||
ConfigurationType="4"
|
||||
CharacterSet="1"
|
||||
WholeProgramOptimization="0"
|
||||
>
|
||||
<Tool
|
||||
Name="VCPreBuildEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCustomBuildTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXMLDataGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCWebServiceProxyGeneratorTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCMIDLTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCCLCompilerTool"
|
||||
Optimization="3"
|
||||
PreprocessorDefinitions="WIN32;NDEBUG;_LIB;_CRT_SECURE_NO_DEPRECATE"
|
||||
ExceptionHandling="2"
|
||||
RuntimeLibrary="2"
|
||||
UsePrecompiledHeader="0"
|
||||
WarningLevel="4"
|
||||
Detect64BitPortabilityProblems="true"
|
||||
DebugInformationFormat="3"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCManagedResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCResourceCompilerTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPreLinkEventTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCLibrarianTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCALinkTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCXDCMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCBscMakeTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCFxCopTool"
|
||||
/>
|
||||
<Tool
|
||||
Name="VCPostBuildEventTool"
|
||||
/>
|
||||
</Configuration>
|
||||
</Configurations>
|
||||
<References>
|
||||
</References>
|
||||
<Files>
|
||||
<Filter
|
||||
Name="Win32"
|
||||
>
|
||||
<File
|
||||
RelativePath=".\Win32\TimeHelpers.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\Win32\TimeHelpers.h"
|
||||
>
|
||||
</File>
|
||||
</Filter>
|
||||
<File
|
||||
RelativePath=".\AssertException.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\AssertException.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\CheckMacros.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\Checks.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\Checks.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\Config.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\CurrentTest.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\CurrentTest.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\DeferredTestReporter.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\DeferredTestReporter.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\DeferredTestResult.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\DeferredTestResult.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\ExceptionMacros.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\ExecuteTest.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\MemoryOutStream.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\MemoryOutStream.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\ReportAssert.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\ReportAssert.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\ReportAssertImpl.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\Test.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\Test.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\TestDetails.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\TestDetails.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\TestList.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\TestList.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\TestMacros.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\TestReporter.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\TestReporter.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\TestReporterStdout.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\TestReporterStdout.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\TestResults.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\TestResults.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\TestRunner.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\TestRunner.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\TestSuite.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\TimeConstraint.cpp"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\TimeConstraint.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\TimeHelpers.h"
|
||||
>
|
||||
</File>
|
||||
<File
|
||||
RelativePath=".\unittestpp.h"
|
||||
>
|
||||
</File>
|
||||
</Files>
|
||||
<Globals>
|
||||
</Globals>
|
||||
</VisualStudioProject>
|
||||
Loading…
Add table
Add a link
Reference in a new issue