|
Ninja
|
#include "manifest_parser.h"#include <map>#include <vector>#include "graph.h"#include "state.h"#include "test.h"
Go to the source code of this file.
Classes | |
| struct | ParserTest |
Functions | |
| TEST_F (ParserTest, Empty) | |
| TEST_F (ParserTest, Rules) | |
| TEST_F (ParserTest, RuleAttributes) | |
| TEST_F (ParserTest, IgnoreIndentedComments) | |
| TEST_F (ParserTest, IgnoreIndentedBlankLines) | |
| TEST_F (ParserTest, ResponseFiles) | |
| TEST_F (ParserTest, InNewline) | |
| TEST_F (ParserTest, Variables) | |
| TEST_F (ParserTest, VariableScope) | |
| TEST_F (ParserTest, Continuation) | |
| TEST_F (ParserTest, Backslash) | |
| TEST_F (ParserTest, Comment) | |
| TEST_F (ParserTest, Dollars) | |
| TEST_F (ParserTest, EscapeSpaces) | |
| TEST_F (ParserTest, CanonicalizeFile) | |
| TEST_F (ParserTest, PathVariables) | |
| TEST_F (ParserTest, CanonicalizePaths) | |
| TEST_F (ParserTest, DuplicateEdgeWithMultipleOutputs) | |
| TEST_F (ParserTest, NoDeadPointerFromDuplicateEdge) | |
| TEST_F (ParserTest, DuplicateEdgeWithMultipleOutputsError) | |
| TEST_F (ParserTest, DuplicateEdgeInIncludedFile) | |
| TEST_F (ParserTest, PhonySelfReferenceIgnored) | |
| TEST_F (ParserTest, PhonySelfReferenceKept) | |
| TEST_F (ParserTest, ReservedWords) | |
| TEST_F (ParserTest, Errors) | |
| TEST_F (ParserTest, MissingInput) | |
| TEST_F (ParserTest, MultipleOutputs) | |
| TEST_F (ParserTest, MultipleOutputsWithDeps) | |
| TEST_F (ParserTest, SubNinja) | |
| TEST_F (ParserTest, MissingSubNinja) | |
| TEST_F (ParserTest, DuplicateRuleInDifferentSubninjas) | |
| TEST_F (ParserTest, DuplicateRuleInDifferentSubninjasWithInclude) | |
| TEST_F (ParserTest, Include) | |
| TEST_F (ParserTest, BrokenInclude) | |
| TEST_F (ParserTest, Implicit) | |
| TEST_F (ParserTest, OrderOnly) | |
| TEST_F (ParserTest, ImplicitOutput) | |
| TEST_F (ParserTest, ImplicitOutputEmpty) | |
| TEST_F (ParserTest, ImplicitOutputDupe) | |
| TEST_F (ParserTest, ImplicitOutputDupes) | |
| TEST_F (ParserTest, NoExplicitOutput) | |
| TEST_F (ParserTest, DefaultDefault) | |
| TEST_F (ParserTest, DefaultDefaultCycle) | |
| TEST_F (ParserTest, DefaultStatements) | |
| TEST_F (ParserTest, UTF8) | |
| TEST_F (ParserTest, CRLF) | |
| TEST_F (ParserTest, DyndepNotSpecified) | |
| TEST_F (ParserTest, DyndepNotInput) | |
| TEST_F (ParserTest, DyndepExplicitInput) | |
| TEST_F (ParserTest, DyndepImplicitInput) | |
| TEST_F (ParserTest, DyndepOrderOnlyInput) | |
| TEST_F (ParserTest, DyndepRuleInput) | |
| TEST_F | ( | ParserTest | , |
| Empty | |||
| ) |
Definition at line 39 of file manifest_parser_test.cc.
References ASSERT_NO_FATAL_FAILURE, and AssertParse().
| TEST_F | ( | ParserTest | , |
| Rules | |||
| ) |
Definition at line 43 of file manifest_parser_test.cc.
References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), Rule::bindings_, and EXPECT_EQ.
| TEST_F | ( | ParserTest | , |
| RuleAttributes | |||
| ) |
Definition at line 60 of file manifest_parser_test.cc.
References ASSERT_NO_FATAL_FAILURE, and AssertParse().
| TEST_F | ( | ParserTest | , |
| IgnoreIndentedComments | |||
| ) |
Definition at line 75 of file manifest_parser_test.cc.
References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), Rule::bindings_, EXPECT_EQ, EXPECT_FALSE, and EXPECT_TRUE.
| TEST_F | ( | ParserTest | , |
| IgnoreIndentedBlankLines | |||
| ) |
Definition at line 94 of file manifest_parser_test.cc.
References ASSERT_NO_FATAL_FAILURE, AssertParse(), and EXPECT_EQ.
| TEST_F | ( | ParserTest | , |
| ResponseFiles | |||
| ) |
Definition at line 109 of file manifest_parser_test.cc.
References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), Rule::bindings_, and EXPECT_EQ.
| TEST_F | ( | ParserTest | , |
| InNewline | |||
| ) |
Definition at line 128 of file manifest_parser_test.cc.
References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), Rule::bindings_, and EXPECT_EQ.
| TEST_F | ( | ParserTest | , |
| Variables | |||
| ) |
Definition at line 146 of file manifest_parser_test.cc.
References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), and EXPECT_EQ.
| TEST_F | ( | ParserTest | , |
| VariableScope | |||
| ) |
Definition at line 171 of file manifest_parser_test.cc.
References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), and EXPECT_EQ.
| TEST_F | ( | ParserTest | , |
| Continuation | |||
| ) |
Definition at line 188 of file manifest_parser_test.cc.
References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), Rule::bindings_, and EXPECT_EQ.
| TEST_F | ( | ParserTest | , |
| Backslash | |||
| ) |
Definition at line 203 of file manifest_parser_test.cc.
References ASSERT_NO_FATAL_FAILURE, AssertParse(), and EXPECT_EQ.
| TEST_F | ( | ParserTest | , |
| Comment | |||
| ) |
Definition at line 212 of file manifest_parser_test.cc.
References ASSERT_NO_FATAL_FAILURE, AssertParse(), and EXPECT_EQ.
| TEST_F | ( | ParserTest | , |
| Dollars | |||
| ) |
Definition at line 219 of file manifest_parser_test.cc.
References ASSERT_NO_FATAL_FAILURE, AssertParse(), and EXPECT_EQ.
| TEST_F | ( | ParserTest | , |
| EscapeSpaces | |||
| ) |
Definition at line 235 of file manifest_parser_test.cc.
References ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_EQ, and EXPECT_TRUE.
| TEST_F | ( | ParserTest | , |
| CanonicalizeFile | |||
| ) |
Definition at line 248 of file manifest_parser_test.cc.
References ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_FALSE, and EXPECT_TRUE.
| TEST_F | ( | ParserTest | , |
| PathVariables | |||
| ) |
Definition at line 282 of file manifest_parser_test.cc.
References ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_FALSE, and EXPECT_TRUE.
| TEST_F | ( | ParserTest | , |
| CanonicalizePaths | |||
| ) |
Definition at line 293 of file manifest_parser_test.cc.
References ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_FALSE, and EXPECT_TRUE.
| TEST_F | ( | ParserTest | , |
| DuplicateEdgeWithMultipleOutputs | |||
| ) |
Definition at line 333 of file manifest_parser_test.cc.
References ASSERT_NO_FATAL_FAILURE, and AssertParse().
| TEST_F | ( | ParserTest | , |
| NoDeadPointerFromDuplicateEdge | |||
| ) |
Definition at line 345 of file manifest_parser_test.cc.
References ASSERT_NO_FATAL_FAILURE, and AssertParse().
| TEST_F | ( | ParserTest | , |
| DuplicateEdgeWithMultipleOutputsError | |||
| ) |
Definition at line 356 of file manifest_parser_test.cc.
References ManifestParserOptions::dupe_edge_action_, EXPECT_EQ, EXPECT_FALSE, kDupeEdgeActionError, and ManifestParser::ParseTest().
| TEST_F | ( | ParserTest | , |
| DuplicateEdgeInIncludedFile | |||
| ) |
Definition at line 371 of file manifest_parser_test.cc.
References ManifestParserOptions::dupe_edge_action_, EXPECT_EQ, EXPECT_FALSE, kDupeEdgeActionError, and ManifestParser::ParseTest().
| TEST_F | ( | ParserTest | , |
| PhonySelfReferenceIgnored | |||
| ) |
Definition at line 389 of file manifest_parser_test.cc.
References ASSERT_NO_FATAL_FAILURE, ASSERT_TRUE, AssertParse(), Node::in_edge(), and Edge::inputs_.
| TEST_F | ( | ParserTest | , |
| PhonySelfReferenceKept | |||
| ) |
Definition at line 399 of file manifest_parser_test.cc.
References ASSERT_EQ, EXPECT_EQ, EXPECT_TRUE, Node::in_edge(), Edge::inputs_, kPhonyCycleActionError, ManifestParser::ParseTest(), and ManifestParserOptions::phony_cycle_action_.
| TEST_F | ( | ParserTest | , |
| ReservedWords | |||
| ) |
Definition at line 415 of file manifest_parser_test.cc.
References ASSERT_NO_FATAL_FAILURE, and AssertParse().
| TEST_F | ( | ParserTest | , |
| Errors | |||
| ) |
Definition at line 423 of file manifest_parser_test.cc.
References EXPECT_EQ, EXPECT_FALSE, and ManifestParser::ParseTest().
| TEST_F | ( | ParserTest | , |
| MissingInput | |||
| ) |
Definition at line 841 of file manifest_parser_test.cc.
References EXPECT_EQ, EXPECT_FALSE, and Parser::Load().
| TEST_F | ( | ParserTest | , |
| MultipleOutputs | |||
| ) |
Definition at line 849 of file manifest_parser_test.cc.
References EXPECT_EQ, EXPECT_TRUE, and ManifestParser::ParseTest().
| TEST_F | ( | ParserTest | , |
| MultipleOutputsWithDeps | |||
| ) |
Definition at line 859 of file manifest_parser_test.cc.
References EXPECT_EQ, EXPECT_TRUE, and ManifestParser::ParseTest().
| TEST_F | ( | ParserTest | , |
| SubNinja | |||
| ) |
Definition at line 869 of file manifest_parser_test.cc.
References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_EQ, and EXPECT_TRUE.
| TEST_F | ( | ParserTest | , |
| MissingSubNinja | |||
| ) |
Definition at line 894 of file manifest_parser_test.cc.
References EXPECT_EQ, EXPECT_FALSE, and ManifestParser::ParseTest().
| TEST_F | ( | ParserTest | , |
| DuplicateRuleInDifferentSubninjas | |||
| ) |
Definition at line 904 of file manifest_parser_test.cc.
References EXPECT_TRUE, and ManifestParser::ParseTest().
| TEST_F | ( | ParserTest | , |
| DuplicateRuleInDifferentSubninjasWithInclude | |||
| ) |
Definition at line 915 of file manifest_parser_test.cc.
References EXPECT_TRUE, and ManifestParser::ParseTest().
| TEST_F | ( | ParserTest | , |
| Include | |||
| ) |
Definition at line 928 of file manifest_parser_test.cc.
References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), and EXPECT_EQ.
| TEST_F | ( | ParserTest | , |
| BrokenInclude | |||
| ) |
Definition at line 939 of file manifest_parser_test.cc.
References EXPECT_EQ, EXPECT_FALSE, and ManifestParser::ParseTest().
| TEST_F | ( | ParserTest | , |
| Implicit | |||
| ) |
Definition at line 950 of file manifest_parser_test.cc.
References ASSERT_NO_FATAL_FAILURE, ASSERT_TRUE, AssertParse(), and Edge::is_implicit().
| TEST_F | ( | ParserTest | , |
| OrderOnly | |||
| ) |
Definition at line 960 of file manifest_parser_test.cc.
References ASSERT_NO_FATAL_FAILURE, ASSERT_TRUE, AssertParse(), and Edge::is_order_only().
| TEST_F | ( | ParserTest | , |
| ImplicitOutput | |||
| ) |
Definition at line 969 of file manifest_parser_test.cc.
References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_TRUE, Edge::is_implicit_out(), and Edge::outputs_.
| TEST_F | ( | ParserTest | , |
| ImplicitOutputEmpty | |||
| ) |
Definition at line 980 of file manifest_parser_test.cc.
References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_FALSE, Edge::is_implicit_out(), and Edge::outputs_.
| TEST_F | ( | ParserTest | , |
| ImplicitOutputDupe | |||
| ) |
Definition at line 991 of file manifest_parser_test.cc.
References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_FALSE, EXPECT_TRUE, Edge::is_implicit_out(), and Edge::outputs_.
| TEST_F | ( | ParserTest | , |
| ImplicitOutputDupes | |||
| ) |
Definition at line 1004 of file manifest_parser_test.cc.
References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), EXPECT_FALSE, Edge::is_implicit_out(), and Edge::outputs_.
| TEST_F | ( | ParserTest | , |
| NoExplicitOutput | |||
| ) |
Definition at line 1015 of file manifest_parser_test.cc.
References EXPECT_TRUE, and ManifestParser::ParseTest().
| TEST_F | ( | ParserTest | , |
| DefaultDefault | |||
| ) |
Definition at line 1024 of file manifest_parser_test.cc.
References ASSERT_NO_FATAL_FAILURE, AssertParse(), and EXPECT_EQ.
| TEST_F | ( | ParserTest | , |
| DefaultDefaultCycle | |||
| ) |
Definition at line 1037 of file manifest_parser_test.cc.
References ASSERT_NO_FATAL_FAILURE, AssertParse(), and EXPECT_EQ.
| TEST_F | ( | ParserTest | , |
| DefaultStatements | |||
| ) |
Definition at line 1047 of file manifest_parser_test.cc.
References ASSERT_EQ, ASSERT_NO_FATAL_FAILURE, AssertParse(), and EXPECT_EQ.
| TEST_F | ( | ParserTest | , |
| UTF8 | |||
| ) |
Definition at line 1067 of file manifest_parser_test.cc.
References ASSERT_NO_FATAL_FAILURE, and AssertParse().
| TEST_F | ( | ParserTest | , |
| CRLF | |||
| ) |
Definition at line 1074 of file manifest_parser_test.cc.
References EXPECT_TRUE, and ManifestParser::ParseTest().
| TEST_F | ( | ParserTest | , |
| DyndepNotSpecified | |||
| ) |
Definition at line 1090 of file manifest_parser_test.cc.
References ASSERT_FALSE, ASSERT_NO_FATAL_FAILURE, AssertParse(), and Edge::dyndep_.
| TEST_F | ( | ParserTest | , |
| DyndepNotInput | |||
| ) |
Definition at line 1099 of file manifest_parser_test.cc.
References EXPECT_EQ, EXPECT_FALSE, and ManifestParser::ParseTest().
| TEST_F | ( | ParserTest | , |
| DyndepExplicitInput | |||
| ) |
Definition at line 1112 of file manifest_parser_test.cc.
References ASSERT_NO_FATAL_FAILURE, ASSERT_TRUE, AssertParse(), Edge::dyndep_, Node::dyndep_pending(), EXPECT_EQ, EXPECT_TRUE, and Node::path().
| TEST_F | ( | ParserTest | , |
| DyndepImplicitInput | |||
| ) |
Definition at line 1124 of file manifest_parser_test.cc.
References ASSERT_NO_FATAL_FAILURE, ASSERT_TRUE, AssertParse(), Edge::dyndep_, Node::dyndep_pending(), EXPECT_EQ, EXPECT_TRUE, and Node::path().
| TEST_F | ( | ParserTest | , |
| DyndepOrderOnlyInput | |||
| ) |
Definition at line 1136 of file manifest_parser_test.cc.
References ASSERT_NO_FATAL_FAILURE, ASSERT_TRUE, AssertParse(), Edge::dyndep_, Node::dyndep_pending(), EXPECT_EQ, EXPECT_TRUE, and Node::path().
| TEST_F | ( | ParserTest | , |
| DyndepRuleInput | |||
| ) |
Definition at line 1148 of file manifest_parser_test.cc.
References ASSERT_NO_FATAL_FAILURE, ASSERT_TRUE, AssertParse(), Edge::dyndep_, Node::dyndep_pending(), EXPECT_EQ, EXPECT_TRUE, and Node::path().
1.8.14