Ninja
Classes | Functions
build_test.cc File Reference
#include "build.h"
#include <assert.h>
#include "build_log.h"
#include "deps_log.h"
#include "graph.h"
#include "test.h"
Include dependency graph for build_test.cc:

Go to the source code of this file.

Classes

struct  BuildDryRun
 
struct  BuildTest
 
struct  BuildWithDepsLogTest
 Tests of builds involving deps logs necessarily must span multiple builds. More...
 
struct  BuildWithLogTest
 
struct  BuildWithQueryDepsLogTest
 
struct  CompareEdgesByOutput
 
struct  FakeCommandRunner
 Fake implementation of CommandRunner, useful for tests. More...
 
struct  PlanTest
 Fixture for tests involving Plan. More...
 

Functions

 TEST_F (PlanTest, Basic)
 
 TEST_F (PlanTest, DoubleOutputDirect)
 
 TEST_F (PlanTest, DoubleOutputIndirect)
 
 TEST_F (PlanTest, DoubleDependent)
 
 TEST_F (PlanTest, PoolWithDepthOne)
 
 TEST_F (PlanTest, ConsolePool)
 
 TEST_F (PlanTest, PoolsWithDepthTwo)
 
 TEST_F (PlanTest, PoolWithRedundantEdges)
 
 TEST_F (PlanTest, PoolWithFailingEdge)
 
 TEST_F (BuildTest, NoWork)
 
 TEST_F (BuildTest, OneStep)
 
 TEST_F (BuildTest, OneStep2)
 
 TEST_F (BuildTest, TwoStep)
 
 TEST_F (BuildTest, TwoOutputs)
 
 TEST_F (BuildTest, ImplicitOutput)
 
 TEST_F (BuildTest, MultiOutIn)
 
 TEST_F (BuildTest, Chain)
 
 TEST_F (BuildTest, MissingInput)
 
 TEST_F (BuildTest, MissingTarget)
 
 TEST_F (BuildTest, MakeDirs)
 
 TEST_F (BuildTest, DepFileMissing)
 
 TEST_F (BuildTest, DepFileOK)
 
 TEST_F (BuildTest, DepFileParseError)
 
 TEST_F (BuildTest, EncounterReadyTwice)
 
 TEST_F (BuildTest, OrderOnlyDeps)
 
 TEST_F (BuildTest, RebuildOrderOnlyDeps)
 
 TEST_F (BuildTest, Phony)
 
 TEST_F (BuildTest, PhonyNoWork)
 
 TEST_F (BuildTest, PhonySelfReference)
 
 TEST_F (BuildTest, Fail)
 
 TEST_F (BuildTest, SwallowFailures)
 
 TEST_F (BuildTest, SwallowFailuresLimit)
 
 TEST_F (BuildTest, SwallowFailuresPool)
 
 TEST_F (BuildTest, PoolEdgesReadyButNotWanted)
 
 TEST_F (BuildWithLogTest, NotInLogButOnDisk)
 
 TEST_F (BuildWithLogTest, RebuildAfterFailure)
 
 TEST_F (BuildWithLogTest, RebuildWithNoInputs)
 
 TEST_F (BuildWithLogTest, RestatTest)
 
 TEST_F (BuildWithLogTest, RestatMissingFile)
 
 TEST_F (BuildWithLogTest, RestatSingleDependentOutputDirty)
 
 TEST_F (BuildWithLogTest, RestatMissingInput)
 
 TEST_F (BuildDryRun, AllCommandsShown)
 
 TEST_F (BuildTest, RspFileSuccess)
 
 TEST_F (BuildTest, RspFileFailure)
 
 TEST_F (BuildWithLogTest, RspFileCmdLineChange)
 
 TEST_F (BuildTest, InterruptCleanup)
 
 TEST_F (BuildTest, StatFailureAbortsBuild)
 
 TEST_F (BuildTest, PhonyWithNoInputs)
 
 TEST_F (BuildTest, DepsGccWithEmptyDepfileErrorsOut)
 
 TEST_F (BuildTest, StatusFormatElapsed)
 
 TEST_F (BuildTest, StatusFormatReplacePlaceholder)
 
 TEST_F (BuildTest, FailedDepsParse)
 
 TEST_F (BuildWithQueryDepsLogTest, TwoOutputsDepFileMSVC)
 Test a MSVC-style deps log with multiple outputs. More...
 
 TEST_F (BuildWithQueryDepsLogTest, TwoOutputsDepFileGCCOneLine)
 Test a GCC-style deps log with multiple outputs. More...
 
 TEST_F (BuildWithQueryDepsLogTest, TwoOutputsDepFileGCCMultiLineInput)
 Test a GCC-style deps log with multiple outputs using a line per input. More...
 
 TEST_F (BuildWithQueryDepsLogTest, TwoOutputsDepFileGCCMultiLineOutput)
 Test a GCC-style deps log with multiple outputs using a line per output. More...
 
 TEST_F (BuildWithQueryDepsLogTest, TwoOutputsDepFileGCCOnlyMainOutput)
 Test a GCC-style deps log with multiple outputs mentioning only the main output. More...
 
 TEST_F (BuildWithQueryDepsLogTest, TwoOutputsDepFileGCCOnlySecondaryOutput)
 Test a GCC-style deps log with multiple outputs mentioning only the secondary output. More...
 
 TEST_F (BuildWithDepsLogTest, Straightforward)
 Run a straightforwad build where the deps log is used. More...
 
 TEST_F (BuildWithDepsLogTest, ObsoleteDeps)
 Verify that obsolete dependency info causes a rebuild. More...
 
 TEST_F (BuildWithDepsLogTest, DepsIgnoredInDryRun)
 
 TEST_F (BuildTest, RestatDepfileDependency)
 Check that a restat rule generating a header cancels compilations correctly. More...
 
 TEST_F (BuildWithDepsLogTest, RestatDepfileDependencyDepsLog)
 Check that a restat rule generating a header cancels compilations correctly, depslog case. More...
 
 TEST_F (BuildWithDepsLogTest, DepFileOKDepsLog)
 
 TEST_F (BuildTest, RestatMissingDepfile)
 Check that a restat rule doesn't clear an edge if the depfile is missing. More...
 
 TEST_F (BuildWithDepsLogTest, RestatMissingDepfileDepslog)
 Check that a restat rule doesn't clear an edge if the deps are missing. More...
 
 TEST_F (BuildTest, WrongOutputInDepfileCausesRebuild)
 
 TEST_F (BuildTest, Console)
 
 TEST_F (BuildTest, DyndepMissingAndNoRule)
 
 TEST_F (BuildTest, DyndepReadyImplicitConnection)
 
 TEST_F (BuildTest, DyndepReadySyntaxError)
 
 TEST_F (BuildTest, DyndepReadyCircular)
 
 TEST_F (BuildTest, DyndepBuild)
 
 TEST_F (BuildTest, DyndepBuildSyntaxError)
 
 TEST_F (BuildTest, DyndepBuildUnrelatedOutput)
 
 TEST_F (BuildTest, DyndepBuildDiscoverNewOutput)
 
 TEST_F (BuildTest, DyndepBuildDiscoverNewOutputWithMultipleRules1)
 
 TEST_F (BuildTest, DyndepBuildDiscoverNewOutputWithMultipleRules2)
 
 TEST_F (BuildTest, DyndepBuildDiscoverNewInput)
 
 TEST_F (BuildTest, DyndepBuildDiscoverImplicitConnection)
 
 TEST_F (BuildTest, DyndepBuildDiscoverNowWantEdge)
 
 TEST_F (BuildTest, DyndepBuildDiscoverNowWantEdgeAndDependent)
 
 TEST_F (BuildTest, DyndepBuildDiscoverCircular)
 
 TEST_F (BuildWithLogTest, DyndepBuildDiscoverRestat)
 
 TEST_F (BuildTest, DyndepBuildDiscoverScheduledEdge)
 
 TEST_F (BuildTest, DyndepTwoLevelDirect)
 
 TEST_F (BuildTest, DyndepTwoLevelIndirect)
 
 TEST_F (BuildTest, DyndepTwoLevelDiscoveredReady)
 
 TEST_F (BuildTest, DyndepTwoLevelDiscoveredDirty)
 

