|
Ninja
|

Public Member Functions | |
| void | AddAssertionFailure () |
| void | AddCatRule (State *state) |
| Add a "cat" rule to state. More... | |
| int | AssertionFailures () const |
| BuildTest () | |
| BuildTest (DepsLog *log) | |
| bool | Check (bool condition, const char *file, int line, const char *error) |
| void | Dirty (const string &path) |
| bool | Failed () const |
| Node * | GetNode (const std::string &path) |
| Short way to get a Node by its path from state_. More... | |
| virtual bool | IsPathDead (StringPiece s) const |
| Return if a given output is no longer part of the build manifest. More... | |
| 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_). More... | |
| virtual void | Run ()=0 |
| virtual void | SetUp () |
| virtual void | TearDown () |
| ~BuildTest () | |
Public Attributes | |
| Builder | builder_ |
| FakeCommandRunner | command_runner_ |
| BuildConfig | config_ |
| VirtualFileSystem | fs_ |
| State | state_ |
| BuildStatus | status_ |
Definition at line 487 of file build_test.cc.
|
inline |
Definition at line 488 of file build_test.cc.
|
inline |
Definition at line 493 of file build_test.cc.
|
inline |
Definition at line 511 of file build_test.cc.
|
inlineinherited |
Definition at line 42 of file test.h.
References testing::Test::assertion_failures_.
|
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().
|
inlineinherited |
Definition at line 41 of file test.h.
References testing::Test::assertion_failures_.
|
inherited |
Definition at line 121 of file ninja_test.cc.
References printer, and LinePrinter::PrintOnNewLine().
| void BuildTest::Dirty | ( | const string & | path | ) |
Definition at line 697 of file build_test.cc.
References Node::in_edge(), Node::MarkDirty(), and Node::MarkMissing().
|
inlineinherited |
|
inherited |
Short way to get a Node by its path from state_.
Definition at line 95 of file test.cc.
References EXPECT_FALSE.
|
inlinevirtual |
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 515 of file build_test.cc.
|
inline |
Definition at line 527 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, |
||
| State * | state = NULL |
||
| ) |
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 541 of file build_test.cc.
References Builder::AddTarget(), Builder::AlreadyUpToDate(), ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, ASSERT_TRUE, AssertParse(), Builder::Build(), Builder::command_runner_, EXPECT_TRUE, BuildLog::Load(), DepsLog::Load(), BuildLog::OpenForWrite(), and DepsLog::OpenForWrite().
|
pure virtualinherited |
Referenced by main().
|
inlinevirtual |
Reimplemented from testing::Test.
Reimplemented in BuildWithDepsLogTest, and BuildWithQueryDepsLogTest.
Definition at line 498 of file build_test.cc.
References AssertParse(), and testing::Test::SetUp().
Referenced by BuildWithQueryDepsLogTest::SetUp(), and BuildWithDepsLogTest::SetUp().
|
inlinevirtualinherited |
| Builder BuildTest::builder_ |
Definition at line 536 of file build_test.cc.
| FakeCommandRunner BuildTest::command_runner_ |
Definition at line 534 of file build_test.cc.
| BuildConfig BuildTest::config_ |
Definition at line 533 of file build_test.cc.
| VirtualFileSystem BuildTest::fs_ |
Definition at line 535 of file build_test.cc.
| BuildStatus BuildTest::status_ |
Definition at line 538 of file build_test.cc.
1.8.14