From c90bdaa9d999e0c9c0180a8982f99d086b9aa5f9 Mon Sep 17 00:00:00 2001 From: Evan Martin Date: Fri, 6 Jan 2012 13:50:29 -0800 Subject: add test that checks attributes on rules --- src/manifest_parser_test.cc | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/manifest_parser_test.cc b/src/manifest_parser_test.cc index a48c99e..0be489e 100644 --- a/src/manifest_parser_test.cc +++ b/src/manifest_parser_test.cc @@ -64,6 +64,17 @@ TEST_F(ParserTest, Rules) { EXPECT_EQ("[cat ][$in][ > ][$out]", rule->command().Serialize()); } +TEST_F(ParserTest, RuleAttributes) { + // Check that all of the allowed rule attributes are parsed ok. + ASSERT_NO_FATAL_FAILURE(AssertParse( +"rule cat\n" +" command = a\n" +" depfile = a\n" +" description = a\n" +" generator = a\n" +" restat = a\n")); +} + TEST_F(ParserTest, IgnoreIndentedComments) { ASSERT_NO_FATAL_FAILURE(AssertParse( " #indented comment\n" -- cgit v0.12