Function Documentation

◆ TEST_F() [1/89]

TEST_F ( PlanTest  ,
Basic   
)

◆ TEST_F() [2/89]

TEST_F ( PlanTest  ,
DoubleOutputDirect   
)

◆ TEST_F() [3/89]

TEST_F ( PlanTest  ,
DoubleOutputIndirect   
)

◆ TEST_F() [4/89]

TEST_F ( PlanTest  ,
DoubleDependent   
)

◆ TEST_F() [5/89]

TEST_F ( PlanTest  ,
PoolWithDepthOne   
)

Definition at line 239 of file build_test.cc.

◆ TEST_F() [6/89]

TEST_F ( PlanTest  ,
ConsolePool   
)

Definition at line 250 of file build_test.cc.

◆ TEST_F() [7/89]

TEST_F ( PlanTest  ,
PoolsWithDepthTwo   
)

◆ TEST_F() [8/89]

TEST_F ( PlanTest  ,
PoolWithRedundantEdges   
)

◆ TEST_F() [9/89]

TEST_F ( PlanTest  ,
PoolWithFailingEdge   
)

◆ TEST_F() [10/89]

TEST_F ( BuildTest  ,
NoWork   
)

Definition at line 707 of file build_test.cc.

References EXPECT_TRUE.

◆ TEST_F() [11/89]

