Ninja
Public Member Functions | Public Attributes
BuildWithLogTest Struct Reference
Inheritance diagram for BuildWithLogTest:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void AddCatRule (State *state)
 Add a "cat" rule to state.
 BuildWithLogTest ()
void Dirty (const string &path)
NodeGetNode (const string &path)
 Short way to get a Node by its path from state_.
BuildConfig MakeConfig ()
void RebuildTarget (const string &target, const char *manifest, const char *log_path=NULL, const char *deps_path=NULL)
 Rebuild target in the 'working tree' (fs_).
virtual void SetUp ()

Public Attributes

BuildLog build_log_
Builder builder_
FakeCommandRunner command_runner_
BuildConfig config_
VirtualFileSystem fs_
State state_
BuildStatus status_

Detailed Description

Definition at line 1002 of file build_test.cc.


Constructor & Destructor Documentation

Definition at line 1003 of file build_test.cc.

References build_log_, BuildTest::builder_, and Builder::SetBuildLog().


Member Function Documentation

void StateTestWithBuiltinRules::AddCatRule ( State state) [inherited]

Add a "cat" rule to state.

Used by some tests; it's otherwise done by the ctor to state_.

Definition at line 80 of file test.cc.

References AssertParse().

Referenced by BuildTest::RebuildTarget(), and StateTestWithBuiltinRules::StateTestWithBuiltinRules().

void BuildTest::Dirty ( const string &  path) [inherited]
Node * StateTestWithBuiltinRules::GetNode ( const string &  path) [inherited]

Short way to get a Node by its path from state_.

Definition at line 86 of file test.cc.

References State::GetNode(), and StateTestWithBuiltinRules::state_.

Referenced by BuildTest::Dirty().

BuildConfig BuildTest::MakeConfig ( ) [inline, inherited]

Definition at line 448 of file build_test.cc.

References BuildConfig::QUIET, and BuildConfig::verbosity.

void BuildTest::RebuildTarget ( const string &  target,
const char *  manifest,
const char *  log_path = NULL,
const char *  deps_path = NULL 
) [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 462 of file build_test.cc.

References StateTestWithBuiltinRules::AddCatRule(), Builder::AddTarget(), Builder::AlreadyUpToDate(), AssertParse(), Builder::Build(), Builder::command_runner_, BuildTest::command_runner_, FakeCommandRunner::commands_ran_, BuildTest::config_, BuildTest::fs_, BuildLog::Load(), DepsLog::Load(), BuildLog::OpenForWrite(), and DepsLog::OpenForWrite().

virtual void BuildTest::SetUp ( ) [inline, virtual, inherited]

Member Data Documentation

Definition at line 1007 of file build_test.cc.

Referenced by BuildWithLogTest().

Reimplemented in BuildWithDepsLogTest.

Definition at line 457 of file build_test.cc.

Referenced by BuildWithLogTest(), BuildTest::SetUp(), and BuildTest::~BuildTest().

Definition at line 455 of file build_test.cc.

Referenced by BuildTest::RebuildTarget(), and BuildTest::SetUp().

Definition at line 454 of file build_test.cc.

Referenced by BuildDryRun::BuildDryRun(), and BuildTest::RebuildTarget().

Definition at line 456 of file build_test.cc.

Referenced by BuildTest::RebuildTarget(), and BuildTest::SetUp().

Definition at line 459 of file build_test.cc.


The documentation for this struct was generated from the following file: