name
stringlengths
1
473k
code
stringlengths
7
647k
asm
stringlengths
4
3.39M
file
stringlengths
8
196
GraphTestVarInOutPathEscaping::GraphTestVarInOutPathEscaping()
TEST_F(GraphTest, VarInOutPathEscaping) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build a$ b: cat no'space with$ space$$ no\"space2\n")); Edge* edge = GetNode("a b")->in_edge(); #ifdef _WIN32 EXPECT_EQ("cat no'space \"with space$\" \"no\\\"space2\" > \"a b\"", edge->EvaluateCommand()); #else EXPECT...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0xa7970 movq -0x10(%rbp), %rax leaq 0xbb2e4(%rip), %rcx # 0x1634b8 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
/adityavs[P]ninja/src/graph_test.cc
GraphTestDepfileWithCanonicalizablePath::Create()
TEST_F(GraphTest, DepfileWithCanonicalizablePath) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule catdep\n" " depfile = $out.d\n" " command = cat $in > $out\n" "build ./out.o: catdep ./foo.cc\n")); fs_.Create("foo.cc", ""); fs_.Create("out.o.d", "out.o: bar/../foo.cc\n"); fs_.Create("out.o", ""); stri...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x228, %edi # imm = 0x228 callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0xa8250 jmp 0xa8213 movq -0x18(%rbp), %rax leaq 0xbe4a2(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi mo...
/adityavs[P]ninja/src/graph_test.cc
GraphTestDepfileRemoved::Create()
TEST_F(GraphTest, DepfileRemoved) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule catdep\n" " depfile = $out.d\n" " command = cat $in > $out\n" "build ./out.o: catdep ./foo.cc\n")); fs_.Create("foo.h", ""); fs_.Create("foo.cc", ""); fs_.Tick(); fs_.Create("out.o.d", "out.o: foo.h\n"); fs_.Create("out...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x228, %edi # imm = 0x228 callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0xa82f0 jmp 0xa82b3 movq -0x18(%rbp), %rax leaq 0xbe402(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi mo...
/adityavs[P]ninja/src/graph_test.cc
GraphTestDepfileRemoved::GraphTestDepfileRemoved()
TEST_F(GraphTest, DepfileRemoved) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule catdep\n" " depfile = $out.d\n" " command = cat $in > $out\n" "build ./out.o: catdep ./foo.cc\n")); fs_.Create("foo.h", ""); fs_.Create("foo.cc", ""); fs_.Tick(); fs_.Create("out.o.d", "out.o: foo.h\n"); fs_.Create("out...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0xa7970 movq -0x10(%rbp), %rax leaq 0xbb244(%rip), %rcx # 0x163558 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
/adityavs[P]ninja/src/graph_test.cc
GraphTestRuleVariablesInScope::Create()
TEST_F(GraphTest, RuleVariablesInScope) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule r\n" " depfile = x\n" " command = depfile is $depfile\n" "build out: r in\n")); Edge* edge = GetNode("out")->in_edge(); EXPECT_EQ("depfile is x", edge->EvaluateCommand()); }
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x228, %edi # imm = 0x228 callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0xa8390 jmp 0xa8353 movq -0x18(%rbp), %rax leaq 0xbe362(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi mo...
/adityavs[P]ninja/src/graph_test.cc
GraphTestDepfileOverride::Create()
TEST_F(GraphTest, DepfileOverride) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule r\n" " depfile = x\n" " command = unused\n" "build out: r in\n" " depfile = y\n")); Edge* edge = GetNode("out")->in_edge(); EXPECT_EQ("y", edge->GetBinding("depfile")); }
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x228, %edi # imm = 0x228 callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0xa8430 jmp 0xa83f3 movq -0x18(%rbp), %rax leaq 0xbe2c2(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi mo...
/adityavs[P]ninja/src/graph_test.cc
GraphTestDepfileOverride::GraphTestDepfileOverride()
TEST_F(GraphTest, DepfileOverride) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule r\n" " depfile = x\n" " command = unused\n" "build out: r in\n" " depfile = y\n")); Edge* edge = GetNode("out")->in_edge(); EXPECT_EQ("y", edge->GetBinding("depfile")); }
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0xa7970 movq -0x10(%rbp), %rax leaq 0xbb1a4(%rip), %rcx # 0x1635f8 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
/adityavs[P]ninja/src/graph_test.cc
GraphTestDepfileOverrideParent::Create()
TEST_F(GraphTest, DepfileOverrideParent) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule r\n" " depfile = x\n" " command = depfile is $depfile\n" "build out: r in\n" " depfile = y\n")); Edge* edge = GetNode("out")->in_edge(); EXPECT_EQ("depfile is y", edge->GetBinding("command")); }
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x228, %edi # imm = 0x228 callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0xa84d0 jmp 0xa8493 movq -0x18(%rbp), %rax leaq 0xbe222(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi mo...
/adityavs[P]ninja/src/graph_test.cc
GraphTestDepfileOverrideParent::GraphTestDepfileOverrideParent()
TEST_F(GraphTest, DepfileOverrideParent) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule r\n" " depfile = x\n" " command = depfile is $depfile\n" "build out: r in\n" " depfile = y\n")); Edge* edge = GetNode("out")->in_edge(); EXPECT_EQ("depfile is y", edge->GetBinding("command")); }
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0xa7970 movq -0x10(%rbp), %rax leaq 0xbb154(%rip), %rcx # 0x163648 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
/adityavs[P]ninja/src/graph_test.cc
GraphTestNestedPhonyPrintsDone::Create()
TEST_F(GraphTest, NestedPhonyPrintsDone) { AssertParse(&state_, "build n1: phony \n" "build n2: phony n1\n" ); string err; EXPECT_TRUE(scan_.RecomputeDirty(GetNode("n2"), &err)); ASSERT_EQ("", err); Plan plan_; EXPECT_TRUE(plan_.AddTarget(GetNode("n2"), &err)); ASSERT_EQ("", err); EXPECT_EQ(0, plan_...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x228, %edi # imm = 0x228 callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0xa8570 jmp 0xa8533 movq -0x18(%rbp), %rax leaq 0xbe182(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi mo...
/adityavs[P]ninja/src/graph_test.cc
GraphTestNestedPhonyPrintsDone::GraphTestNestedPhonyPrintsDone()
TEST_F(GraphTest, NestedPhonyPrintsDone) { AssertParse(&state_, "build n1: phony \n" "build n2: phony n1\n" ); string err; EXPECT_TRUE(scan_.RecomputeDirty(GetNode("n2"), &err)); ASSERT_EQ("", err); Plan plan_; EXPECT_TRUE(plan_.AddTarget(GetNode("n2"), &err)); ASSERT_EQ("", err); EXPECT_EQ(0, plan_...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0xa7970 movq -0x10(%rbp), %rax leaq 0xbb104(%rip), %rcx # 0x163698 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
/adityavs[P]ninja/src/graph_test.cc
GraphTestPhonySelfReferenceError::Create()
TEST_F(GraphTest, PhonySelfReferenceError) { ManifestParserOptions parser_opts; parser_opts.phony_cycle_action_ = kPhonyCycleActionError; AssertParse(&state_, "build a: phony a\n", parser_opts); string err; EXPECT_FALSE(scan_.RecomputeDirty(GetNode("a"), &err)); ASSERT_EQ("dependency cycle: a -> a [-w ph...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x228, %edi # imm = 0x228 callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0xa8610 jmp 0xa85d3 movq -0x18(%rbp), %rax leaq 0xbe0e2(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi mo...
/adityavs[P]ninja/src/graph_test.cc
GraphTestPhonySelfReferenceError::GraphTestPhonySelfReferenceError()
TEST_F(GraphTest, PhonySelfReferenceError) { ManifestParserOptions parser_opts; parser_opts.phony_cycle_action_ = kPhonyCycleActionError; AssertParse(&state_, "build a: phony a\n", parser_opts); string err; EXPECT_FALSE(scan_.RecomputeDirty(GetNode("a"), &err)); ASSERT_EQ("dependency cycle: a -> a [-w ph...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0xa7970 movq -0x10(%rbp), %rax leaq 0xbb0b4(%rip), %rcx # 0x1636e8 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
/adityavs[P]ninja/src/graph_test.cc
GraphTestDependencyCycle::Create()
TEST_F(GraphTest, DependencyCycle) { AssertParse(&state_, "build out: cat mid\n" "build mid: cat in\n" "build in: cat pre\n" "build pre: cat out\n"); string err; EXPECT_FALSE(scan_.RecomputeDirty(GetNode("out"), &err)); ASSERT_EQ("dependency cycle: out -> mid -> in -> pre -> out", err); }
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x228, %edi # imm = 0x228 callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0xa86b0 jmp 0xa8673 movq -0x18(%rbp), %rax leaq 0xbe042(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi mo...
/adityavs[P]ninja/src/graph_test.cc
GraphTestCycleInEdgesButNotInNodes3::Create()
TEST_F(GraphTest, CycleInEdgesButNotInNodes3) { string err; ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build a b: cat c\n" "build c: cat a\n")); EXPECT_FALSE(scan_.RecomputeDirty(GetNode("b"), &err)); ASSERT_EQ("dependency cycle: a -> c -> a", err); }
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x228, %edi # imm = 0x228 callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0xa8890 jmp 0xa8853 movq -0x18(%rbp), %rax leaq 0xbde62(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi mo...
/adityavs[P]ninja/src/graph_test.cc
GraphTestCycleInEdgesButNotInNodes3::GraphTestCycleInEdgesButNotInNodes3()
TEST_F(GraphTest, CycleInEdgesButNotInNodes3) { string err; ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build a b: cat c\n" "build c: cat a\n")); EXPECT_FALSE(scan_.RecomputeDirty(GetNode("b"), &err)); ASSERT_EQ("dependency cycle: a -> c -> a", err); }
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0xa7970 movq -0x10(%rbp), %rax leaq 0xbaf74(%rip), %rcx # 0x163828 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
/adityavs[P]ninja/src/graph_test.cc
GraphTestCycleInEdgesButNotInNodes4::Create()
TEST_F(GraphTest, CycleInEdgesButNotInNodes4) { string err; ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build d: cat c\n" "build c: cat b\n" "build b: cat a\n" "build a e: cat d\n" "build f: cat e\n")); EXPECT_FALSE(scan_.RecomputeDirty(GetNode("f"), &err)); ASSERT_EQ("dependency cycle: a -> d -> c -> b -> a"...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x228, %edi # imm = 0x228 callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0xa8930 jmp 0xa88f3 movq -0x18(%rbp), %rax leaq 0xbddc2(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi mo...
/adityavs[P]ninja/src/graph_test.cc
GraphTestCycleWithLengthOneFromDepfile::Create()
TEST_F(GraphTest, CycleWithLengthOneFromDepfile) { AssertParse(&state_, "rule deprule\n" " depfile = dep.d\n" " command = unused\n" "rule r\n" " command = unused\n" "build a b: deprule\n" "build c: r b\n" ); fs_.Create("dep.d", "a: c\n"); string err; EXPECT_FALSE(scan_.RecomputeDirty(GetNode("a"), &err...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x228, %edi # imm = 0x228 callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0xa8a70 jmp 0xa8a33 movq -0x18(%rbp), %rax leaq 0xbdc82(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi mo...
/adityavs[P]ninja/src/graph_test.cc
GraphTestCycleWithLengthOneFromDepfile::GraphTestCycleWithLengthOneFromDepfile()
TEST_F(GraphTest, CycleWithLengthOneFromDepfile) { AssertParse(&state_, "rule deprule\n" " depfile = dep.d\n" " command = unused\n" "rule r\n" " command = unused\n" "build a b: deprule\n" "build c: r b\n" ); fs_.Create("dep.d", "a: c\n"); string err; EXPECT_FALSE(scan_.RecomputeDirty(GetNode("a"), &err...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0xa7970 movq -0x10(%rbp), %rax leaq 0xbae84(%rip), %rcx # 0x163918 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
/adityavs[P]ninja/src/graph_test.cc
GraphTestCycleWithLengthOneFromDepfileOneHopAway::GraphTestCycleWithLengthOneFromDepfileOneHopAway()
TEST_F(GraphTest, CycleWithLengthOneFromDepfileOneHopAway) { AssertParse(&state_, "rule deprule\n" " depfile = dep.d\n" " command = unused\n" "rule r\n" " command = unused\n" "build a b: deprule\n" "build c: r b\n" "build d: r a\n" ); fs_.Create("dep.d", "a: c\n"); string err; EXPECT_FALSE(scan_.Recomp...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0xa7970 movq -0x10(%rbp), %rax leaq 0xbae34(%rip), %rcx # 0x163968 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
/adityavs[P]ninja/src/graph_test.cc
GraphTestDyndepLoadTrivial::Create()
TEST_F(GraphTest, DyndepLoadTrivial) { AssertParse(&state_, "rule r\n" " command = unused\n" "build out: r in || dd\n" " dyndep = dd\n" ); fs_.Create("dd", "ninja_dyndep_version = 1\n" "build out: dyndep\n" ); string err; ASSERT_TRUE(GetNode("dd")->dyndep_pending()); EXPECT_TRUE(scan_.LoadDyndeps(GetNo...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x228, %edi # imm = 0x228 callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0xa8bb0 jmp 0xa8b73 movq -0x18(%rbp), %rax leaq 0xbdb42(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi mo...
/adityavs[P]ninja/src/graph_test.cc
GraphTestDyndepLoadMissingFile::Create()
TEST_F(GraphTest, DyndepLoadMissingFile) { AssertParse(&state_, "rule r\n" " command = unused\n" "build out: r in || dd\n" " dyndep = dd\n" ); string err; ASSERT_TRUE(GetNode("dd")->dyndep_pending()); EXPECT_FALSE(scan_.LoadDyndeps(GetNode("dd"), &err)); EXPECT_EQ("loading 'dd': No such file or directory...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x228, %edi # imm = 0x228 callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0xa8c50 jmp 0xa8c13 movq -0x18(%rbp), %rax leaq 0xbdaa2(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi mo...
/adityavs[P]ninja/src/graph_test.cc
GraphTestDyndepLoadMissingEntry::Create()
TEST_F(GraphTest, DyndepLoadMissingEntry) { AssertParse(&state_, "rule r\n" " command = unused\n" "build out: r in || dd\n" " dyndep = dd\n" ); fs_.Create("dd", "ninja_dyndep_version = 1\n" ); string err; ASSERT_TRUE(GetNode("dd")->dyndep_pending()); EXPECT_FALSE(scan_.LoadDyndeps(GetNode("dd"), &err))...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x228, %edi # imm = 0x228 callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0xa8cf0 jmp 0xa8cb3 movq -0x18(%rbp), %rax leaq 0xbda02(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi mo...
/adityavs[P]ninja/src/graph_test.cc
GraphTestDyndepLoadExtraEntry::Create()
TEST_F(GraphTest, DyndepLoadExtraEntry) { AssertParse(&state_, "rule r\n" " command = unused\n" "build out: r in || dd\n" " dyndep = dd\n" "build out2: r in || dd\n" ); fs_.Create("dd", "ninja_dyndep_version = 1\n" "build out: dyndep\n" "build out2: dyndep\n" ); string err; ASSERT_TRUE(GetNode("dd")->dyn...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x228, %edi # imm = 0x228 callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0xa8d90 jmp 0xa8d53 movq -0x18(%rbp), %rax leaq 0xbd962(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi mo...
/adityavs[P]ninja/src/graph_test.cc
GraphTestDyndepLoadExtraEntry::GraphTestDyndepLoadExtraEntry()
TEST_F(GraphTest, DyndepLoadExtraEntry) { AssertParse(&state_, "rule r\n" " command = unused\n" "build out: r in || dd\n" " dyndep = dd\n" "build out2: r in || dd\n" ); fs_.Create("dd", "ninja_dyndep_version = 1\n" "build out: dyndep\n" "build out2: dyndep\n" ); string err; ASSERT_TRUE(GetNode("dd")->dyn...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0xa7970 movq -0x10(%rbp), %rax leaq 0xbacf4(%rip), %rcx # 0x163aa8 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
/adityavs[P]ninja/src/graph_test.cc
GraphTestDyndepLoadOutputWithMultipleRules1::GraphTestDyndepLoadOutputWithMultipleRules1()
TEST_F(GraphTest, DyndepLoadOutputWithMultipleRules1) { AssertParse(&state_, "rule r\n" " command = unused\n" "build out1 | out-twice.imp: r in1\n" "build out2: r in2 || dd\n" " dyndep = dd\n" ); fs_.Create("dd", "ninja_dyndep_version = 1\n" "build out2 | out-twice.imp: dyndep\n" ); string err; ASSERT_TR...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0xa7970 movq -0x10(%rbp), %rax leaq 0xbaca4(%rip), %rcx # 0x163af8 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
/adityavs[P]ninja/src/graph_test.cc
GraphTestDyndepLoadMultiple::Create()
TEST_F(GraphTest, DyndepLoadMultiple) { AssertParse(&state_, "rule r\n" " command = unused\n" "build out1: r in1 || dd\n" " dyndep = dd\n" "build out2: r in2 || dd\n" " dyndep = dd\n" "build outNot: r in3 || dd\n" ); fs_.Create("dd", "ninja_dyndep_version = 1\n" "build out1 | out1imp: dyndep | in1imp\n" "build...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x228, %edi # imm = 0x228 callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0xa8f70 jmp 0xa8f33 movq -0x18(%rbp), %rax leaq 0xbd782(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi mo...
/adityavs[P]ninja/src/graph_test.cc
GraphTestDyndepFileError::GraphTestDyndepFileError()
TEST_F(GraphTest, DyndepFileError) { AssertParse(&state_, "rule r\n" " command = unused\n" "build out: r || dd\n" " dyndep = dd\n" ); fs_.Create("dd", "ninja_dyndep_version = 1\n" ); string err; EXPECT_FALSE(scan_.RecomputeDirty(GetNode("out"), &err)); ASSERT_EQ("'out' not mentioned in its dyndep file ...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0xa7970 movq -0x10(%rbp), %rax leaq 0xbab64(%rip), %rcx # 0x163c38 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
/adityavs[P]ninja/src/graph_test.cc
GraphTestDyndepImplicitInputNewer::GraphTestDyndepImplicitInputNewer()
TEST_F(GraphTest, DyndepImplicitInputNewer) { AssertParse(&state_, "rule r\n" " command = unused\n" "build out: r || dd\n" " dyndep = dd\n" ); fs_.Create("dd", "ninja_dyndep_version = 1\n" "build out: dyndep | in\n" ); fs_.Create("out", ""); fs_.Tick(); fs_.Create("in", ""); string err; EXPECT_TRUE...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0xa7970 movq -0x10(%rbp), %rax leaq 0xbab14(%rip), %rcx # 0x163c88 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
/adityavs[P]ninja/src/graph_test.cc
GraphTestDyndepFileNotReady::Create()
TEST_F(GraphTest, DyndepFileNotReady) { AssertParse(&state_, "rule r\n" " command = unused\n" "build tmp: r\n" "build dd: r dd-in || tmp\n" "build out: r || dd\n" " dyndep = dd\n" ); fs_.Create("dd", "this-should-not-be-loaded"); fs_.Create("dd-in", ""); fs_.Tick(); fs_.Create("out", ""); string err; ...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x228, %edi # imm = 0x228 callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0xa9330 jmp 0xa92f3 movq -0x18(%rbp), %rax leaq 0xbd3c2(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi mo...
/adityavs[P]ninja/src/graph_test.cc
GraphTestDyndepFileNotReady::GraphTestDyndepFileNotReady()
TEST_F(GraphTest, DyndepFileNotReady) { AssertParse(&state_, "rule r\n" " command = unused\n" "build tmp: r\n" "build dd: r dd-in || tmp\n" "build out: r || dd\n" " dyndep = dd\n" ); fs_.Create("dd", "this-should-not-be-loaded"); fs_.Create("dd-in", ""); fs_.Tick(); fs_.Create("out", ""); string err; ...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0xa7970 movq -0x10(%rbp), %rax leaq 0xbaa24(%rip), %rcx # 0x163d78 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
/adityavs[P]ninja/src/graph_test.cc
GraphTestDyndepFileSecondNotReady::GraphTestDyndepFileSecondNotReady()
TEST_F(GraphTest, DyndepFileSecondNotReady) { AssertParse(&state_, "rule r\n" " command = unused\n" "build dd1: r dd1-in\n" "build dd2-in: r || dd1\n" " dyndep = dd1\n" "build dd2: r dd2-in\n" "build out: r || dd2\n" " dyndep = dd2\n" ); fs_.Create("dd1", ""); fs_.Create("dd2", ""); fs_.Create("dd2-in", ""...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0xa7970 movq -0x10(%rbp), %rax leaq 0xba9d4(%rip), %rcx # 0x163dc8 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
/adityavs[P]ninja/src/graph_test.cc
GraphTestDyndepFileCircular::Create()
TEST_F(GraphTest, DyndepFileCircular) { AssertParse(&state_, "rule r\n" " command = unused\n" "build out: r in || dd\n" " depfile = out.d\n" " dyndep = dd\n" "build in: r circ\n" ); fs_.Create("out.d", "out: inimp\n"); fs_.Create("dd", "ninja_dyndep_version = 1\n" "build out | circ: dyndep\n" ); fs_.Crea...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x228, %edi # imm = 0x228 callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0xa9470 jmp 0xa9433 movq -0x18(%rbp), %rax leaq 0xbd282(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi mo...
/adityavs[P]ninja/src/graph_test.cc
LexerError::Run()
TEST(Lexer, Error) { Lexer lexer("foo$\nbad $"); EvalString eval; string err; ASSERT_FALSE(lexer.ReadVarValue(&eval, &err)); EXPECT_EQ("input:2: bad $-escape (literal $ must be written as $$)\n" "bad $\n" " ^ near here" , err); }
pushq %rbp movq %rsp, %rbp subq $0xc0, %rsp movq %rdi, -0x8(%rbp) leaq 0x66a03(%rip), %rsi # 0x110829 leaq -0x38(%rbp), %rdi movq %rdi, -0xa8(%rbp) callq 0xfdb50 leaq -0x50(%rbp), %rdi movq %rdi, -0xa0(%rbp) callq 0xaa160 leaq -0x70(%rbp), %rdi movq %rdi, -0x98(%rbp) callq 0x1b760 movq -0xa8(%rbp), %rdi movq -0xa0(...
/adityavs[P]ninja/src/lexer_test.cc
LexerTabs::Run()
TEST(Lexer, Tabs) { // Verify we print a useful error on a disallowed character. Lexer lexer(" \tfoobar"); Lexer::Token token = lexer.ReadToken(); EXPECT_EQ(Lexer::INDENT, token); token = lexer.ReadToken(); EXPECT_EQ(Lexer::ERROR, token); EXPECT_EQ("tabs are not allowed, use spaces", lexer.DescribeLastE...
pushq %rbp movq %rsp, %rbp subq $0xa0, %rsp movq %rdi, -0x8(%rbp) leaq 0x668f7(%rip), %rsi # 0x1108fd leaq -0x38(%rbp), %rdi movq %rdi, -0x90(%rbp) callq 0xfdb50 movq -0x90(%rbp), %rdi callq 0xfde50 movl %eax, -0x3c(%rbp) leaq 0xbc694(%rip), %rax # 0x1666c0 movq %rax, -0x88(%rbp) movq (%rax), %rdi movl -0x3c(%r...
/adityavs[P]ninja/src/lexer_test.cc
RegisterLexerReadVarValue::RegisterLexerReadVarValue()
TEST(Lexer, ReadVarValue) { Lexer lexer("plain text $var $VaR ${x}\n"); EvalString eval; string err; EXPECT_TRUE(lexer.ReadVarValue(&eval, &err)); EXPECT_EQ("", err); EXPECT_EQ("[plain text ][$var][ ][$VaR][ ][$x]", eval.Serialize()); }
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0x3dd(%rip), %rdi # 0xaa520 leaq 0x66836(%rip), %rsi # 0x110980 callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nop
/adityavs[P]ninja/src/lexer_test.cc
RegisterLexerReadEvalStringEscapes::RegisterLexerReadEvalStringEscapes()
TEST(Lexer, ReadEvalStringEscapes) { Lexer lexer("$ $$ab c$: $\ncde\n"); EvalString eval; string err; EXPECT_TRUE(lexer.ReadVarValue(&eval, &err)); EXPECT_EQ("", err); EXPECT_EQ("[ $ab c: cde]", eval.Serialize()); }
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0x73d(%rip), %rdi # 0xaa920 leaq 0x667a9(%rip), %rsi # 0x110993 callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nop
/adityavs[P]ninja/src/lexer_test.cc
RegisterLexerReadIdentCurlies::RegisterLexerReadIdentCurlies()
TEST(Lexer, ReadIdentCurlies) { // Verify that ReadIdent includes dots in the name, // but in an expansion $bar.dots stops at the dot. Lexer lexer("foo.dots $bar.dots ${bar.dots}\n"); string ident; EXPECT_TRUE(lexer.ReadIdent(&ident)); EXPECT_EQ("foo.dots", ident); EvalString eval; string err; EXPECT...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0x81d(%rip), %rdi # 0xaaa60 leaq 0x66775(%rip), %rsi # 0x1109bf callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nop
/adityavs[P]ninja/src/lexer_test.cc
RegisterLexerError::RegisterLexerError()
TEST(Lexer, Error) { Lexer lexer("foo$\nbad $"); EvalString eval; string err; ASSERT_FALSE(lexer.ReadVarValue(&eval, &err)); EXPECT_EQ("input:2: bad $-escape (literal $ must be written as $$)\n" "bad $\n" " ^ near here" , err); }
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0x88d(%rip), %rdi # 0xaab00 leaq 0x6675c(%rip), %rsi # 0x1109d6 callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nop
/adityavs[P]ninja/src/lexer_test.cc
LexerReadEvalStringEscapes::~LexerReadEvalStringEscapes()
TEST(Lexer, ReadEvalStringEscapes) { Lexer lexer("$ $$ab c$: $\ncde\n"); EvalString eval; string err; EXPECT_TRUE(lexer.ReadVarValue(&eval, &err)); EXPECT_EQ("", err); EXPECT_EQ("[ $ab c: cde]", eval.Serialize()); }
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi callq 0x25030 addq $0x10, %rsp popq %rbp retq nopl (%rax,%rax)
/adityavs[P]ninja/src/lexer_test.cc
LexerReadIdent::~LexerReadIdent()
TEST(Lexer, ReadIdent) { Lexer lexer("foo baR baz_123 foo-bar"); string ident; EXPECT_TRUE(lexer.ReadIdent(&ident)); EXPECT_EQ("foo", ident); EXPECT_TRUE(lexer.ReadIdent(&ident)); EXPECT_EQ("baR", ident); EXPECT_TRUE(lexer.ReadIdent(&ident)); EXPECT_EQ("baz_123", ident); EXPECT_TRUE(lexer.ReadIdent(&i...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi callq 0x25030 addq $0x10, %rsp popq %rbp retq nopl (%rax,%rax)
/adityavs[P]ninja/src/lexer_test.cc
LexerReadIdent::~LexerReadIdent()
TEST(Lexer, ReadIdent) { Lexer lexer("foo baR baz_123 foo-bar"); string ident; EXPECT_TRUE(lexer.ReadIdent(&ident)); EXPECT_EQ("foo", ident); EXPECT_TRUE(lexer.ReadIdent(&ident)); EXPECT_EQ("baR", ident); EXPECT_TRUE(lexer.ReadIdent(&ident)); EXPECT_EQ("baz_123", ident); EXPECT_TRUE(lexer.ReadIdent(&i...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0xaa390 movq -0x10(%rbp), %rdi movl $0x10, %esi callq 0x1b4d0 addq $0x10, %rsp popq %rbp retq nopl (%rax)
/adityavs[P]ninja/src/lexer_test.cc
LexerReadIdentCurlies::~LexerReadIdentCurlies()
TEST(Lexer, ReadIdentCurlies) { // Verify that ReadIdent includes dots in the name, // but in an expansion $bar.dots stops at the dot. Lexer lexer("foo.dots $bar.dots ${bar.dots}\n"); string ident; EXPECT_TRUE(lexer.ReadIdent(&ident)); EXPECT_EQ("foo.dots", ident); EvalString eval; string err; EXPECT...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi callq 0x25030 addq $0x10, %rsp popq %rbp retq nopl (%rax,%rax)
/adityavs[P]ninja/src/lexer_test.cc
LexerReadIdentCurlies::~LexerReadIdentCurlies()
TEST(Lexer, ReadIdentCurlies) { // Verify that ReadIdent includes dots in the name, // but in an expansion $bar.dots stops at the dot. Lexer lexer("foo.dots $bar.dots ${bar.dots}\n"); string ident; EXPECT_TRUE(lexer.ReadIdent(&ident)); EXPECT_EQ("foo.dots", ident); EvalString eval; string err; EXPECT...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0xaa3e0 movq -0x10(%rbp), %rdi movl $0x10, %esi callq 0x1b4d0 addq $0x10, %rsp popq %rbp retq nopl (%rax)
/adityavs[P]ninja/src/lexer_test.cc
LexerError::~LexerError()
TEST(Lexer, Error) { Lexer lexer("foo$\nbad $"); EvalString eval; string err; ASSERT_FALSE(lexer.ReadVarValue(&eval, &err)); EXPECT_EQ("input:2: bad $-escape (literal $ must be written as $$)\n" "bad $\n" " ^ near here" , err); }
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi callq 0x25030 addq $0x10, %rsp popq %rbp retq nopl (%rax,%rax)
/adityavs[P]ninja/src/lexer_test.cc
LexerError::~LexerError()
TEST(Lexer, Error) { Lexer lexer("foo$\nbad $"); EvalString eval; string err; ASSERT_FALSE(lexer.ReadVarValue(&eval, &err)); EXPECT_EQ("input:2: bad $-escape (literal $ must be written as $$)\n" "bad $\n" " ^ near here" , err); }
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0xaa430 movq -0x10(%rbp), %rdi movl $0x10, %esi callq 0x1b4d0 addq $0x10, %rsp popq %rbp retq nopl (%rax)
/adityavs[P]ninja/src/lexer_test.cc
LexerTabs::~LexerTabs()
TEST(Lexer, Tabs) { // Verify we print a useful error on a disallowed character. Lexer lexer(" \tfoobar"); Lexer::Token token = lexer.ReadToken(); EXPECT_EQ(Lexer::INDENT, token); token = lexer.ReadToken(); EXPECT_EQ(Lexer::ERROR, token); EXPECT_EQ("tabs are not allowed, use spaces", lexer.DescribeLastE...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0xaa4d0 movq -0x10(%rbp), %rdi movl $0x10, %esi callq 0x1b4d0 addq $0x10, %rsp popq %rbp retq nopl (%rax)
/adityavs[P]ninja/src/lexer_test.cc
LexerReadVarValue::Create()
TEST(Lexer, ReadVarValue) { Lexer lexer("plain text $var $VaR ${x}\n"); EvalString eval; string err; EXPECT_TRUE(lexer.ReadVarValue(&eval, &err)); EXPECT_EQ("", err); EXPECT_EQ("[plain text ][$var][ ][$VaR][ ][$x]", eval.Serialize()); }
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x10, %edi callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0xaa580 jmp 0xaa543 movq -0x18(%rbp), %rax leaq 0xbc172(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi movq %rax, %rcx movl %edx, %...
/adityavs[P]ninja/src/lexer_test.cc
LexerReadVarValue::LexerReadVarValue()
TEST(Lexer, ReadVarValue) { Lexer lexer("plain text $var $VaR ${x}\n"); EvalString eval; string err; EXPECT_TRUE(lexer.ReadVarValue(&eval, &err)); EXPECT_EQ("", err); EXPECT_EQ("[plain text ][$var][ ][$VaR][ ][$x]", eval.Serialize()); }
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x77c30 movq -0x10(%rbp), %rax leaq 0xb9914(%rip), %rcx # 0x163eb8 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
/adityavs[P]ninja/src/lexer_test.cc
LexerReadEvalStringEscapes::Create()
TEST(Lexer, ReadEvalStringEscapes) { Lexer lexer("$ $$ab c$: $\ncde\n"); EvalString eval; string err; EXPECT_TRUE(lexer.ReadVarValue(&eval, &err)); EXPECT_EQ("", err); EXPECT_EQ("[ $ab c: cde]", eval.Serialize()); }
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x10, %edi callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0xaa980 jmp 0xaa943 movq -0x18(%rbp), %rax leaq 0xbbd72(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi movq %rax, %rcx movl %edx, %...
/adityavs[P]ninja/src/lexer_test.cc
LexerReadEvalStringEscapes::LexerReadEvalStringEscapes()
TEST(Lexer, ReadEvalStringEscapes) { Lexer lexer("$ $$ab c$: $\ncde\n"); EvalString eval; string err; EXPECT_TRUE(lexer.ReadVarValue(&eval, &err)); EXPECT_EQ("", err); EXPECT_EQ("[ $ab c: cde]", eval.Serialize()); }
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x77c30 movq -0x10(%rbp), %rax leaq 0xb9564(%rip), %rcx # 0x163f08 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
/adityavs[P]ninja/src/lexer_test.cc
LexerReadIdent::LexerReadIdent()
TEST(Lexer, ReadIdent) { Lexer lexer("foo baR baz_123 foo-bar"); string ident; EXPECT_TRUE(lexer.ReadIdent(&ident)); EXPECT_EQ("foo", ident); EXPECT_TRUE(lexer.ReadIdent(&ident)); EXPECT_EQ("baR", ident); EXPECT_TRUE(lexer.ReadIdent(&ident)); EXPECT_EQ("baz_123", ident); EXPECT_TRUE(lexer.ReadIdent(&i...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x77c30 movq -0x10(%rbp), %rax leaq 0xb9514(%rip), %rcx # 0x163f58 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
/adityavs[P]ninja/src/lexer_test.cc
LexerReadIdentCurlies::LexerReadIdentCurlies()
TEST(Lexer, ReadIdentCurlies) { // Verify that ReadIdent includes dots in the name, // but in an expansion $bar.dots stops at the dot. Lexer lexer("foo.dots $bar.dots ${bar.dots}\n"); string ident; EXPECT_TRUE(lexer.ReadIdent(&ident)); EXPECT_EQ("foo.dots", ident); EvalString eval; string err; EXPECT...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x77c30 movq -0x10(%rbp), %rax leaq 0xb94c4(%rip), %rcx # 0x163fa8 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
/adityavs[P]ninja/src/lexer_test.cc
LexerError::Create()
TEST(Lexer, Error) { Lexer lexer("foo$\nbad $"); EvalString eval; string err; ASSERT_FALSE(lexer.ReadVarValue(&eval, &err)); EXPECT_EQ("input:2: bad $-escape (literal $ must be written as $$)\n" "bad $\n" " ^ near here" , err); }
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x10, %edi callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0xaab60 jmp 0xaab23 movq -0x18(%rbp), %rax leaq 0xbbb92(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi movq %rax, %rcx movl %edx, %...
/adityavs[P]ninja/src/lexer_test.cc
LexerError::LexerError()
TEST(Lexer, Error) { Lexer lexer("foo$\nbad $"); EvalString eval; string err; ASSERT_FALSE(lexer.ReadVarValue(&eval, &err)); EXPECT_EQ("input:2: bad $-escape (literal $ must be written as $$)\n" "bad $\n" " ^ near here" , err); }
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x77c30 movq -0x10(%rbp), %rax leaq 0xb9474(%rip), %rcx # 0x163ff8 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
/adityavs[P]ninja/src/lexer_test.cc
LexerTabs::Create()
TEST(Lexer, Tabs) { // Verify we print a useful error on a disallowed character. Lexer lexer(" \tfoobar"); Lexer::Token token = lexer.ReadToken(); EXPECT_EQ(Lexer::INDENT, token); token = lexer.ReadToken(); EXPECT_EQ(Lexer::ERROR, token); EXPECT_EQ("tabs are not allowed, use spaces", lexer.DescribeLastE...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x10, %edi callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0xaaca0 jmp 0xaac63 movq -0x18(%rbp), %rax leaq 0xbba52(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi movq %rax, %rcx movl %edx, %...
/adityavs[P]ninja/src/lexer_test.cc
LexerTabs::LexerTabs()
TEST(Lexer, Tabs) { // Verify we print a useful error on a disallowed character. Lexer lexer(" \tfoobar"); Lexer::Token token = lexer.ReadToken(); EXPECT_EQ(Lexer::INDENT, token); token = lexer.ReadToken(); EXPECT_EQ(Lexer::ERROR, token); EXPECT_EQ("tabs are not allowed, use spaces", lexer.DescribeLastE...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x77c30 movq -0x10(%rbp), %rax leaq 0xb93d4(%rip), %rcx # 0x164098 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
/adityavs[P]ninja/src/lexer_test.cc
ParserTestRules::Run()
TEST_F(ParserTest, Rules) { ASSERT_NO_FATAL_FAILURE(AssertParse( "rule cat\n" " command = cat $in > $out\n" "\n" "rule date\n" " command = date > $out\n" "\n" "build result: cat in_1.cc in-2.O\n")); ASSERT_EQ(3u, state.bindings_.GetRules().size()); const Rule* rule = state.bindings_.GetRules().begin()->second;...
pushq %rbp movq %rsp, %rbp subq $0xc0, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x80(%rbp) leaq 0xbb952(%rip), %rax # 0x1666c0 movq (%rax), %rdi callq 0x26b80 movq -0x80(%rbp), %rdi movl %eax, -0xc(%rbp) leaq 0x65cfe(%rip), %rsi # 0x110a82 callq 0xb5800 movl -0xc(%rbp), %eax movl %eax, -0x78...
/adityavs[P]ninja/src/manifest_parser_test.cc
ParserTestRuleAttributes::Run()
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" " deps = a\n" " description = a\n" " generator = a\n" " restat = a\n" " rspfile = a\n" " rspfile_content = a\n" )); }
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x18(%rbp) leaq 0xbb6c5(%rip), %rax # 0x1666c0 movq (%rax), %rdi callq 0x26b80 movq -0x18(%rbp), %rdi movl %eax, -0xc(%rbp) leaq 0x65bd9(%rip), %rsi # 0x110bea callq 0xb5800 movl -0xc(%rbp), %eax movl %eax, -0x10...
/adityavs[P]ninja/src/manifest_parser_test.cc
ParserTestIgnoreIndentedComments::Run()
TEST_F(ParserTest, IgnoreIndentedComments) { ASSERT_NO_FATAL_FAILURE(AssertParse( " #indented comment\n" "rule cat\n" " command = cat $in > $out\n" " #generator = 1\n" " restat = 1 # comment\n" " #comment\n" "build result: cat in_1.cc in-2.O\n" " #comment\n")); ASSERT_EQ(2u, state.bindings_.GetRules().size()...
pushq %rbp movq %rsp, %rbp subq $0x100, %rsp # imm = 0x100 movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0xa0(%rbp) leaq 0xbb64f(%rip), %rax # 0x1666c0 movq (%rax), %rdi callq 0x26b80 movq -0xa0(%rbp), %rdi movl %eax, -0xc(%rbp) leaq 0x65be4(%rip), %rsi # 0x110c6e callq 0xb5800 movl -0xc(%r...
/adityavs[P]ninja/src/manifest_parser_test.cc
ParserTestIgnoreIndentedBlankLines::Run()
TEST_F(ParserTest, IgnoreIndentedBlankLines) { // the indented blanks used to cause parse errors ASSERT_NO_FATAL_FAILURE(AssertParse( " \n" "rule cat\n" " command = cat $in > $out\n" " \n" "build result: cat in_1.cc in-2.O\n" " \n" "variable=1\n")); // the variable must be in the top level environment EXPE...
pushq %rbp movq %rsp, %rbp subq $0x90, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x70(%rbp) leaq 0xbb2d2(%rip), %rax # 0x1666c0 movq (%rax), %rdi callq 0x26b80 movq -0x70(%rbp), %rdi movl %eax, -0xc(%rbp) leaq 0x65956(%rip), %rsi # 0x110d5a callq 0xb5800 movl -0xc(%rbp), %eax movl %eax, -0x68...
/adityavs[P]ninja/src/manifest_parser_test.cc
ParserTestResponseFiles::Run()
TEST_F(ParserTest, ResponseFiles) { ASSERT_NO_FATAL_FAILURE(AssertParse( "rule cat_rsp\n" " command = cat $rspfile > $out\n" " rspfile = $rspfile\n" " rspfile_content = $in\n" "\n" "build out: cat_rsp in\n" " rspfile=out.rsp\n")); ASSERT_EQ(2u, state.bindings_.GetRules().size()); const Rule* rule = state.bin...
pushq %rbp movq %rsp, %rbp subq $0x1a0, %rsp # imm = 0x1A0 movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x110(%rbp) leaq 0xbb14f(%rip), %rax # 0x1666c0 movq (%rax), %rdi callq 0x26b80 movq -0x110(%rbp), %rdi movl %eax, -0xc(%rbp) leaq 0x65865(%rip), %rsi # 0x110def callq 0xb5800 movl -0xc(...
/adityavs[P]ninja/src/manifest_parser_test.cc
ParserTestInNewline::Run()
TEST_F(ParserTest, InNewline) { ASSERT_NO_FATAL_FAILURE(AssertParse( "rule cat_rsp\n" " command = cat $in_newline > $out\n" "\n" "build out: cat_rsp in in2\n" " rspfile=out.rsp\n")); ASSERT_EQ(2u, state.bindings_.GetRules().size()); const Rule* rule = state.bindings_.GetRules().begin()->second; EXPECT_EQ("ca...
pushq %rbp movq %rsp, %rbp subq $0x110, %rsp # imm = 0x110 movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0xb0(%rbp) leaq 0xbac3f(%rip), %rax # 0x1666c0 movq (%rax), %rdi callq 0x26b80 movq -0xb0(%rbp), %rdi movl %eax, -0xc(%rbp) leaq 0x654f7(%rip), %rsi # 0x110f91 callq 0xb5800 movl -0xc(%r...
/adityavs[P]ninja/src/manifest_parser_test.cc
ParserTestVariables::Run()
TEST_F(ParserTest, Variables) { ASSERT_NO_FATAL_FAILURE(AssertParse( "l = one-letter-test\n" "rule link\n" " command = ld $l $extra $with_under -o $out $in\n" "\n" "extra = -pthread\n" "with_under = -under\n" "build a: link b c\n" "nested1 = 1\n" "nested2 = $nested1/2\n" "build supernested: link x\n" " extra = $nes...
pushq %rbp movq %rsp, %rbp subq $0x120, %rsp # imm = 0x120 movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0xc0(%rbp) leaq 0xba8df(%rip), %rax # 0x1666c0 movq (%rax), %rdi callq 0x26b80 movq -0xc0(%rbp), %rdi movl %eax, -0xc(%rbp) leaq 0x652a1(%rip), %rsi # 0x11109b callq 0xb5800 movl -0xc(%r...
/adityavs[P]ninja/src/manifest_parser_test.cc
ParserTestVariableScope::Run()
TEST_F(ParserTest, VariableScope) { ASSERT_NO_FATAL_FAILURE(AssertParse( "foo = bar\n" "rule cmd\n" " command = cmd $foo $in $out\n" "\n" "build inner: cmd a\n" " foo = baz\n" "build outer: cmd b\n" "\n" // Extra newline after build line tickles a regression. )); ASSERT_EQ(2u, state.edges_.size()); EXPECT_EQ(...
pushq %rbp movq %rsp, %rbp subq $0xb0, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x70(%rbp) leaq 0xba562(%rip), %rax # 0x1666c0 movq (%rax), %rdi callq 0x26b80 movq -0x70(%rbp), %rdi movl %eax, -0xc(%rbp) leaq 0x6514c(%rip), %rsi # 0x1112c0 callq 0xb5800 movl -0xc(%rbp), %eax movl %eax, -0x64...
/adityavs[P]ninja/src/manifest_parser_test.cc
ParserTestContinuation::Run()
TEST_F(ParserTest, Continuation) { ASSERT_NO_FATAL_FAILURE(AssertParse( "rule link\n" " command = foo bar $\n" " baz\n" "\n" "build a: link c $\n" " d e f\n")); ASSERT_EQ(2u, state.bindings_.GetRules().size()); const Rule* rule = state.bindings_.GetRules().begin()->second; EXPECT_EQ("link", rule->name()); ...
pushq %rbp movq %rsp, %rbp subq $0xc0, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x80(%rbp) leaq 0xba332(%rip), %rax # 0x1666c0 movq (%rax), %rdi callq 0x26b80 movq -0x80(%rbp), %rdi movl %eax, -0xc(%rbp) leaq 0x65012(%rip), %rsi # 0x1113b6 callq 0xb5800 movl -0xc(%rbp), %eax movl %eax, -0x78...
/adityavs[P]ninja/src/manifest_parser_test.cc
ParserTestDollars::Run()
TEST_F(ParserTest, Dollars) { ASSERT_NO_FATAL_FAILURE(AssertParse( "rule foo\n" " command = ${out}bar$$baz$$$\n" "blah\n" "x = $$dollar\n" "build $x: foo y\n" )); EXPECT_EQ("$dollar", state.bindings_.LookupVariable("x")); #ifdef _WIN32 EXPECT_EQ("$dollarbar$baz$blah", state.edges_[0]->EvaluateCommand()); #else ...
pushq %rbp movq %rsp, %rbp subq $0xd0, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x98(%rbp) leaq 0xb9c5f(%rip), %rax # 0x1666c0 movq (%rax), %rdi callq 0x26b80 movq -0x98(%rbp), %rdi movl %eax, -0xc(%rbp) leaq 0x64afa(%rip), %rsi # 0x111574 callq 0xb5800 movl -0xc(%rbp), %eax movl %eax, -0x8c...
/adityavs[P]ninja/src/manifest_parser_test.cc
ParserTestCanonicalizeFile::Run()
TEST_F(ParserTest, CanonicalizeFile) { ASSERT_NO_FATAL_FAILURE(AssertParse( "rule cat\n" " command = cat $in > $out\n" "build out: cat in/1 in//2\n" "build in/1: cat\n" "build in/2: cat\n")); EXPECT_TRUE(state.LookupNode("in/1")); EXPECT_TRUE(state.LookupNode("in/2")); EXPECT_FALSE(state.LookupNode("in//1"));...
pushq %rbp movq %rsp, %rbp subq $0xa0, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x60(%rbp) leaq 0xb9732(%rip), %rax # 0x1666c0 movq (%rax), %rdi callq 0x26b80 movq -0x60(%rbp), %rdi movl %eax, -0xc(%rbp) leaq 0x647f8(%rip), %rsi # 0x11179c callq 0xb5800 movl -0xc(%rbp), %eax movl %eax, -0x54...
/adityavs[P]ninja/src/manifest_parser_test.cc
ParserTestPathVariables::Run()
TEST_F(ParserTest, PathVariables) { ASSERT_NO_FATAL_FAILURE(AssertParse( "rule cat\n" " command = cat $in > $out\n" "dir = out\n" "build $dir/exe: cat src\n")); EXPECT_FALSE(state.LookupNode("$dir/exe")); EXPECT_TRUE(state.LookupNode("out/exe")); }
pushq %rbp movq %rsp, %rbp subq $0x60, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x40(%rbp) leaq 0xb9515(%rip), %rax # 0x1666c0 movq (%rax), %rdi callq 0x26b80 movq -0x40(%rbp), %rdi movl %eax, -0xc(%rbp) leaq 0x646b6(%rip), %rsi # 0x111877 callq 0xb5800 movl -0xc(%rbp), %eax movl %eax, -0x34...
/adityavs[P]ninja/src/manifest_parser_test.cc
ParserTestCanonicalizePaths::Run()
TEST_F(ParserTest, CanonicalizePaths) { ASSERT_NO_FATAL_FAILURE(AssertParse( "rule cat\n" " command = cat $in > $out\n" "build ./out.o: cat ./bar/baz/../foo.cc\n")); EXPECT_FALSE(state.LookupNode("./out.o")); EXPECT_TRUE(state.LookupNode("out.o")); EXPECT_FALSE(state.LookupNode("./bar/baz/../foo.cc")); EXPE...
pushq %rbp movq %rsp, %rbp subq $0xa0, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x60(%rbp) leaq 0xb93d2(%rip), %rax # 0x1666c0 movq (%rax), %rdi callq 0x26b80 movq -0x60(%rbp), %rdi movl %eax, -0xc(%rbp) leaq 0x64604(%rip), %rsi # 0x111908 callq 0xb5800 movl -0xc(%rbp), %eax movl %eax, -0x54...
/adityavs[P]ninja/src/manifest_parser_test.cc
ParserTestPhonySelfReferenceKept::Run()
TEST_F(ParserTest, PhonySelfReferenceKept) { const char kInput[] = "build a: phony a\n"; ManifestParserOptions parser_opts; parser_opts.phony_cycle_action_ = kPhonyCycleActionError; ManifestParser parser(&state, &fs_, parser_opts); string err; EXPECT_TRUE(parser.ParseTest(kInput, &err)); EXPECT_EQ("", err...
pushq %rbp movq %rsp, %rbp subq $0x170, %rsp # imm = 0x170 movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x128(%rbp) movaps 0x6756f(%rip), %xmm0 # 0x115180 movaps %xmm0, -0x20(%rbp) movw $0xa, -0x10(%rbp) leaq -0x28(%rbp), %rdi callq 0x265b0 movq -0x128(%rbp), %rdx movl $0x1, -0x24(%rbp) movq %r...
/adityavs[P]ninja/src/manifest_parser_test.cc
ParserTestMissingInput::Run()
TEST_F(ParserTest, MissingInput) { State local_state; ManifestParser parser(&local_state, &fs_); string err; EXPECT_FALSE(parser.Load("build.ninja", &err)); EXPECT_EQ("loading 'build.ninja': No such file or directory", err); }
pushq %rbp movq %rsp, %rbp subq $0x200, %rsp # imm = 0x200 movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x1e0(%rbp) leaq -0x110(%rbp), %rdi callq 0xf2630 movq -0x1e0(%rbp), %rax addq $0x118, %rax # imm = 0x118 movq %rax, -0x1d8(%rbp) leaq -0x178(%rbp), %rdi callq 0x265b0 jmp 0xb2268 mov...
/adityavs[P]ninja/src/manifest_parser_test.cc
ParserTestMultipleOutputs::Run()
TEST_F(ParserTest, MultipleOutputs) { State local_state; ManifestParser parser(&local_state, NULL); string err; EXPECT_TRUE(parser.ParseTest("rule cc\n command = foo\n depfile = bar\n" "build a.o b.o: cc c.cc\n", &err)); EXPECT_EQ("", err); }
pushq %rbp movq %rsp, %rbp subq $0x1f0, %rsp # imm = 0x1F0 movq %rdi, -0x8(%rbp) leaq -0x110(%rbp), %rdi callq 0xf2630 leaq -0x178(%rbp), %rdi callq 0x265b0 jmp 0xb2479 movq -0x178(%rbp), %rcx xorl %eax, %eax movl %eax, %edx leaq -0x170(%rbp), %rdi leaq -0x110(%rbp), %rsi callq 0xecd20 jmp 0xb2499 leaq -0x1a...
/adityavs[P]ninja/src/manifest_parser_test.cc
ParserTestMultipleOutputsWithDeps::Run()
TEST_F(ParserTest, MultipleOutputsWithDeps) { State local_state; ManifestParser parser(&local_state, NULL); string err; EXPECT_TRUE(parser.ParseTest("rule cc\n command = foo\n deps = gcc\n" "build a.o b.o: cc c.cc\n", &err)); EXPECT_EQ("", err); ...
pushq %rbp movq %rsp, %rbp subq $0x1f0, %rsp # imm = 0x1F0 movq %rdi, -0x8(%rbp) leaq -0x110(%rbp), %rdi callq 0xf2630 leaq -0x178(%rbp), %rdi callq 0x265b0 jmp 0xb2679 movq -0x178(%rbp), %rcx xorl %eax, %eax movl %eax, %edx leaq -0x170(%rbp), %rdi leaq -0x110(%rbp), %rsi callq 0xecd20 jmp 0xb2699 leaq -0x1a...
/adityavs[P]ninja/src/manifest_parser_test.cc
ParserTestSubNinja::Run()
TEST_F(ParserTest, SubNinja) { fs_.Create("test.ninja", "var = inner\n" "build $builddir/inner: varref\n"); ASSERT_NO_FATAL_FAILURE(AssertParse( "builddir = some_dir/\n" "rule varref\n" " command = varref $var\n" "var = outer\n" "build $builddir/outer: varref\n" "subninja test.ninja\n" "build $builddir/out...
pushq %rbp movq %rsp, %rbp subq $0x1a0, %rsp # imm = 0x1A0 movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x100(%rbp) addq $0x118, %rax # imm = 0x118 movq %rax, -0xf8(%rbp) leaq -0x29(%rbp), %rdi movq %rdi, -0xf0(%rbp) callq 0x1b980 movq -0xf0(%rbp), %rdx leaq 0x61344(%rip), %rsi # 0x...
/adityavs[P]ninja/src/manifest_parser_test.cc
ParserTestMissingSubNinja::Run()
TEST_F(ParserTest, MissingSubNinja) { ManifestParser parser(&state, &fs_); string err; EXPECT_FALSE(parser.ParseTest("subninja foo.ninja\n", &err)); EXPECT_EQ("input:1: loading 'foo.ninja': No such file or directory\n" "subninja foo.ninja\n" " ^ near here" , ...
pushq %rbp movq %rsp, %rbp subq $0x100, %rsp # imm = 0x100 movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, %rcx addq $0x10, %rcx movq %rcx, -0xe8(%rbp) addq $0x118, %rax # imm = 0x118 movq %rax, -0xe0(%rbp) leaq -0x70(%rbp), %rdi callq 0x265b0 movq -0xe8(%rbp), %rsi movq -0xe0(%rbp), %rdx m...
/adityavs[P]ninja/src/manifest_parser_test.cc
ParserTestDuplicateRuleInDifferentSubninjas::Run()
TEST_F(ParserTest, DuplicateRuleInDifferentSubninjas) { // Test that rules are scoped to subninjas. fs_.Create("test.ninja", "rule cat\n" " command = cat\n"); ManifestParser parser(&state, &fs_); string err; EXPECT_TRUE(parser.ParseTest("rule cat\n" " ...
pushq %rbp movq %rsp, %rbp subq $0x160, %rsp # imm = 0x160 movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x130(%rbp) addq $0x118, %rax # imm = 0x118 movq %rax, -0x128(%rbp) leaq -0x29(%rbp), %rdi movq %rdi, -0x120(%rbp) callq 0x1b980 movq -0x120(%rbp), %rdx leaq 0x60bb4(%rip), %rsi #...
/adityavs[P]ninja/src/manifest_parser_test.cc
ParserTestDuplicateRuleInDifferentSubninjasWithInclude::Run()
TEST_F(ParserTest, DuplicateRuleInDifferentSubninjasWithInclude) { // Test that rules are scoped to subninjas even with includes. fs_.Create("rules.ninja", "rule cat\n" " command = cat\n"); fs_.Create("test.ninja", "include rules.ninja\n" "build x : cat\n"); Ma...
pushq %rbp movq %rsp, %rbp subq $0x1d0, %rsp # imm = 0x1D0 movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x180(%rbp) addq $0x118, %rax # imm = 0x118 movq %rax, -0x178(%rbp) leaq -0x29(%rbp), %rdi movq %rdi, -0x170(%rbp) callq 0x1b980 movq -0x170(%rbp), %rdx leaq 0x60d20(%rip), %rsi #...
/adityavs[P]ninja/src/manifest_parser_test.cc
ParserTestImplicitOutput::Run()
TEST_F(ParserTest, ImplicitOutput) { ASSERT_NO_FATAL_FAILURE(AssertParse( "rule cat\n" " command = cat $in > $out\n" "build foo | imp: cat bar\n")); Edge* edge = state.LookupNode("imp")->in_edge(); ASSERT_EQ(edge->outputs_.size(), 2); EXPECT_TRUE(edge->is_implicit_out(1)); }
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x38(%rbp) leaq 0xb28a5(%rip), %rax # 0x1666c0 movq (%rax), %rdi callq 0x26b80 movq -0x38(%rbp), %rdi movl %eax, -0xc(%rbp) leaq 0x60425(%rip), %rsi # 0x114256 callq 0xb5800 movl -0xc(%rbp), %eax movl %eax, -0x2c...
/adityavs[P]ninja/src/manifest_parser_test.cc
ParserTestImplicitOutputDupes::Run()
TEST_F(ParserTest, ImplicitOutputDupes) { ASSERT_NO_FATAL_FAILURE(AssertParse( "rule cat\n" " command = cat $in > $out\n" "build foo foo foo | foo foo foo foo: cat bar\n")); Edge* edge = state.LookupNode("foo")->in_edge(); ASSERT_EQ(edge->outputs_.size(), 1); EXPECT_FALSE(edge->is_implicit_out(0)); }
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x38(%rbp) leaq 0xb2465(%rip), %rax # 0x1666c0 movq (%rax), %rdi callq 0x26b80 movq -0x38(%rbp), %rdi movl %eax, -0xc(%rbp) leaq 0x60129(%rip), %rsi # 0x11439a callq 0xb5800 movl -0xc(%rbp), %eax movl %eax, -0x2c...
/adityavs[P]ninja/src/manifest_parser_test.cc
ParserTestNoExplicitOutput::Run()
TEST_F(ParserTest, NoExplicitOutput) { ManifestParser parser(&state, NULL); string err; EXPECT_TRUE(parser.ParseTest( "rule cat\n" " command = cat $in > $out\n" "build | imp : cat bar\n", &err)); }
pushq %rbp movq %rsp, %rbp subq $0xf0, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax addq $0x10, %rax movq %rax, -0xe0(%rbp) leaq -0x70(%rbp), %rdi callq 0x265b0 movq -0xe0(%rbp), %rsi movq -0x70(%rbp), %rcx xorl %eax, %eax movl %eax, %edx leaq -0x68(%rbp), %rdi callq 0xecd20 leaq -0x90(%rbp), %rdi callq 0x1b760 lea...
/adityavs[P]ninja/src/manifest_parser_test.cc
ParserTestDefaultDefault::Run()
TEST_F(ParserTest, DefaultDefault) { ASSERT_NO_FATAL_FAILURE(AssertParse( "rule cat\n command = cat $in > $out\n" "build a: cat foo\n" "build b: cat foo\n" "build c: cat foo\n" "build d: cat foo\n")); string err; EXPECT_EQ(4u, state.DefaultNodes(&err).size()); EXPECT_EQ("", err); }
pushq %rbp movq %rsp, %rbp subq $0x80, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x60(%rbp) leaq 0xb21c2(%rip), %rax # 0x1666c0 movq (%rax), %rdi callq 0x26b80 movq -0x60(%rbp), %rdi movl %eax, -0xc(%rbp) leaq 0x5ff72(%rip), %rsi # 0x114486 callq 0xb5800 movl -0xc(%rbp), %eax movl %eax, -0x58...
/adityavs[P]ninja/src/manifest_parser_test.cc
ParserTestDefaultDefaultCycle::Run()
TEST_F(ParserTest, DefaultDefaultCycle) { ASSERT_NO_FATAL_FAILURE(AssertParse( "rule cat\n command = cat $in > $out\n" "build a: cat a\n")); string err; EXPECT_EQ(0u, state.DefaultNodes(&err).size()); EXPECT_EQ("could not determine root nodes of build graph", err); }
pushq %rbp movq %rsp, %rbp subq $0x80, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x60(%rbp) leaq 0xb2052(%rip), %rax # 0x1666c0 movq (%rax), %rdi callq 0x26b80 movq -0x60(%rbp), %rdi movl %eax, -0xc(%rbp) leaq 0x5fe91(%rip), %rsi # 0x114515 callq 0xb5800 movl -0xc(%rbp), %eax movl %eax, -0x58...
/adityavs[P]ninja/src/manifest_parser_test.cc
ParserTestDefaultStatements::Run()
TEST_F(ParserTest, DefaultStatements) { ASSERT_NO_FATAL_FAILURE(AssertParse( "rule cat\n command = cat $in > $out\n" "build a: cat foo\n" "build b: cat foo\n" "build c: cat foo\n" "build d: cat foo\n" "third = c\n" "default a b\n" "default $third\n")); string err; vector<Node*> nodes = state.DefaultNodes(&err);...
pushq %rbp movq %rsp, %rbp subq $0xe0, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x68(%rbp) leaq 0xb1ee2(%rip), %rax # 0x1666c0 movq (%rax), %rdi callq 0x26b80 movq -0x68(%rbp), %rdi movl %eax, -0xc(%rbp) leaq 0x5fde0(%rip), %rsi # 0x1145d4 callq 0xb5800 movl -0xc(%rbp), %eax movl %eax, -0x5c...
/adityavs[P]ninja/src/manifest_parser_test.cc
ParserTestCRLF::Run()
TEST_F(ParserTest, CRLF) { State local_state; ManifestParser parser(&local_state, NULL); string err; EXPECT_TRUE(parser.ParseTest("# comment with crlf\r\n", &err)); EXPECT_TRUE(parser.ParseTest("foo = foo\nbar = bar\r\n", &err)); EXPECT_TRUE(parser.ParseTest( "pool link_pool\r\n" " depth = 15\...
pushq %rbp movq %rsp, %rbp subq $0x270, %rsp # imm = 0x270 movq %rdi, -0x8(%rbp) leaq -0x110(%rbp), %rdi callq 0xf2630 leaq -0x178(%rbp), %rdi callq 0x265b0 jmp 0xb4b79 movq -0x178(%rbp), %rcx xorl %eax, %eax movl %eax, %edx leaq -0x170(%rbp), %rdi leaq -0x110(%rbp), %rsi callq 0xecd20 jmp 0xb4b99 leaq -0x1a...
/adityavs[P]ninja/src/manifest_parser_test.cc
ParserTestDyndepNotInput::Run()
TEST_F(ParserTest, DyndepNotInput) { State lstate; ManifestParser parser(&lstate, NULL); string err; EXPECT_FALSE(parser.ParseTest( "rule touch\n" " command = touch $out\n" "build result: touch\n" " dyndep = notin\n", &err)); EXPECT_EQ("input:5: dyndep 'notin' is not an input\...
pushq %rbp movq %rsp, %rbp subq $0x1f0, %rsp # imm = 0x1F0 movq %rdi, -0x8(%rbp) leaq -0x110(%rbp), %rdi callq 0xf2630 leaq -0x178(%rbp), %rdi callq 0x265b0 jmp 0xb4fe9 movq -0x178(%rbp), %rcx xorl %eax, %eax movl %eax, %edx leaq -0x170(%rbp), %rdi leaq -0x110(%rbp), %rsi callq 0xecd20 jmp 0xb5009 leaq -0x1a...
/adityavs[P]ninja/src/manifest_parser_test.cc
ParserTestDyndepImplicitInput::Run()
TEST_F(ParserTest, DyndepImplicitInput) { ASSERT_NO_FATAL_FAILURE(AssertParse( "rule cat\n" " command = cat $in > $out\n" "build result: cat in | dd\n" " dyndep = dd\n")); Edge* edge = state.GetNode("result", 0)->in_edge(); ASSERT_TRUE(edge->dyndep_); EXPECT_TRUE(edge->dyndep_->dyndep_pending()); EXPECT_EQ(...
pushq %rbp movq %rsp, %rbp subq $0x50, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x38(%rbp) leaq 0xb1355(%rip), %rax # 0x1666c0 movq (%rax), %rdi callq 0x26b80 movq -0x38(%rbp), %rdi movl %eax, -0xc(%rbp) leaq 0x5f6da(%rip), %rsi # 0x114a5b callq 0xb5800 movl -0xc(%rbp), %eax movl %eax, -0x2c...
/adityavs[P]ninja/src/manifest_parser_test.cc
ParserTest::AssertParse(char const*)
void AssertParse(const char* input) { ManifestParser parser(&state, &fs_); string err; EXPECT_TRUE(parser.ParseTest(input, &err)); ASSERT_EQ("", err); VerifyGraph(state); }
pushq %rbp movq %rsp, %rbp subq $0x120, %rsp # imm = 0x120 movq %rdi, -0x8(%rbp) movq %rsi, -0x10(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x100(%rbp) movq %rax, %rcx addq $0x10, %rcx movq %rcx, -0xf8(%rbp) addq $0x118, %rax # imm = 0x118 movq %rax, -0xf0(%rbp) leaq -0x78(%rbp), %rdi callq 0x265b0 ...
/adityavs[P]ninja/src/manifest_parser_test.cc
RegisterParserTestResponseFiles::RegisterParserTestResponseFiles()
TEST_F(ParserTest, ResponseFiles) { ASSERT_NO_FATAL_FAILURE(AssertParse( "rule cat_rsp\n" " command = cat $rspfile > $out\n" " rspfile = $rspfile\n" " rspfile_content = $in\n" "\n" "build out: cat_rsp in\n" " rspfile=out.rsp\n")); ASSERT_EQ(2u, state.bindings_.GetRules().size()); const Rule* rule = state.bin...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0x1edd(%rip), %rdi # 0xb7a70 leaq 0x5f034(%rip), %rsi # 0x114bce callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nop
/adityavs[P]ninja/src/manifest_parser_test.cc
RegisterParserTestVariables::RegisterParserTestVariables()
TEST_F(ParserTest, Variables) { ASSERT_NO_FATAL_FAILURE(AssertParse( "l = one-letter-test\n" "rule link\n" " command = ld $l $extra $with_under -o $out $in\n" "\n" "extra = -pthread\n" "with_under = -under\n" "build a: link b c\n" "nested1 = 1\n" "nested2 = $nested1/2\n" "build supernested: link x\n" " extra = $nes...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0x1fbd(%rip), %rdi # 0xb7bb0 leaq 0x5f002(%rip), %rsi # 0x114bfc callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nop
/adityavs[P]ninja/src/manifest_parser_test.cc
ParserTestIgnoreIndentedBlankLines::~ParserTestIgnoreIndentedBlankLines()
TEST_F(ParserTest, IgnoreIndentedBlankLines) { // the indented blanks used to cause parse errors ASSERT_NO_FATAL_FAILURE(AssertParse( " \n" "rule cat\n" " command = cat $in > $out\n" " \n" "build result: cat in_1.cc in-2.O\n" " \n" "variable=1\n")); // the variable must be in the top level environment EXPE...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi callq 0xb7790 addq $0x10, %rsp popq %rbp retq nopl (%rax,%rax)
/adityavs[P]ninja/src/manifest_parser_test.cc
ParserTestRuleAttributes::Create()
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" " deps = a\n" " description = a\n" " generator = a\n" " restat = a\n" " rspfile = a\n" " rspfile_content = a\n" )); }
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x1e8, %edi # imm = 0x1E8 callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0xb78f0 jmp 0xb78b3 movq -0x18(%rbp), %rax leaq 0xaee02(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi mo...
/adityavs[P]ninja/src/manifest_parser_test.cc
ParserTestRuleAttributes::ParserTestRuleAttributes()
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" " deps = a\n" " description = a\n" " generator = a\n" " restat = a\n" " rspfile = a\n" " rspfile_content = a\n" )); }
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0xb7700 movq -0x10(%rbp), %rax leaq 0xac874(%rip), %rcx # 0x164188 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
/adityavs[P]ninja/src/manifest_parser_test.cc
ParserTestIgnoreIndentedComments::Create()
TEST_F(ParserTest, IgnoreIndentedComments) { ASSERT_NO_FATAL_FAILURE(AssertParse( " #indented comment\n" "rule cat\n" " command = cat $in > $out\n" " #generator = 1\n" " restat = 1 # comment\n" " #comment\n" "build result: cat in_1.cc in-2.O\n" " #comment\n")); ASSERT_EQ(2u, state.bindings_.GetRules().size()...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x1e8, %edi # imm = 0x1E8 callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0xb7990 jmp 0xb7953 movq -0x18(%rbp), %rax leaq 0xaed62(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi mo...
/adityavs[P]ninja/src/manifest_parser_test.cc
ParserTestIgnoreIndentedComments::ParserTestIgnoreIndentedComments()
TEST_F(ParserTest, IgnoreIndentedComments) { ASSERT_NO_FATAL_FAILURE(AssertParse( " #indented comment\n" "rule cat\n" " command = cat $in > $out\n" " #generator = 1\n" " restat = 1 # comment\n" " #comment\n" "build result: cat in_1.cc in-2.O\n" " #comment\n")); ASSERT_EQ(2u, state.bindings_.GetRules().size()...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0xb7700 movq -0x10(%rbp), %rax leaq 0xac824(%rip), %rcx # 0x1641d8 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
/adityavs[P]ninja/src/manifest_parser_test.cc
ParserTestIgnoreIndentedBlankLines::Create()
TEST_F(ParserTest, IgnoreIndentedBlankLines) { // the indented blanks used to cause parse errors ASSERT_NO_FATAL_FAILURE(AssertParse( " \n" "rule cat\n" " command = cat $in > $out\n" " \n" "build result: cat in_1.cc in-2.O\n" " \n" "variable=1\n")); // the variable must be in the top level environment EXPE...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x1e8, %edi # imm = 0x1E8 callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0xb7a30 jmp 0xb79f3 movq -0x18(%rbp), %rax leaq 0xaecc2(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi mo...
/adityavs[P]ninja/src/manifest_parser_test.cc
ParserTestIgnoreIndentedBlankLines::ParserTestIgnoreIndentedBlankLines()
TEST_F(ParserTest, IgnoreIndentedBlankLines) { // the indented blanks used to cause parse errors ASSERT_NO_FATAL_FAILURE(AssertParse( " \n" "rule cat\n" " command = cat $in > $out\n" " \n" "build result: cat in_1.cc in-2.O\n" " \n" "variable=1\n")); // the variable must be in the top level environment EXPE...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0xb7700 movq -0x10(%rbp), %rax leaq 0xac7d4(%rip), %rcx # 0x164228 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
/adityavs[P]ninja/src/manifest_parser_test.cc
ParserTestResponseFiles::Create()
TEST_F(ParserTest, ResponseFiles) { ASSERT_NO_FATAL_FAILURE(AssertParse( "rule cat_rsp\n" " command = cat $rspfile > $out\n" " rspfile = $rspfile\n" " rspfile_content = $in\n" "\n" "build out: cat_rsp in\n" " rspfile=out.rsp\n")); ASSERT_EQ(2u, state.bindings_.GetRules().size()); const Rule* rule = state.bin...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x1e8, %edi # imm = 0x1E8 callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0xb7ad0 jmp 0xb7a93 movq -0x18(%rbp), %rax leaq 0xaec22(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi mo...
/adityavs[P]ninja/src/manifest_parser_test.cc
ParserTestResponseFiles::ParserTestResponseFiles()
TEST_F(ParserTest, ResponseFiles) { ASSERT_NO_FATAL_FAILURE(AssertParse( "rule cat_rsp\n" " command = cat $rspfile > $out\n" " rspfile = $rspfile\n" " rspfile_content = $in\n" "\n" "build out: cat_rsp in\n" " rspfile=out.rsp\n")); ASSERT_EQ(2u, state.bindings_.GetRules().size()); const Rule* rule = state.bin...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0xb7700 movq -0x10(%rbp), %rax leaq 0xac784(%rip), %rcx # 0x164278 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
/adityavs[P]ninja/src/manifest_parser_test.cc
ParserTestInNewline::Create()
TEST_F(ParserTest, InNewline) { ASSERT_NO_FATAL_FAILURE(AssertParse( "rule cat_rsp\n" " command = cat $in_newline > $out\n" "\n" "build out: cat_rsp in in2\n" " rspfile=out.rsp\n")); ASSERT_EQ(2u, state.bindings_.GetRules().size()); const Rule* rule = state.bindings_.GetRules().begin()->second; EXPECT_EQ("ca...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x1e8, %edi # imm = 0x1E8 callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0xb7b70 jmp 0xb7b33 movq -0x18(%rbp), %rax leaq 0xaeb82(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi mo...
/adityavs[P]ninja/src/manifest_parser_test.cc