TEST_F ( BuildTest  ,
OneStep   
)

Definition at line 712 of file build_test.cc.

References ASSERT_EQ, EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [12/89]

TEST_F ( BuildTest  ,
OneStep2   
)

Definition at line 726 of file build_test.cc.

References ASSERT_EQ, EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [13/89]

TEST_F ( BuildTest  ,
TwoStep   
)

Definition at line 740 of file build_test.cc.

References ASSERT_EQ, EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [14/89]

TEST_F ( BuildTest  ,
TwoOutputs   
)

Definition at line 771 of file build_test.cc.

References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [15/89]

TEST_F ( BuildTest  ,
ImplicitOutput   
)

Definition at line 788 of file build_test.cc.

References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [16/89]

TEST_F ( BuildTest  ,
MultiOutIn   
)

Definition at line 806 of file build_test.cc.

References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [17/89]

TEST_F ( BuildTest  ,
Chain   
)

◆ TEST_F() [18/89]

TEST_F ( BuildTest  ,
MissingInput   
)

Definition at line 860 of file build_test.cc.

References EXPECT_EQ, and EXPECT_FALSE.

◆ TEST_F() [19/89]

TEST_F ( BuildTest  ,
MissingTarget   
)

Definition at line 869 of file build_test.cc.

References EXPECT_EQ, and EXPECT_FALSE.

◆ TEST_F() [20/89]

TEST_F ( BuildTest  ,
MakeDirs   
)

Definition at line 876 of file build_test.cc.

References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [21/89]

TEST_F ( BuildTest  ,
DepFileMissing   
)

Definition at line 896 of file build_test.cc.

References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [22/89]

TEST_F ( BuildTest  ,
DepFileOK   
)

◆ TEST_F() [23/89]

TEST_F ( BuildTest  ,
DepFileParseError   
)

Definition at line 935 of file build_test.cc.

References ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_EQ, and EXPECT_FALSE.

◆ TEST_F() [24/89]

TEST_F ( BuildTest  ,
EncounterReadyTwice   
)

Definition at line 946 of file build_test.cc.

References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [25/89]

TEST_F ( BuildTest  ,
OrderOnlyDeps   
)

◆ TEST_F() [26/89]

TEST_F ( BuildTest  ,
RebuildOrderOnlyDeps   
)

Definition at line 1039 of file build_test.cc.

References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [27/89]

TEST_F ( BuildTest  ,
Phony   
)

◆ TEST_F() [28/89]

TEST_F ( BuildTest  ,
PhonyNoWork   
)

Definition at line 1135 of file build_test.cc.

References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), and EXPECT_TRUE.

◆ TEST_F() [29/89]

TEST_F ( BuildTest  ,
PhonySelfReference   
)

Definition at line 1151 of file build_test.cc.

References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), and EXPECT_TRUE.

◆ TEST_F() [30/89]

TEST_F ( BuildTest  ,
Fail   
)

