本文整理汇总了C++中CheckStatsTotal函数的典型用法代码示例。如果您正苦于以下问题:C++ CheckStatsTotal函数的具体用法?C++ CheckStatsTotal怎么用?C++ CheckStatsTotal使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了CheckStatsTotal函数的18个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: srcFile
// MultipleCopyNodes
//------------------------------------------------------------------------------
void TestCopy::MultipleCopyNodes() const
{
const AStackString<> srcFile( "Data/TestGraph/library.cpp" );
const AStackString<> dstFileA( "../../../../tmp/Test/Graph/library.multiplecopynodes1.cpp" );
const AStackString<> dstFileB( "../../../../tmp/Test/Graph/library.multiplecopynodes2.cpp" );
const AStackString<> dstFileC( "../../../../tmp/Test/Graph/library.multiplecopynodes3.cpp" );
// check files are as expected before starting test
EnsureFileDoesNotExist( dstFileA );
EnsureFileDoesNotExist( dstFileB );
EnsureFileDoesNotExist( dstFileC );
EnsureFileExists( srcFile );
FBuildOptions options;
options.m_ShowSummary = true; // required to generate stats for node count checks
// build
{
FBuild fb( options );
NodeGraph & ng = fb.GetDependencyGraph();
// make a fileNode for the source
FileNode * srcNode = ng.CreateFileNode( srcFile );
Dependencies empty;
Node * copyA = ng.CreateCopyNode( dstFileA, srcNode, empty );
Node * copyB = ng.CreateCopyNode( dstFileB, (FileNode *)copyA, empty );
Node * copyC = ng.CreateCopyNode( dstFileC, (FileNode *)copyB, empty );
TEST_ASSERT( fb.Build( copyC ) );
TEST_ASSERT( fb.SaveDependencyGraph( "../../../../tmp/Test/Graph/multiplecopynode.fdb" ) );
EnsureFileExists( dstFileA );
EnsureFileExists( dstFileB );
EnsureFileExists( dstFileC );
// Check stats
// Seen, Built, Type
CheckStatsNode ( 1, 1, Node::FILE_NODE );
CheckStatsNode ( 3, 3, Node::COPY_NODE );
CheckStatsTotal( 4, 4 );
}
// check no rebuild
{
FBuild fb( options );
fb.Initialize( "../../../../tmp/Test/Graph/multiplecopynode.fdb" );
TEST_ASSERT( fb.Build( dstFileC ) );
// Check stats
// Seen, Built, Type
CheckStatsNode ( 1, 1, Node::FILE_NODE );
CheckStatsNode ( 3, 0, Node::COPY_NODE );
CheckStatsTotal( 4, 1 );
}
}
开发者ID:ClxS,项目名称:fastbuild,代码行数:59,代码来源:TestCopy.cpp
示例2: testFileName
REGISTER_TESTS_END
// SingleCopyNode
//------------------------------------------------------------------------------
void TestCopy::SingleCopyNode() const
{
const AStackString<> testFileName( "Data/TestGraph/library.cpp" );
const AStackString<> testFileNameCopy( "../../../../tmp/Test/Graph/library.copynode.cpp" );
// check files are in expected states
EnsureFileExists( testFileName );
EnsureFileDoesNotExist( testFileNameCopy );
FBuildOptions options;
options.m_ShowSummary = true; // required to generate stats for node count checks
// Build
{
FBuild fb( options );
NodeGraph & ng = fb.GetDependencyGraph();
// make a fileNode for the source
FileNode * srcNode = ng.CreateFileNode( testFileName );
// and an ObjectNode for the output
Dependencies empty;
Node * dstNode = ng.CreateCopyNode( testFileNameCopy, srcNode, empty );
TEST_ASSERT( fb.Build( dstNode ) );
TEST_ASSERT( fb.SaveDependencyGraph( "../../../../tmp/Test/Graph/singlecopynode.fdb" ) );
EnsureFileExists( testFileNameCopy );
// Check stats
// Seen, Built, Type
CheckStatsNode ( 1, 1, Node::FILE_NODE );
CheckStatsNode ( 1, 1, Node::COPY_NODE );
CheckStatsTotal( 2, 2 );
}
// check no rebuild
{
FBuild fb( options );
fb.Initialize( "../../../../tmp/Test/Graph/singlecopynode.fdb" );
TEST_ASSERT( fb.Build( testFileNameCopy ) );
// Check stats
// Seen, Built, Type
CheckStatsNode ( 1, 1, Node::FILE_NODE );
CheckStatsNode ( 1, 0, Node::COPY_NODE );
CheckStatsTotal( 2, 1 );
}
}
开发者ID:ClxS,项目名称:fastbuild,代码行数:54,代码来源:TestCopy.cpp
示例3: fBuild
// TestTwoDLLs_NoUnnecessaryRelink
//------------------------------------------------------------------------------
void TestDLL::TestTwoDLLs_NoUnnecessaryRelink() const
{
// 1) Force DLL A to build
{
FBuildOptions options;
options.m_ConfigFile = "Data/TestDLL/fbuild.bff";
options.m_ShowSummary = true; // required to generate stats for node count checks
FBuild fBuild( options );
TEST_ASSERT( fBuild.Initialize( GetTwoDLLsDBFileName() ) );
const AStackString<> dllA( "../../../../tmp/Test/DLL/dllA.dll" );
// delete DLL A to have it relink (and regen the import lib)
EnsureFileDoesNotExist( dllA );
TEST_ASSERT( fBuild.Build( dllA ) );
TEST_ASSERT( fBuild.SaveDependencyGraph( GetTwoDLLsDBFileName() ) );
// Check stats to be sure one dll was built
// Seen, Built, Type
CheckStatsNode ( 3, 3, Node::FILE_NODE ); // 1 cpp files + 2 .h
CheckStatsNode ( 1, 0, Node::COMPILER_NODE );
CheckStatsNode ( 1, 0, Node::OBJECT_NODE );
CheckStatsNode ( 1, 0, Node::OBJECT_LIST_NODE );
CheckStatsNode ( 1, 1, Node::DLL_NODE );
CheckStatsTotal( 7, 4 );
}
// 2) Ensure DLL B does not relink
{
FBuildOptions options;
options.m_ConfigFile = "Data/TestDLL/fbuild.bff";
options.m_ShowSummary = true; // required to generate stats for node count checks
FBuild fBuild( options );
TEST_ASSERT( fBuild.Initialize( GetTwoDLLsDBFileName() ) );
// build again
const AStackString<> dllB( "../../../../tmp/Test/DLL/dllB.dll" );
TEST_ASSERT( fBuild.Build( dllB ) );
// Check stats to be sure nothing was built
// Seen, Built, Type
CheckStatsNode ( 5, 5, Node::FILE_NODE ); // 2 cpp files + 3 .h
CheckStatsNode ( 1, 0, Node::COMPILER_NODE );
CheckStatsNode ( 2, 0, Node::OBJECT_NODE );
CheckStatsNode ( 2, 0, Node::OBJECT_LIST_NODE );
CheckStatsNode ( 2, 0, Node::DLL_NODE );
CheckStatsTotal( 12, 5 );
}
}
开发者ID:ClxS,项目名称:fastbuild,代码行数:51,代码来源:TestDLL.cpp
示例4: fBuild
// Build
//------------------------------------------------------------------------------
void TestExe::Build() const
{
FBuildOptions options;
options.m_ConfigFile = "Data/TestExe/exe.bff";
options.m_ForceCleanBuild = true;
options.m_ShowSummary = true; // required to generate stats for node count checks
FBuild fBuild( options );
TEST_ASSERT( fBuild.Initialize() );
const AStackString<> exe( "../../../../tmp/Test/Exe/exe.exe" );
// clean up anything left over from previous runs
EnsureFileDoesNotExist( exe );
// build (via alias)
TEST_ASSERT( fBuild.Build( AStackString<>( "Exe" ) ) );
TEST_ASSERT( fBuild.SaveDependencyGraph( "../../../../tmp/Test/Exe/exe.fdb" ) );
// make sure all output is where it is expected
EnsureFileExists( exe );
// Check stats
// Seen, Built, Type
CheckStatsNode ( 1, 1, Node::FILE_NODE ); // cpp
CheckStatsNode ( 1, 1, Node::COMPILER_NODE );
CheckStatsNode ( 1, 1, Node::OBJECT_NODE );
CheckStatsNode ( 1, 1, Node::OBJECT_LIST_NODE );
CheckStatsNode ( 1, 1, Node::EXE_NODE );
CheckStatsNode ( 1, 1, Node::ALIAS_NODE );
CheckStatsTotal( 6, 6 );
}
开发者ID:Manuzor,项目名称:fastbuild,代码行数:33,代码来源:TestExe.cpp
示例5: fBuild
// REGISTER_TEST( TestMixedAssemblyWithCPP ) // TODO:A Enable
REGISTER_TESTS_END
// TestSingleFile
//------------------------------------------------------------------------------
void TestCSharp::TestSingleFile() const
{
FBuildTestOptions options;
options.m_ConfigFile = "Tools/FBuild/FBuildTest/Data/TestCSharp/csharp.bff";
options.m_ForceCleanBuild = true;
FBuild fBuild( options );
TEST_ASSERT( fBuild.Initialize() );
// delete files from previous runs
EnsureFileDoesNotExist( "../tmp/Test/CSharp/csharpsingle.dll" );
// Build it
TEST_ASSERT( fBuild.Build( AStackString<>( "CSharp-Single-Target" ) ) );
TEST_ASSERT( fBuild.SaveDependencyGraph( "../tmp/Test/CSharp/csharpsingle.fdb" ) );
// Test output file
EnsureFileExists( "../tmp/Test/CSharp/csharpsingle.dll" );
// Check stats
// Seen, Built, Type
CheckStatsNode ( 1, 1, Node::COMPILER_NODE );
CheckStatsNode ( 1, 1, Node::FILE_NODE ); // 1 cs file
CheckStatsNode ( 1, 1, Node::CS_NODE );
CheckStatsNode ( 1, 1, Node::ALIAS_NODE );
CheckStatsTotal( 4, 4 );
}
开发者ID:dummyunit,项目名称:fastbuild,代码行数:32,代码来源:TestCSharp.cpp
示例6: EnsureFileDoesNotExist
// TestCompile
//------------------------------------------------------------------------------
void TestUnity::TestCompile() const
{
FBuildOptions options;
options.m_ForceCleanBuild = true;
options.m_ShowSummary = true; // required to generate stats for node count checks
EnsureFileDoesNotExist( "../../../../tmp/Test/Unity/Unity.lib" );
FBuildStats stats = BuildCompile( options, false ); // don't use DB
EnsureFileExists( "../../../../tmp/Test/Unity/Unity.lib" );
// Check stats
// Seen, Built, Type
uint32_t numF = 9; // pch + 2x generated unity files + 6 source cpp files
#if defined( __WINDOWS__ )
numF++; // pch.cpp
#endif
CheckStatsNode ( stats, 1, 1, Node::DIRECTORY_LIST_NODE );
CheckStatsNode ( stats, 1, 1, Node::UNITY_NODE );
CheckStatsNode ( stats, numF, 3, Node::FILE_NODE ); // pch + 2x generated unity files built
CheckStatsNode ( stats, 1, 1, Node::COMPILER_NODE );
CheckStatsNode ( stats, 3, 3, Node::OBJECT_NODE );
CheckStatsNode ( stats, 1, 1, Node::LIBRARY_NODE );
CheckStatsNode ( stats, 1, 1, Node::ALIAS_NODE );
CheckStatsTotal( stats, 8+numF, 11 );
}
开发者ID:poppolopoppo,项目名称:fastbuild,代码行数:29,代码来源:TestUnity.cpp
示例7: unity1
// TestGenerate_NoRebuild
//------------------------------------------------------------------------------
void TestUnity::TestGenerate_NoRebuild() const
{
AStackString<> unity1( "../../../../tmp/Test/Unity/Unity1.cpp" );
AStackString<> unity2( "../../../../tmp/Test/Unity/Unity2.cpp" );
EnsureFileExists( unity1 );
EnsureFileExists( unity2 );
// Unity must be "built" every time, but it only writes files when they change
// so record the time before and after
uint64_t dateTime1 = FileIO::GetFileLastWriteTime( unity1 );
uint64_t dateTime2 = FileIO::GetFileLastWriteTime( unity2 );
// NTFS file resolution is 100ns, so sleep long enough to ensure
// an invalid write would modify the time
Thread::Sleep( 1 ); // 1ms
FBuildStats stats = BuildGenerate();
// Make sure files have not been changed
TEST_ASSERT( dateTime1 == FileIO::GetFileLastWriteTime( unity1 ) );
TEST_ASSERT( dateTime2 == FileIO::GetFileLastWriteTime( unity2 ) );
// Check stats
// Seen, Built, Type
CheckStatsNode ( stats, 1, 1, Node::DIRECTORY_LIST_NODE );
CheckStatsNode ( stats, 1, 1, Node::UNITY_NODE );
CheckStatsTotal( stats, 2, 2 );
}
开发者ID:poppolopoppo,项目名称:fastbuild,代码行数:31,代码来源:TestUnity.cpp
示例8: fBuild
// Build_CacheHit
//------------------------------------------------------------------------------
void TestCUDA::Build_CacheHit() const
{
FBuildOptions options;
options.m_ConfigFile = "Data/TestCUDA/cuda.bff";
options.m_UseCacheRead = true;
options.m_ShowSummary = true; // required to generate stats for node count checks
FBuild fBuild( options );
TEST_ASSERT( fBuild.Initialize( "../../../../tmp/Test/CUDA/cuda.fdb" ) );
const AStackString<> obj( "../../../../tmp/Test/CUDA/test.obj" );
// clean up anything left over from previous runs
EnsureFileDoesNotExist( obj );
// build (via alias)
TEST_ASSERT( fBuild.Build( AStackString<>( "CUDA-Obj" ) ) );
// make sure all output is where it is expected
EnsureFileExists( obj );
// Check stats
// Seen, Built, Type
CheckStatsNode ( 65, 65, Node::FILE_NODE ); // many included files
CheckStatsNode ( 1, 0, Node::COMPILER_NODE );
CheckStatsNode ( 1, 0, Node::OBJECT_NODE );
CheckStatsNode ( 1, 1, Node::OBJECT_LIST_NODE );
CheckStatsTotal( 68, 66 );
// Test we got a cache hit
const FBuildStats::Stats & objStats = fBuild.GetStats().GetStatsFor( Node::OBJECT_NODE );
TEST_ASSERT( objStats.m_NumCacheHits == 1 );
}
开发者ID:Manuzor,项目名称:fastbuild,代码行数:34,代码来源:TestCUDA.cpp
示例9: project
// TestFunction
//------------------------------------------------------------------------------
void TestProjectGeneration::TestFunction() const
{
AStackString<> project( "../../../../ftmp/Test/ProjectGeneration/testproj.vcxproj" );
AStackString<> solution( "../../../../ftmp/Test/ProjectGeneration/testsln.sln" );
AStackString<> filters( "../../../../ftmp/Test/ProjectGeneration/testproj.vcxproj.filters" );
EnsureFileDoesNotExist( project );
EnsureFileDoesNotExist( solution );
EnsureFileDoesNotExist( filters );
FBuildOptions options;
options.m_ConfigFile = "Data/TestProjectGeneration/fbuild.bff";
options.m_ForceCleanBuild = true;
options.m_ShowSummary = true; // required to generate stats for node count checks
FBuild fBuild( options );
TEST_ASSERT( fBuild.Initialize() );
TEST_ASSERT( fBuild.Build( AStackString<>( "TestSln" ) ) );
TEST_ASSERT( fBuild.SaveDependencyGraph( "../../../../ftmp/Test/ProjectGeneration/fbuild.fdb" ) );
EnsureFileExists( project );
EnsureFileExists( solution );
EnsureFileExists( filters );
// Check stats
// Seen, Built, Type
CheckStatsNode ( 1, 1, Node::DIRECTORY_LIST_NODE );
CheckStatsNode ( 1, 1, Node::VCXPROJECT_NODE );
CheckStatsNode ( 1, 1, Node::SLN_NODE );
CheckStatsNode ( 1, 1, Node::ALIAS_NODE );
CheckStatsTotal( 4, 4 );
}
开发者ID:scott-nelson,项目名称:fastbuild,代码行数:33,代码来源:TestProjectGeneration.cpp
示例10: obj
// TestPCHClangWithCache
//------------------------------------------------------------------------------
void TestPrecompiledHeaders::TestPCHClangWithCache() const
{
FBuildOptions options;
options.m_ConfigFile = "Data/TestPrecompiledHeaders/fbuild.bff";
options.m_ForceCleanBuild = true;
options.m_UseCacheRead = true;
options.m_ShowSummary = true; // required to generate stats for node count checks
AStackString<> obj( "../../../../ftmp/Test/PrecompiledHeaders/Clang/PCHUser.obj" );
AStackString<> pch( "../../../../ftmp/Test/PrecompiledHeaders/Clang/PrecompiledHeader.pch" );
EnsureFileDoesNotExist( obj );
EnsureFileDoesNotExist( pch );
FBuild fBuild( options );
TEST_ASSERT( fBuild.Initialize( nullptr ) );
AStackString<> target( "PCHTestClang" );
TEST_ASSERT( fBuild.Build( target ) );
TEST_ASSERT( fBuild.SaveDependencyGraph( GetPCHDBClangFileName() ) );
EnsureFileExists( obj );
EnsureFileExists( pch );
// Check stats
// Seen, Built, Type
CheckStatsNode ( 2, 2, Node::FILE_NODE ); // cpp + pch
CheckStatsNode ( 1, 1, Node::COMPILER_NODE );
CheckStatsNode ( 2, 0, Node::OBJECT_NODE );// obj + pch obj
CheckStatsNode ( 1, 1, Node::OBJECT_LIST_NODE );
CheckStatsTotal( 6, 4 );
// check we got both objects from the cache
TEST_ASSERT( fBuild.GetStats().GetStatsFor( Node::OBJECT_NODE ).m_NumCacheHits == 2 ); // pch & the obj using it
}
开发者ID:scott-nelson,项目名称:fastbuild,代码行数:37,代码来源:TestPrecompiledHeaders.cpp
示例11: fBuild
// TestMultipleFiles
//------------------------------------------------------------------------------
void TestCSharp::TestMultipleFiles() const
{
FBuildOptions options;
options.m_ConfigFile = "Data/TestCSharp/csharp.bff";
options.m_ForceCleanBuild = true;
options.m_ShowSummary = true; // required to generate stats for node count checks
FBuild fBuild( options );
TEST_ASSERT( fBuild.Initialize() );
// delete files from previous runs
EnsureFileDoesNotExist( "../../../../tmp/Test/CSharp/csharpmulti.dll" );
// Build it
TEST_ASSERT( fBuild.Build( AStackString<>( "CSharp-Multi-Target" ) ) );
TEST_ASSERT( fBuild.SaveDependencyGraph( "../../../../tmp/Test/CSharp/csharpmulti.fdb" ) );
// Test output files
EnsureFileExists( "../../../../tmp/Test/CSharp/csharpmulti.dll" );
// Check stats
// Seen, Built, Type
CheckStatsNode ( 3, 3, Node::FILE_NODE ); // 3x cs
CheckStatsNode ( 1, 1, Node::CS_NODE );
CheckStatsNode ( 1, 1, Node::ALIAS_NODE );
CheckStatsNode ( 1, 1, Node::DIRECTORY_LIST_NODE );
CheckStatsTotal( 6, 6 );
}
开发者ID:ClxS,项目名称:fastbuild,代码行数:30,代码来源:TestCSharp.cpp
示例12: fBuild
// TestMSVC_P
//------------------------------------------------------------------------------
void TestIncludeParser::TestMSVC_P() const
{
FBuildOptions options;
options.m_ShowSummary = true; // required to generate stats for node count checks
options.m_ConfigFile = "Data/TestIncludeParser/MSVC-P/fbuild.bff";
FBuild fBuild( options );
fBuild.Initialize();
const AStackString<> file( "../../../../tmp/Test/IncludeParser/MSVC-P/test.i" );
// clean up anything left over from previous runs
EnsureFileDoesNotExist( file );
// Build
TEST_ASSERT( fBuild.Build( AStackString<>( "MSVC-P" ) ) );
// make sure all output files are as expected
EnsureFileExists( file );
// Check stats
// Seen, Built, Type
CheckStatsNode ( 1, 1, Node::OBJECT_LIST_NODE );
CheckStatsNode ( 1, 1, Node::FILE_NODE );
CheckStatsNode ( 1, 1, Node::COMPILER_NODE );
CheckStatsNode ( 1, 1, Node::OBJECT_NODE );
CheckStatsTotal( 4, 4 );
}
开发者ID:dontnod,项目名称:fastbuild,代码行数:30,代码来源:TestIncludeParser.cpp
示例13: fBuild
// TestCopyFunction_FileToFile
//------------------------------------------------------------------------------
void TestCopy::TestCopyFunction_FileToFile() const
{
FBuildOptions options;
options.m_ConfigFile = "Data/TestCopy/copy.bff";
options.m_ShowSummary = true; // required to generate stats for node count checks
FBuild fBuild( options );
TEST_ASSERT( fBuild.Initialize() );
AStackString<> dst( "../../../../tmp/Test/Copy/copy.bff.copy" );
// clean up anything left over from previous runs
EnsureFileDoesNotExist( dst );
// build (via alias)
TEST_ASSERT( fBuild.Build( AStackString<>( "TestCopyFileToFile" ) ) );
TEST_ASSERT( fBuild.SaveDependencyGraph( "../../../../tmp/Test/Copy/filetofile.fdb" ) );
// make sure all output is where it is expected
EnsureFileExists( dst );
// Check stats
// Seen, Built, Type
CheckStatsNode ( 1, 1, Node::FILE_NODE );
CheckStatsNode ( 1, 1, Node::COPY_NODE );
CheckStatsNode ( 1, 1, Node::ALIAS_NODE );
CheckStatsTotal( 3, 3 );
}
开发者ID:ClxS,项目名称:fastbuild,代码行数:29,代码来源:TestCopy.cpp
示例14: fBuild
// TestLibMerge
//------------------------------------------------------------------------------
void TestBuildAndLinkLibrary::TestLibMerge() const
{
FBuildOptions options;
options.m_ForceCleanBuild = true;
options.m_ShowSummary = true; // required to generate stats for node count checks
options.m_ConfigFile = "Data/TestBuildAndLinkLibrary/fbuild.bff";
FBuild fBuild( options );
TEST_ASSERT( fBuild.Initialize() );
const AStackString<> lib( "../../../../tmp/Test/BuildAndLinkLibrary/merged.lib" );
// clean up anything left over from previous runs
EnsureFileDoesNotExist( lib );
// Build
TEST_ASSERT( fBuild.Build( lib ) );
TEST_ASSERT( fBuild.SaveDependencyGraph( GetMergeLibDBFileName() ) );
// make sure all output files are as expected
EnsureFileExists( lib );
// Check stats
// Seen, Built, Type
CheckStatsNode ( 7, 4, Node::FILE_NODE ); // 3x .cpp + 3x .h + librarian
CheckStatsNode ( 1, 1, Node::COMPILER_NODE );
CheckStatsNode ( 1, 1, Node::OBJECT_LIST_NODE );
CheckStatsNode ( 3, 3, Node::OBJECT_NODE );
CheckStatsNode ( 3, 3, Node::LIBRARY_NODE ); // 2 libs + merge lib
CheckStatsTotal( 15, 12 );
}
开发者ID:liamkf,项目名称:fastbuild,代码行数:33,代码来源:TestBuildAndLinkLibrary.cpp
示例15: Build
// TestPCHWithCache_NoRebuild
//------------------------------------------------------------------------------
void TestPrecompiledHeaders::TestPCHWithCache_NoRebuild() const
{
FBuildStats stats = Build();
// Check stats
// Seen, Built, Type
CheckStatsNode ( stats, 3, 3, Node::FILE_NODE ); // cpp + pch cpp + pch .h
CheckStatsNode ( stats, 1, 0, Node::COMPILER_NODE );
CheckStatsNode ( stats, 2, 0, Node::OBJECT_NODE );// obj + pch obj
CheckStatsNode ( stats, 1, 0, Node::LIBRARY_NODE );
CheckStatsNode ( stats, 1, 1, Node::DIRECTORY_LIST_NODE );
CheckStatsNode ( stats, 1, 1, Node::ALIAS_NODE );
CheckStatsNode ( stats, 1, 0, Node::DLL_NODE );
CheckStatsTotal( stats, 10, 5 );
}
开发者ID:scott-nelson,项目名称:fastbuild,代码行数:17,代码来源:TestPrecompiledHeaders.cpp
示例16: Build
// Test_NoBuild
//------------------------------------------------------------------------------
void TestCLR::Test_NoBuild() const
{
FBuildOptions options;
options.m_ShowSummary = true; // required to generate stats for node count checks
FBuildStats stats = Build( options, true, "CLR-Target" );
// Check stats
// Seen, Built, Type
CheckStatsNode ( stats, 3, 3, Node::FILE_NODE ); // cpp + h + mscorlib
CheckStatsNode ( stats, 1, 0, Node::COMPILER_NODE );
CheckStatsNode ( stats, 1, 0, Node::OBJECT_NODE );
CheckStatsNode ( stats, 1, 0, Node::LIBRARY_NODE );
CheckStatsNode ( stats, 1, 1, Node::ALIAS_NODE );
CheckStatsTotal( stats, 7, 4 );
}
开发者ID:Samana,项目名称:fastbuild,代码行数:17,代码来源:TestCLR.cpp
示例17: BuildCompile
// TestCompile_NoRebuild
//------------------------------------------------------------------------------
void TestUnity::TestCompile_NoRebuild() const
{
FBuildStats stats = BuildCompile();
// Check stats
// Seen, Built, Type
CheckStatsNode ( stats, 1, 1, Node::DIRECTORY_LIST_NODE );
CheckStatsNode ( stats, 1, 1, Node::UNITY_NODE );
CheckStatsNode ( stats, 10, 10, Node::FILE_NODE ); // pch + 2x generated unity files + 6 source cpp files
CheckStatsNode ( stats, 1, 0, Node::COMPILER_NODE );
CheckStatsNode ( stats, 3, 0, Node::OBJECT_NODE );
CheckStatsNode ( stats, 1, 0, Node::LIBRARY_NODE );
CheckStatsNode ( stats, 1, 1, Node::ALIAS_NODE );
CheckStatsTotal( stats, 18, 13 );
}
开发者ID:scott-nelson,项目名称:fastbuild,代码行数:17,代码来源:TestUnity.cpp
示例18: fBuild
// TestGenerateFromExplicitList
//------------------------------------------------------------------------------
void TestUnity::TestGenerateFromExplicitList() const
{
FBuildOptions options;
options.m_ConfigFile = "Data/TestUnity/unity.bff";
options.m_ShowSummary = true; // required to generate stats for node count checks
FBuild fBuild( options );
TEST_ASSERT( fBuild.Initialize() );
TEST_ASSERT( fBuild.Build( AStackString<>( "Unity-Explicit-Files" ) ) );
// Check stats
// Seen, Built, Type
CheckStatsNode ( 1, 1, Node::UNITY_NODE );
CheckStatsTotal( 4, 4 );
}
开发者ID:poppolopoppo,项目名称:fastbuild,代码行数:18,代码来源:TestUnity.cpp
注:本文中的CheckStatsTotal函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论