|
Ninja
|
Tests of builds involving deps logs necessarily must span multiple builds. More...

Public Member Functions | |
| void | AddCatRule (State *state) |
| Add a "cat" rule to state. | |
| BuildWithDepsLogTest () | |
| void | Dirty (const string &path) |
| Node * | GetNode (const std::string &path) |
| Short way to get a Node by its path from state_. | |
| virtual bool | IsPathDead (StringPiece s) const |
| Return if a given output is no longer part of the build manifest. | |
| BuildConfig | MakeConfig () |
| void | RebuildTarget (const string &target, const char *manifest, const char *log_path=NULL, const char *deps_path=NULL, State *state=NULL) |
| Rebuild target in the 'working tree' (fs_). | |
| virtual void | SetUp () |
| virtual void | TearDown () |
Public Attributes | |
| ScopedFilePath | build_log_file_ |
| void * | builder_ |
| Shadow parent class builder_ so we don't accidentally use it. | |
| FakeCommandRunner | command_runner_ |
| BuildConfig | config_ |
| ScopedFilePath | deps_log_file_ |
| VirtualFileSystem | fs_ |
| State | state_ |
| StatusPrinter | status_ |
| ScopedTempDir | temp_dir_ |
Tests of builds involving deps logs necessarily must span multiple builds.
We reuse methods on BuildTest but not the builder_ it sets up, because we want pristine objects for each build.
Definition at line 2545 of file build_test.cc.
|
inline |
Definition at line 2546 of file build_test.cc.
References build_log_file_, and deps_log_file_.
|
inherited |
Add a "cat" rule to state.
Used by some tests; it's otherwise done by the ctor to state_.
Definition at line 89 of file test.cc.
References AssertParse().
Referenced by BuildTest::RebuildTarget(), and StateTestWithBuiltinRules().
|
inherited |
Definition at line 805 of file build_test.cc.
References StateTestWithBuiltinRules::GetNode(), Node::in_edge(), Node::MarkDirty(), and Node::MarkMissing().
|
inherited |
Short way to get a Node by its path from state_.
Definition at line 95 of file test.cc.
References state_.
Referenced by BuildTest::Dirty(), PlanTest::PrepareForTarget(), TestPhonyUseCase(), and PlanTest::TestPoolWithDepthOne().
|
inlinevirtualinherited |
Return if a given output is no longer part of the build manifest.
This is only called during recompaction and doesn't have to be fast.
Implements BuildLogUser.
Definition at line 563 of file build_test.cc.
|
inlineinherited |
Definition at line 575 of file build_test.cc.
References BuildConfig::QUIET, and BuildConfig::verbosity.
Referenced by BuildTest(), and BuildTest().
|
inherited |
Rebuild target in the 'working tree' (fs_).
State of command_runner_ and logs contents (if specified) ARE MODIFIED. Handy to check for NOOP builds, and higher-level rebuild tests.
Definition at line 588 of file build_test.cc.
References StateTestWithBuiltinRules::AddCatRule(), Builder::AddTarget(), Builder::AlreadyUpToDate(), AssertParse(), Builder::Build(), Builder::command_runner_, command_runner_, config_, ExitSuccess, fs_, BuildLog::Load(), DepsLog::Load(), BuildLog::OpenForWrite(), DepsLog::OpenForWrite(), and status_.
|
inlinevirtual |
Reimplemented from BuildTest.
Definition at line 2549 of file build_test.cc.
References BuildTest::SetUp(), and temp_dir_.
|
inlinevirtual |
Definition at line 2555 of file build_test.cc.
References temp_dir_.
| ScopedFilePath BuildWithDepsLogTest::build_log_file_ |
Definition at line 2560 of file build_test.cc.
Referenced by BuildWithDepsLogTest().
| void* BuildWithDepsLogTest::builder_ |
Shadow parent class builder_ so we don't accidentally use it.
Definition at line 2564 of file build_test.cc.
|
inherited |
Definition at line 582 of file build_test.cc.
Referenced by BuildTest(), BuildTest(), RebuildTarget(), SetUp(), and TestPhonyUseCase().
|
inherited |
Definition at line 581 of file build_test.cc.
Referenced by BuildDryRun::BuildDryRun(), BuildTest(), BuildTest(), and RebuildTarget().
| ScopedFilePath BuildWithDepsLogTest::deps_log_file_ |
Definition at line 2561 of file build_test.cc.
Referenced by BuildWithDepsLogTest().
|
inherited |
Definition at line 583 of file build_test.cc.
Referenced by BuildTest(), BuildTest(), RebuildTarget(), SetUp(), and TestPhonyUseCase().
|
inherited |
Definition at line 40 of file test.h.
Referenced by BuildTest::BuildTest(), BuildTest::BuildTest(), GetNode(), GraphTest::GraphTest(), BuildTest::SetUp(), StateTestWithBuiltinRules(), TestPhonyUseCase(), and PlanTest::TestPoolWithDepthOne().
|
inherited |
Definition at line 584 of file build_test.cc.
Referenced by BuildTest(), BuildTest(), and RebuildTarget().
| ScopedTempDir BuildWithDepsLogTest::temp_dir_ |
Definition at line 2559 of file build_test.cc.
Referenced by SetUp(), and TearDown().