◆ TEST_F() [31/89]

TEST_F ( BuildTest  ,
SwallowFailures   
)

◆ TEST_F() [32/89]

TEST_F ( BuildTest  ,
SwallowFailuresLimit   
)

◆ TEST_F() [33/89]

TEST_F ( BuildTest  ,
SwallowFailuresPool   
)

◆ TEST_F() [34/89]

TEST_F ( BuildTest  ,
PoolEdgesReadyButNotWanted   
)

Definition at line 1242 of file build_test.cc.

References Pool::current_use(), EXPECT_GE, and State::LookupPool().

◆ TEST_F() [35/89]

TEST_F ( BuildWithLogTest  ,
NotInLogButOnDisk   
)

Definition at line 1275 of file build_test.cc.

References ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_FALSE, and EXPECT_TRUE.

◆ TEST_F() [36/89]

TEST_F ( BuildWithLogTest  ,
RebuildAfterFailure   
)

◆ TEST_F() [37/89]

TEST_F ( BuildWithLogTest  ,
RebuildWithNoInputs   
)

Definition at line 1345 of file build_test.cc.

References ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [38/89]

TEST_F ( BuildWithLogTest  ,
RestatTest   
)

◆ TEST_F() [39/89]

TEST_F ( BuildWithLogTest  ,
RestatMissingFile   
)

Definition at line 1441 of file build_test.cc.

References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), and EXPECT_TRUE.

◆ TEST_F() [40/89]

TEST_F ( BuildWithLogTest  ,
RestatSingleDependentOutputDirty   
)

Definition at line 1482 of file build_test.cc.

References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), and EXPECT_TRUE.

◆ TEST_F() [41/89]

TEST_F ( BuildWithLogTest  ,
RestatMissingInput   
)

Definition at line 1524 of file build_test.cc.

References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, ASSERT_TRUE, AssertParse(), and EXPECT_TRUE.

◆ TEST_F() [42/89]

TEST_F ( BuildDryRun  ,
AllCommandsShown   
)

Definition at line 1582 of file build_test.cc.

References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), and EXPECT_TRUE.

◆ TEST_F() [43/89]

TEST_F ( BuildTest  ,
RspFileSuccess   
)

Definition at line 1613 of file build_test.cc.

References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), and EXPECT_TRUE.

◆ TEST_F() [44/89]

TEST_F ( BuildTest  ,
RspFileFailure   
)

◆ TEST_F() [45/89]

TEST_F ( BuildWithLogTest  ,
RspFileCmdLineChange   
)

◆ TEST_F() [46/89]

TEST_F ( BuildTest  ,
InterruptCleanup   
)

◆ TEST_F() [47/89]

TEST_F ( BuildTest  ,
StatFailureAbortsBuild   
)

Definition at line 1784 of file build_test.cc.

References ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_EQ, and EXPECT_FALSE.

◆ TEST_F() [48/89]

TEST_F ( BuildTest  ,
PhonyWithNoInputs   
)

Definition at line 1799 of file build_test.cc.

References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [49/89]

TEST_F ( BuildTest  ,
DepsGccWithEmptyDepfileErrorsOut   
)

◆ TEST_F() [50/89]

TEST_F ( BuildTest  ,
StatusFormatElapsed   
)

Definition at line 1843 of file build_test.cc.

References EXPECT_EQ, and BuildStatus::kEdgeStarted.

◆ TEST_F() [51/89]

TEST_F ( BuildTest  ,
StatusFormatReplacePlaceholder   
)

Definition at line 1851 of file build_test.cc.

References EXPECT_EQ, and BuildStatus::kEdgeStarted.

◆ TEST_F() [52/89]

TEST_F ( BuildTest  ,
FailedDepsParse   
)

◆ TEST_F() [53/89]

TEST_F ( BuildWithQueryDepsLogTest  ,
TwoOutputsDepFileMSVC   
)

Test a MSVC-style deps log with multiple outputs.

Definition at line 1899 of file build_test.cc.

References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_EQ, EXPECT_TRUE, DepsLog::Deps::node_count, DepsLog::Deps::nodes, and Node::path().

◆ TEST_F() [54/89]

TEST_F ( BuildWithQueryDepsLogTest  ,
TwoOutputsDepFileGCCOneLine   
)

Test a GCC-style deps log with multiple outputs.

Definition at line 1927 of file build_test.cc.

References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_EQ, EXPECT_TRUE, DepsLog::Deps::node_count, DepsLog::Deps::nodes, and Node::path().

◆ TEST_F() [55/89]

TEST_F ( BuildWithQueryDepsLogTest  ,
TwoOutputsDepFileGCCMultiLineInput   
)

Test a GCC-style deps log with multiple outputs using a line per input.

Definition at line 1958 of file build_test.cc.

References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_EQ, EXPECT_TRUE, DepsLog::Deps::node_count, DepsLog::Deps::nodes, and Node::path().

◆ TEST_F() [56/89]

TEST_F ( BuildWithQueryDepsLogTest  ,
TwoOutputsDepFileGCCMultiLineOutput   
)

Test a GCC-style deps log with multiple outputs using a line per output.

Definition at line 1989 of file build_test.cc.

References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_EQ, EXPECT_TRUE, DepsLog::Deps::node_count, DepsLog::Deps::nodes, and Node::path().

◆ TEST_F() [57/89]

TEST_F ( BuildWithQueryDepsLogTest  ,
TwoOutputsDepFileGCCOnlyMainOutput   
)

Test a GCC-style deps log with multiple outputs mentioning only the main output.

Definition at line 2020 of file build_test.cc.

References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_EQ, EXPECT_TRUE, DepsLog::Deps::node_count, DepsLog::Deps::nodes, and Node::path().

◆ TEST_F() [58/89]

TEST_F ( BuildWithQueryDepsLogTest  ,
TwoOutputsDepFileGCCOnlySecondaryOutput   
)

Test a GCC-style deps log with multiple outputs mentioning only the secondary output.

Definition at line 2051 of file build_test.cc.

References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_EQ, EXPECT_TRUE, DepsLog::Deps::node_count, DepsLog::Deps::nodes, and Node::path().

◆ TEST_F() [59/89]

TEST_F ( BuildWithDepsLogTest  ,
Straightforward   
)

◆ TEST_F() [60/89]

TEST_F ( BuildWithDepsLogTest  ,
ObsoleteDeps   
)

Verify that obsolete dependency info causes a rebuild.

1) Run a successful build where everything has time t, record deps. 2) Move input/output to time t+1 – despite files in alignment, should still need to rebuild due to deps at older time.

Definition at line 2174 of file build_test.cc.

References Builder::AddTarget(), ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, ASSERT_TRUE, AssertParse(), Builder::Build(), DepsLog::Close(), Builder::command_runner_, EXPECT_EQ, EXPECT_TRUE, DepsLog::Load(), and DepsLog::OpenForWrite().

◆ TEST_F() [61/89]

TEST_F ( BuildWithDepsLogTest  ,
DepsIgnoredInDryRun   
)

◆ TEST_F() [62/89]

TEST_F ( BuildTest  ,
RestatDepfileDependency   
)

Check that a restat rule generating a header cancels compilations correctly.

Definition at line 2274 of file build_test.cc.

References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [63/89]

TEST_F ( BuildWithDepsLogTest  ,
RestatDepfileDependencyDepsLog   
)

Check that a restat rule generating a header cancels compilations correctly, depslog case.

Definition at line 2297 of file build_test.cc.

References Builder::AddTarget(), ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, ASSERT_TRUE, AssertParse(), Builder::Build(), DepsLog::Close(), Builder::command_runner_, EXPECT_EQ, EXPECT_TRUE, DepsLog::Load(), and DepsLog::OpenForWrite().

◆ TEST_F() [64/89]

TEST_F ( BuildWithDepsLogTest  ,
DepFileOKDepsLog   
)

◆ TEST_F() [65/89]

TEST_F ( BuildTest  ,
RestatMissingDepfile   
)

Check that a restat rule doesn't clear an edge if the depfile is missing.

Follows from: https://github.com/ninja-build/ninja/issues/603

Definition at line 2489 of file build_test.cc.

References ASSERT_EQ.

◆ TEST_F() [66/89]

TEST_F ( BuildWithDepsLogTest  ,
RestatMissingDepfileDepslog   
)

Check that a restat rule doesn't clear an edge if the deps are missing.

https://github.com/ninja-build/ninja/issues/603

Definition at line 2513 of file build_test.cc.

References ASSERT_EQ.

◆ TEST_F() [67/89]

TEST_F ( BuildTest  ,
WrongOutputInDepfileCausesRebuild   
)

Definition at line 2563 of file build_test.cc.

References ASSERT_EQ.

◆ TEST_F() [68/89]

TEST_F ( BuildTest  ,
Console   
)

Definition at line 2580 of file build_test.cc.

References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [69/89]

TEST_F ( BuildTest  ,
DyndepMissingAndNoRule   
)

Definition at line 2597 of file build_test.cc.

References ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_EQ, and EXPECT_FALSE.

◆ TEST_F() [70/89]

TEST_F ( BuildTest  ,
DyndepReadyImplicitConnection   
)

Definition at line 2612 of file build_test.cc.

References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [71/89]

TEST_F ( BuildTest  ,
DyndepReadySyntaxError   
)

Definition at line 2640 of file build_test.cc.

References ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_EQ, and EXPECT_FALSE.

◆ TEST_F() [72/89]

TEST_F ( BuildTest  ,
DyndepReadyCircular   
)

Definition at line 2658 of file build_test.cc.

References ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_EQ, and EXPECT_FALSE.

◆ TEST_F() [73/89]

TEST_F ( BuildTest  ,
DyndepBuild   
)

Definition at line 2679 of file build_test.cc.

References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [74/89]

TEST_F ( BuildTest  ,
DyndepBuildSyntaxError   
)

◆ TEST_F() [75/89]

TEST_F ( BuildTest  ,
DyndepBuildUnrelatedOutput   
)

Definition at line 2738 of file build_test.cc.

References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [76/89]

TEST_F ( BuildTest  ,
DyndepBuildDiscoverNewOutput   
)

Definition at line 2770 of file build_test.cc.

References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [77/89]

TEST_F ( BuildTest  ,
DyndepBuildDiscoverNewOutputWithMultipleRules1   
)

◆ TEST_F() [78/89]

TEST_F ( BuildTest  ,
DyndepBuildDiscoverNewOutputWithMultipleRules2   
)

◆ TEST_F() [79/89]

TEST_F ( BuildTest  ,
DyndepBuildDiscoverNewInput   
)

Definition at line 2872 of file build_test.cc.

References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [80/89]

TEST_F ( BuildTest  ,
DyndepBuildDiscoverImplicitConnection   
)

Definition at line 2904 of file build_test.cc.

References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [81/89]

TEST_F ( BuildTest  ,
DyndepBuildDiscoverNowWantEdge   
)

Definition at line 2936 of file build_test.cc.

References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [82/89]

TEST_F ( BuildTest  ,
DyndepBuildDiscoverNowWantEdgeAndDependent   
)

Definition at line 2969 of file build_test.cc.

References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [83/89]

TEST_F ( BuildTest  ,
DyndepBuildDiscoverCircular   
)

◆ TEST_F() [84/89]

TEST_F ( BuildWithLogTest  ,
DyndepBuildDiscoverRestat   
)

Definition at line 3034 of file build_test.cc.

References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [85/89]

TEST_F ( BuildTest  ,
DyndepBuildDiscoverScheduledEdge   
)

Definition at line 3084 of file build_test.cc.

References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [86/89]

TEST_F ( BuildTest  ,
DyndepTwoLevelDirect   
)

Definition at line 3132 of file build_test.cc.

References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [87/89]

TEST_F ( BuildTest  ,
DyndepTwoLevelIndirect   
)

Definition at line 3179 of file build_test.cc.

References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [88/89]

TEST_F ( BuildTest  ,
DyndepTwoLevelDiscoveredReady   
)

Definition at line 3224 of file build_test.cc.

References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_EQ, and EXPECT_TRUE.

◆ TEST_F() [89/89]

TEST_F ( BuildTest  ,
DyndepTwoLevelDiscoveredDirty   
)

Definition at line 3265 of file build_test.cc.

References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_EQ, and EXPECT_TRUE.