name
stringlengths
1
473k
code
stringlengths
7
647k
asm
stringlengths
4
3.39M
file
stringlengths
8
196
llvm::itanium_demangle::AbstractManglingParser<llvm::itanium_demangle::ManglingParser<(anonymous namespace)::DefaultAllocator>, (anonymous namespace)::DefaultAllocator>::parseAbiTags(llvm::itanium_demangle::Node*)
Node *AbstractManglingParser<Derived, Alloc>::parseAbiTags(Node *N) { while (consumeIf('B')) { std::string_view SN = parseBareSourceName(); if (SN.empty()) return nullptr; N = make<AbiTagAttr>(N, SN); if (!N) return nullptr; } return N; }
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx pushq %rax movq %rsi, %r14 movq (%rdi), %rcx cmpq 0x8(%rdi), %rcx je 0x17587c1 movq %rdi, %rbx leaq 0x330(%rdi), %r15 leaq 0x20f7c22(%rip), %rbp # 0x3850378 addq $0x10, %rbp cmpb $0x42, (%rcx) jne 0x17587c1 incq %rcx movq %rcx, (%rbx) movq %rbx, %rdi c...
/llvm/Demangle/ItaniumDemangle.h
llvm::itanium_demangle::AbstractManglingParser<llvm::itanium_demangle::ManglingParser<(anonymous namespace)::DefaultAllocator>, (anonymous namespace)::DefaultAllocator>::parseFunctionType()
Node *AbstractManglingParser<Derived, Alloc>::parseFunctionType() { Qualifiers CVQuals = parseCVQualifiers(); Node *ExceptionSpec = nullptr; if (consumeIf("Do")) { ExceptionSpec = make<NameType>("noexcept"); if (!ExceptionSpec) return nullptr; } else if (consumeIf("DO")) { Node *E = getDerive...
pushq %rbp pushq %r15 pushq %r14 pushq %r13 pushq %r12 pushq %rbx subq $0x18, %rsp movq %rdi, %r14 callq 0x17544e8 movl %eax, %ebp movq (%r14), %rax movq 0x8(%r14), %rcx movq %rcx, %rdx subq %rax, %rdx cmpq $0x2, %rdx jae 0x17588bf xorl %r15d, %r15d jmp 0x1758945 cmpw $0x6f44, (%rax) # imm = 0x6F44 je 0x175892c...
/llvm/Demangle/ItaniumDemangle.h
CiA402DeviceICanbus::c2co(can_msg const&, co_msg&)
long CiA402DeviceICanbus::c2co(const can_msg & input, co_msg & output) { //verificar el bit de start to frame de can output.dlc_co=input.dlc; output.id_co=input.id; output.id_co<<=1; output.rtr=input.rtr; output.ts=input.ts; for( int i=0; i < 8; i++) { output.data_co[i] = inpu...
movzwl (%rsi), %eax andl $0xf, %eax movw %ax, 0x8(%rdx) movzwl 0x6(%rsi), %eax leal (%rax,%rax), %ecx movw %cx, (%rdx) movzwl (%rsi), %ecx shrl $0x4, %ecx andl $0x1, %ecx leal (%rcx,%rax,2), %eax movw %ax, (%rdx) movl 0x2(%rsi), %eax movl %eax, 0x4(%rdx) xorl %eax, %eax movb 0xa(%rsi,%rax), %cl movb %cl, 0xa(%rdx,%rax)...
/dgomezmartinez[P]CiA402Device-example/lib/CiA402Device/CiA402DeviceICanbus.cpp
(anonymous namespace)::RegisterBuildLogTestWriteRead::RegisterBuildLogTestWriteRead()
TEST_F(BuildLogTest, WriteRead) { AssertParse(&state_, "build out: cat mid\n" "build mid: cat in\n"); BuildLog log1; string err; EXPECT_TRUE(log1.OpenForWrite(kTestFilename, *this, &err)); ASSERT_EQ("", err); log1.RecordCommand(state_.edges_[0], 15, 18); log1.RecordCommand(state_.edges_[1], 20, 25); lo...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0x1fd(%rip), %rdi # 0x1f270 leaq 0xe0f8a(%rip), %rsi # 0x100004 callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
/adityavs[P]ninja/src/build_log_test.cc
(anonymous namespace)::BuildLogTestTruncate::~BuildLogTestTruncate()
TEST_F(BuildLogTest, Truncate) { AssertParse(&state_, "build out: cat mid\n" "build mid: cat in\n"); { BuildLog log1; string err; EXPECT_TRUE(log1.OpenForWrite(kTestFilename, *this, &err)); ASSERT_EQ("", err); log1.RecordCommand(state_.edges_[0], 15, 18); log1.RecordCommand(state_.edges_[1]...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi callq 0x1fd90 addq $0x10, %rsp popq %rbp retq nopl (%rax,%rax)
/adityavs[P]ninja/src/build_log_test.cc
(anonymous namespace)::BuildLogTestDuplicateVersionHeader::Run()
TEST_F(BuildLogTest, DuplicateVersionHeader) { // Old versions of ninja accidentally wrote multiple version headers to the // build log on Windows. This shouldn't crash, and the second version header // should be ignored. FILE* f = fopen(kTestFilename, "wb"); fprintf(f, "# ninja log v4\n"); fprintf(f, "123\...
pushq %rbp movq %rsp, %rbp subq $0x190, %rsp # imm = 0x190 movq %rdi, -0x8(%rbp) leaq 0xde92a(%rip), %rdi # 0x100940 leaq 0xde228(%rip), %rsi # 0x100245 callq 0x1b600 movq %rax, -0x10(%rbp) movq -0x10(%rbp), %rdi leaq 0xde217(%rip), %rsi # 0x100248 movq %rsi, -0x138(%rbp) xorl %eax, %eax movb %al...
/adityavs[P]ninja/src/build_log_test.cc
(anonymous namespace)::BuildLogTestRestat::Create()
TEST_F(BuildLogTest, Restat) { FILE* f = fopen(kTestFilename, "wb"); fprintf(f, "# ninja log v4\n" "1\t2\t3\tout\tcommand\n"); fclose(f); std::string err; BuildLog log; EXPECT_TRUE(log.Load(kTestFilename, &err)); ASSERT_EQ("", err); BuildLog::LogEntry* e = log.LookupByOutput("out"); ASSER...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x120, %edi # imm = 0x120 callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0x22870 jmp 0x22833 movq -0x18(%rbp), %rax leaq 0x143e82(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi mo...
/adityavs[P]ninja/src/build_log_test.cc
(anonymous namespace)::BuildLogTestRestat::BuildLogTestRestat()
TEST_F(BuildLogTest, Restat) { FILE* f = fopen(kTestFilename, "wb"); fprintf(f, "# ninja log v4\n" "1\t2\t3\tout\tcommand\n"); fclose(f); std::string err; BuildLog log; EXPECT_TRUE(log.Load(kTestFilename, &err)); ASSERT_EQ("", err); BuildLog::LogEntry* e = log.LookupByOutput("out"); ASSER...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x1f320 movq -0x10(%rbp), %rax leaq 0x13b2fc(%rip), %rcx # 0x15db90 addq $0x10, %rcx movq %rcx, (%rax) leaq 0x13b2ee(%rip), %rcx # 0x15db90 addq $0x50, %rcx movq %rcx, 0x118(%rax) addq $0x10, %rsp ...
/adityavs[P]ninja/src/build_log_test.cc
(anonymous namespace)::BuildLogTestMultiTargetEdge::BuildLogTestMultiTargetEdge()
TEST_F(BuildLogTest, MultiTargetEdge) { AssertParse(&state_, "build out out.d: cat\n"); BuildLog log; log.RecordCommand(state_.edges_[0], 21, 22); ASSERT_EQ(2u, log.entries().size()); BuildLog::LogEntry* e1 = log.LookupByOutput("out"); ASSERT_TRUE(e1); BuildLog::LogEntry* e2 = log.LookupByOutput("out.d"...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x1f320 movq -0x10(%rbp), %rax leaq 0x13a23c(%rip), %rcx # 0x15dcd0 addq $0x10, %rcx movq %rcx, (%rax) leaq 0x13a22e(%rip), %rcx # 0x15dcd0 addq $0x50, %rcx movq %rcx, 0x118(%rax) addq $0x10, %rsp ...
/adityavs[P]ninja/src/build_log_test.cc
(anonymous namespace)::BuildLogTestMultiTargetEdge::Run()
TEST_F(BuildLogTest, MultiTargetEdge) { AssertParse(&state_, "build out out.d: cat\n"); BuildLog log; log.RecordCommand(state_.edges_[0], 21, 22); ASSERT_EQ(2u, log.entries().size()); BuildLog::LogEntry* e1 = log.LookupByOutput("out"); ASSERT_TRUE(e1); BuildLog::LogEntry* e2 = log.LookupByOutput("out.d"...
pushq %rbp movq %rsp, %rbp subq $0x170, %rsp # imm = 0x170 movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x100(%rbp) addq $0x10, %rax movq %rax, -0x108(%rbp) leaq -0x10(%rbp), %rdi callq 0x265b0 movq -0x108(%rbp), %rdi movq -0x10(%rbp), %rdx leaq 0xdcc79(%rip), %rsi # 0x1007c9 callq 0xbee60 lea...
/adityavs[P]ninja/src/build_log_test.cc
(anonymous namespace)::BuildLogRecompactTestRecompact::~BuildLogRecompactTestRecompact()
TEST_F(BuildLogRecompactTest, Recompact) { AssertParse(&state_, "build out: cat in\n" "build out2: cat in\n"); BuildLog log1; string err; EXPECT_TRUE(log1.OpenForWrite(kTestFilename, *this, &err)); ASSERT_EQ("", err); // Record the same edge several times, to trigger recompaction // the next time the log...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x24210 movq -0x10(%rbp), %rdi movl $0x120, %esi # imm = 0x120 callq 0x1b4d0 addq $0x10, %rsp popq %rbp retq nopl (%rax)
/adityavs[P]ninja/src/build_log_test.cc
BuildWithLogTestRestatSingleDependentOutputDirty::Run()
TEST_F(BuildWithLogTest, RestatSingleDependentOutputDirty) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule true\n" " command = true\n" " restat = 1\n" "rule touch\n" " command = touch\n" "build out1: true in\n" "build out2 out3: touch out1\n" "build out4: touch out2\n" )); ...
pushq %rbp movq %rsp, %rbp subq $0x270, %rsp # imm = 0x270 movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x170(%rbp) leaq 0x12a61f(%rip), %rax # 0x1666c0 movq (%rax), %rdi callq 0x26b80 movl %eax, %ecx movq -0x170(%rbp), %rax movl %ecx, -0xc(%rbp) addq $0x10, %rax movq %rax, -0x168(%rbp) leaq -0...
/adityavs[P]ninja/src/build_test.cc
BuildDryRunAllCommandsShown::Run()
TEST_F(BuildDryRun, AllCommandsShown) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule true\n" " command = true\n" " restat = 1\n" "rule cc\n" " command = cc\n" " restat = 1\n" "build out1: cc in\n" "build out2: true out1\n" "build out3: cat out2\n")); fs_.Create("out1", ""); fs_.Create("out2", ""); fs...
pushq %rbp movq %rsp, %rbp subq $0x280, %rsp # imm = 0x280 movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x1c8(%rbp) leaq 0x128e6f(%rip), %rax # 0x1666c0 movq (%rax), %rdi callq 0x26b80 movl %eax, %ecx movq -0x1c8(%rbp), %rax movl %ecx, -0xc(%rbp) addq $0x10, %rax movq %rax, -0x1c0(%rbp) leaq -0...
/adityavs[P]ninja/src/build_test.cc
BuildTestRspFileSuccess::Run()
TEST_F(BuildTest, RspFileSuccess) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule cat_rsp\n" " command = cat $rspfile > $out\n" " rspfile = $rspfile\n" " rspfile_content = $long_command\n" "rule cat_rsp_out\n" " command = cat $rspfile > $out\n" " rspfile = $out.rsp\n" " rspf...
pushq %rbp movq %rsp, %rbp subq $0x4b0, %rsp # imm = 0x4B0 movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x2c0(%rbp) leaq 0x1286cf(%rip), %rax # 0x1666c0 movq (%rax), %rdi callq 0x26b80 movl %eax, %ecx movq -0x2c0(%rbp), %rax movl %ecx, -0xc(%rbp) addq $0x10, %rax movq %rax, -0x2b8(%rbp) leaq -0...
/adityavs[P]ninja/src/build_test.cc
BuildTestFailedDepsParse::Run()
TEST_F(BuildTest, FailedDepsParse) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build bad_deps.o: cat in1\n" " deps = gcc\n" " depfile = in1.d\n")); string err; EXPECT_TRUE(builder_.AddTarget("bad_deps.o", &err)); ASSERT_EQ("", err); // These deps will fail to parse, as they should only have one // p...
pushq %rbp movq %rsp, %rbp subq $0x140, %rsp # imm = 0x140 movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0xd0(%rbp) leaq 0x12422f(%rip), %rax # 0x1666c0 movq (%rax), %rdi callq 0x26b80 movl %eax, %ecx movq -0xd0(%rbp), %rax movl %ecx, -0xc(%rbp) addq $0x10, %rax movq %rax, -0xc8(%rbp) leaq -0x14...
/adityavs[P]ninja/src/build_test.cc
BuildWithQueryDepsLogTestTwoOutputsDepFileGCCOnlySecondaryOutput::Run()
TEST_F(BuildWithQueryDepsLogTest, TwoOutputsDepFileGCCOnlySecondaryOutput) { // Note: This ends up short-circuiting the node creation due to the primary // output not being present, but it should still work. ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule cp_multi_gcc\n" " command = echo 'out2: $in' > in.d ...
pushq %rbp movq %rsp, %rbp subq $0x240, %rsp # imm = 0x240 movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x118(%rbp) leaq 0x12169f(%rip), %rax # 0x1666c0 movq (%rax), %rdi callq 0x26b80 movl %eax, %ecx movq -0x118(%rbp), %rax movl %ecx, -0xc(%rbp) addq $0x10, %rax movq %rax, -0x110(%rbp) leaq -0...
/adityavs[P]ninja/src/build_test.cc
BuildWithDepsLogTestStraightforward::Run()
TEST_F(BuildWithDepsLogTest, Straightforward) { string err; // Note: in1 was created by the superclass SetUp(). const char* manifest = "build out: cat in1\n" " deps = gcc\n" " depfile = in1.d\n"; { State state; ASSERT_NO_FATAL_FAILURE(AddCatRule(&state)); ASSERT_NO_FATAL_FAILURE(...
pushq %rbp movq %rsp, %rbp subq $0x870, %rsp # imm = 0x870 movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x6c8(%rbp) leaq -0x28(%rbp), %rdi callq 0x1b760 leaq 0xbe8b8(%rip), %rax # 0x104132 movq %rax, -0x30(%rbp) leaq -0x138(%rbp), %rdi callq 0xf2630 jmp 0x4588c leaq 0x120e2d(%rip), %rax # 0...
/adityavs[P]ninja/src/build_test.cc
BuildWithDepsLogTestObsoleteDeps::Run()
TEST_F(BuildWithDepsLogTest, ObsoleteDeps) { string err; // Note: in1 was created by the superclass SetUp(). const char* manifest = "build out: cat in1\n" " deps = gcc\n" " depfile = in1.d\n"; { // Run an ordinary build that gathers dependencies. fs_.Create("in1", ""); fs_.Create...
pushq %rbp movq %rsp, %rbp subq $0x940, %rsp # imm = 0x940 movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x780(%rbp) leaq -0x28(%rbp), %rdi callq 0x1b760 movq -0x780(%rbp), %rax leaq 0xbd621(%rip), %rcx # 0x104132 movq %rcx, -0x30(%rbp) addq $0x188, %rax # imm = 0x188 movq %rax, -0x7...
/adityavs[P]ninja/src/build_test.cc
BuildWithDepsLogTestDepsIgnoredInDryRun::Run()
TEST_F(BuildWithDepsLogTest, DepsIgnoredInDryRun) { const char* manifest = "build out: cat in1\n" " deps = gcc\n" " depfile = in1.d\n"; fs_.Create("out", ""); fs_.Tick(); fs_.Create("in1", ""); State state; ASSERT_NO_FATAL_FAILURE(AddCatRule(&state)); ASSERT_NO_FATAL_FAILURE(AssertPa...
pushq %rbp movq %rsp, %rbp subq $0x3a0, %rsp # imm = 0x3A0 movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x318(%rbp) leaq 0xbc231(%rip), %rcx # 0x104132 movq %rcx, -0x10(%rbp) addq $0x188, %rax # imm = 0x188 movq %rax, -0x310(%rbp) leaq -0x31(%rbp), %rdi movq %rdi, -0x308(%rbp) callq...
/adityavs[P]ninja/src/build_test.cc
BuildTestRestatDepfileDependency::Run()
TEST_F(BuildTest, RestatDepfileDependency) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule true\n" " command = true\n" // Would be "write if out-of-date" in reality. " restat = 1\n" "build header.h: true header.in\n" "build out: cat in1\n" " depfile = in1.d\n")); fs_.Create("header.h", ""); fs_.Create("...
pushq %rbp movq %rsp, %rbp subq $0x210, %rsp # imm = 0x210 movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x178(%rbp) leaq 0x11e0ef(%rip), %rax # 0x1666c0 movq (%rax), %rdi callq 0x26b80 movl %eax, %ecx movq -0x178(%rbp), %rax movl %ecx, -0xc(%rbp) addq $0x10, %rax movq %rax, -0x170(%rbp) leaq -0...
/adityavs[P]ninja/src/build_test.cc
BuildTestDyndepBuildDiscoverScheduledEdge::Run()
TEST_F(BuildTest, DyndepBuildDiscoverScheduledEdge) { // Verify that a dyndep file can be built and loaded to discover a // new input that itself is an output from an edge that has already // been scheduled but not finished. We should not re-schedule it. ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule touch...
pushq %rbp movq %rsp, %rbp subq $0x1c0, %rsp # imm = 0x1C0 movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x100(%rbp) leaq 0x112e3f(%rip), %rax # 0x1666c0 movq (%rax), %rdi callq 0x26b80 movl %eax, %ecx movq -0x100(%rbp), %rax movl %ecx, -0xc(%rbp) addq $0x10, %rax movq %rax, -0xf8(%rbp) leaq -0x...
/adityavs[P]ninja/src/build_test.cc
RegisterBuildTestMissingInput::RegisterBuildTestMissingInput()
TEST_F(BuildTest, MissingInput) { // Input is referenced by build file, but no rule for it. string err; Dirty("in1"); EXPECT_FALSE(builder_.AddTarget("cat1", &err)); EXPECT_EQ("'in1', needed by 'cat1', missing and no known rule to make it", err); }
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0x94ed(%rip), %rdi # 0x60fa0 leaq 0xae292(%rip), %rsi # 0x105d4c callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nop
/adityavs[P]ninja/src/build_test.cc
RegisterBuildTestInterruptCleanup::RegisterBuildTestInterruptCleanup()
TEST_F(BuildTest, InterruptCleanup) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule interrupt\n" " command = interrupt\n" "rule touch-interrupt\n" " command = touch-interrupt\n" "build out1: interrupt in1\n" "build out2: touch-interrupt in2\n")); fs_.Create("out1", ""); fs_.Create("out2", ""); fs_.Tick(...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0xa2dd(%rip), %rdi # 0x624b0 leaq 0xade97(%rip), %rsi # 0x106071 callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nop
/adityavs[P]ninja/src/build_test.cc
RegisterBuildTestStatFailureAbortsBuild::RegisterBuildTestStatFailureAbortsBuild()
TEST_F(BuildTest, StatFailureAbortsBuild) { const string kTooLongToStat(400, 'i'); ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, ("build " + kTooLongToStat + ": cat in\n").c_str())); fs_.Create("in", ""); // This simulates a stat failure: fs_.files_[kTooLongToStat].mtime = -1; fs_.files_[kTooLongToStat].sta...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0xa35d(%rip), %rdi # 0x62560 leaq 0xade82(%rip), %rsi # 0x10608c callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nop
/adityavs[P]ninja/src/build_test.cc
RegisterBuildTestFailedDepsParse::RegisterBuildTestFailedDepsParse()
TEST_F(BuildTest, FailedDepsParse) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build bad_deps.o: cat in1\n" " deps = gcc\n" " depfile = in1.d\n")); string err; EXPECT_TRUE(builder_.AddTarget("bad_deps.o", &err)); ASSERT_EQ("", err); // These deps will fail to parse, as they should only have one // p...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0xa39d(%rip), %rdi # 0x628d0 leaq 0xadc01(%rip), %rsi # 0x10613b callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nop
/adityavs[P]ninja/src/build_test.cc
RegisterBuildWithQueryDepsLogTestTwoOutputsDepFileMSVC::RegisterBuildWithQueryDepsLogTestTwoOutputsDepFileMSVC()
TEST_F(BuildWithQueryDepsLogTest, TwoOutputsDepFileMSVC) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule cp_multi_msvc\n" " command = echo 'using $in' && for file in $out; do cp $in $$file; done\n" " deps = msvc\n" " msvc_deps_prefix = using \n" "build out1 out2: cp_multi_msvc in1\n")); std::string e...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0xa41d(%rip), %rdi # 0x62980 leaq 0xadbeb(%rip), %rsi # 0x106155 callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nop
/adityavs[P]ninja/src/build_test.cc
RegisterBuildWithQueryDepsLogTestTwoOutputsDepFileGCCOneLine::RegisterBuildWithQueryDepsLogTestTwoOutputsDepFileGCCOneLine()
TEST_F(BuildWithQueryDepsLogTest, TwoOutputsDepFileGCCOneLine) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule cp_multi_gcc\n" " command = echo '$out: $in' > in.d && for file in $out; do cp in1 $$file; done\n" " deps = gcc\n" " depfile = in.d\n" "build out1 out2: cp_multi_gcc in1 in2\n")); std::strin...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0xa78d(%rip), %rdi # 0x62d20 leaq 0xadbeb(%rip), %rsi # 0x106185 callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nop
/adityavs[P]ninja/src/build_test.cc
RegisterBuildWithQueryDepsLogTestTwoOutputsDepFileGCCMultiLineInput::RegisterBuildWithQueryDepsLogTestTwoOutputsDepFileGCCMultiLineInput()
TEST_F(BuildWithQueryDepsLogTest, TwoOutputsDepFileGCCMultiLineInput) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule cp_multi_gcc\n" " command = echo '$out: in1\\n$out: in2' > in.d && for file in $out; do cp in1 $$file; done\n" " deps = gcc\n" " depfile = in.d\n" "build out1 out2: cp_multi_gcc in1 in2\...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0xa80d(%rip), %rdi # 0x62dd0 leaq 0xadbf1(%rip), %rsi # 0x1061bb callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nop
/adityavs[P]ninja/src/build_test.cc
RegisterBuildWithQueryDepsLogTestTwoOutputsDepFileGCCMultiLineOutput::RegisterBuildWithQueryDepsLogTestTwoOutputsDepFileGCCMultiLineOutput()
TEST_F(BuildWithQueryDepsLogTest, TwoOutputsDepFileGCCMultiLineOutput) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule cp_multi_gcc\n" " command = echo 'out1: $in\\nout2: $in' > in.d && for file in $out; do cp in1 $$file; done\n" " deps = gcc\n" " depfile = in.d\n" "build out1 out2: cp_multi_gcc in1 in2...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0xa88d(%rip), %rdi # 0x62e80 leaq 0xadbfe(%rip), %rsi # 0x1061f8 callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nop
/adityavs[P]ninja/src/build_test.cc
RegisterBuildWithQueryDepsLogTestTwoOutputsDepFileGCCOnlySecondaryOutput::RegisterBuildWithQueryDepsLogTestTwoOutputsDepFileGCCOnlySecondaryOutput()
TEST_F(BuildWithQueryDepsLogTest, TwoOutputsDepFileGCCOnlySecondaryOutput) { // Note: This ends up short-circuiting the node creation due to the primary // output not being present, but it should still work. ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule cp_multi_gcc\n" " command = echo 'out2: $in' > in.d ...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0xa98d(%rip), %rdi # 0x62fe0 leaq 0xadc19(%rip), %rsi # 0x106273 callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nop
/adityavs[P]ninja/src/build_test.cc
RegisterBuildWithDepsLogTestStraightforward::RegisterBuildWithDepsLogTestStraightforward()
TEST_F(BuildWithDepsLogTest, Straightforward) { string err; // Note: in1 was created by the superclass SetUp(). const char* manifest = "build out: cat in1\n" " deps = gcc\n" " depfile = in1.d\n"; { State state; ASSERT_NO_FATAL_FAILURE(AddCatRule(&state)); ASSERT_NO_FATAL_FAILURE(...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0xaa0d(%rip), %rdi # 0x63090 leaq 0xadc2b(%rip), %rsi # 0x1062b5 callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nop
/adityavs[P]ninja/src/build_test.cc
RegisterBuildWithDepsLogTestObsoleteDeps::RegisterBuildWithDepsLogTestObsoleteDeps()
TEST_F(BuildWithDepsLogTest, ObsoleteDeps) { string err; // Note: in1 was created by the superclass SetUp(). const char* manifest = "build out: cat in1\n" " deps = gcc\n" " depfile = in1.d\n"; { // Run an ordinary build that gathers dependencies. fs_.Create("in1", ""); fs_.Create...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0xab3d(%rip), %rdi # 0x631f0 leaq 0xadc20(%rip), %rsi # 0x1062da callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nop
/adityavs[P]ninja/src/build_test.cc
RegisterBuildTestDyndepReadySyntaxError::RegisterBuildTestDyndepReadySyntaxError()
TEST_F(BuildTest, DyndepReadySyntaxError) { // Verify that a dyndep file can be loaded immediately to discover // and reject a syntax error in it. ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule touch\n" " command = touch $out\n" "build out: touch || dd\n" " dyndep = dd\n" )); fs_.Create("dd", "build out: ...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0xb0bd(%rip), %rdi # 0x63980 leaq 0xadbae(%rip), %rsi # 0x106478 callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nop
/adityavs[P]ninja/src/build_test.cc
RegisterBuildTestDyndepReadyCircular::RegisterBuildTestDyndepReadyCircular()
TEST_F(BuildTest, DyndepReadyCircular) { // Verify that a dyndep file can be loaded immediately to discover // and reject a circular dependency. ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule r\n" " command = unused\n" "build out: r in || dd\n" " dyndep = dd\n" "build in: r circ\n" )); fs_.Create("dd", ...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0xb13d(%rip), %rdi # 0x63a30 leaq 0xadb9f(%rip), %rsi # 0x106499 callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nop
/adityavs[P]ninja/src/build_test.cc
RegisterBuildTestDyndepBuild::RegisterBuildTestDyndepBuild()
TEST_F(BuildTest, DyndepBuild) { // Verify that a dyndep file can be built and loaded to discover nothing. ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule touch\n" " command = touch $out\n" "rule cp\n" " command = cp $in $out\n" "build dd: cp dd-in\n" "build out: touch || dd\n" " dyndep = dd\n" )); fs_.Crea...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0xb1bd(%rip), %rdi # 0x63ae0 leaq 0xadb8d(%rip), %rsi # 0x1064b7 callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nop
/adityavs[P]ninja/src/build_test.cc
RegisterBuildTestDyndepBuildSyntaxError::RegisterBuildTestDyndepBuildSyntaxError()
TEST_F(BuildTest, DyndepBuildSyntaxError) { // Verify that a dyndep file can be built and loaded to discover // and reject a syntax error in it. ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule touch\n" " command = touch $out\n" "rule cp\n" " command = cp $in $out\n" "build dd: cp dd-in\n" "build out: touch |...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0xb23d(%rip), %rdi # 0x63b90 leaq 0xadb73(%rip), %rsi # 0x1064cd callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nop
/adityavs[P]ninja/src/build_test.cc
RegisterBuildTestDyndepBuildUnrelatedOutput::RegisterBuildTestDyndepBuildUnrelatedOutput()
TEST_F(BuildTest, DyndepBuildUnrelatedOutput) { // Verify that a dyndep file can have dependents that do not specify // it as their dyndep binding. ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule touch\n" " command = touch $out\n" "rule cp\n" " command = cp $in $out\n" "build dd: cp dd-in\n" "build unrelated...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0xb2bd(%rip), %rdi # 0x63c40 leaq 0xadb64(%rip), %rsi # 0x1064ee callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nop
/adityavs[P]ninja/src/build_test.cc
RegisterBuildTestDyndepBuildDiscoverNewOutput::RegisterBuildTestDyndepBuildDiscoverNewOutput()
TEST_F(BuildTest, DyndepBuildDiscoverNewOutput) { // Verify that a dyndep file can be built and loaded to discover // a new output of an edge. ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule touch\n" " command = touch $out $out.imp\n" "rule cp\n" " command = cp $in $out\n" "build dd: cp dd-in\n" "build out: ...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0xb33d(%rip), %rdi # 0x63cf0 leaq 0xadb59(%rip), %rsi # 0x106513 callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nop
/adityavs[P]ninja/src/build_test.cc
RegisterBuildTestDyndepBuildDiscoverNewOutputWithMultipleRules1::RegisterBuildTestDyndepBuildDiscoverNewOutputWithMultipleRules1()
TEST_F(BuildTest, DyndepBuildDiscoverNewOutputWithMultipleRules1) { // Verify that a dyndep file can be built and loaded to discover // a new output of an edge that is already the output of another edge. ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule touch\n" " command = touch $out $out.imp\n" "rule cp\n" " ...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0xb3bd(%rip), %rdi # 0x63da0 leaq 0xadb50(%rip), %rsi # 0x10653a callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nop
/adityavs[P]ninja/src/build_test.cc
RegisterBuildTestDyndepBuildDiscoverNewOutputWithMultipleRules2::RegisterBuildTestDyndepBuildDiscoverNewOutputWithMultipleRules2()
TEST_F(BuildTest, DyndepBuildDiscoverNewOutputWithMultipleRules2) { // Verify that a dyndep file can be built and loaded to discover // a new output of an edge that is already the output of another // edge also discovered by dyndep. ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule touch\n" " command = touch ...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0xb43d(%rip), %rdi # 0x63e50 leaq 0xadb59(%rip), %rsi # 0x106573 callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nop
/adityavs[P]ninja/src/build_test.cc
RegisterBuildTestDyndepBuildDiscoverNewInput::RegisterBuildTestDyndepBuildDiscoverNewInput()
TEST_F(BuildTest, DyndepBuildDiscoverNewInput) { // Verify that a dyndep file can be built and loaded to discover // a new input to an edge. ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule touch\n" " command = touch $out\n" "rule cp\n" " command = cp $in $out\n" "build dd: cp dd-in\n" "build in: touch\n" "bu...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0xb4bd(%rip), %rdi # 0x63f00 leaq 0xadb62(%rip), %rsi # 0x1065ac callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nop
/adityavs[P]ninja/src/build_test.cc
RegisterBuildTestDyndepBuildDiscoverImplicitConnection::RegisterBuildTestDyndepBuildDiscoverImplicitConnection()
TEST_F(BuildTest, DyndepBuildDiscoverImplicitConnection) { // Verify that a dyndep file can be built and loaded to discover // that one edge has an implicit output that is also an implicit // input of another edge. ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule touch\n" " command = touch $out $out.imp\n" "...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0xb53d(%rip), %rdi # 0x63fb0 leaq 0xadb58(%rip), %rsi # 0x1065d2 callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nop
/adityavs[P]ninja/src/build_test.cc
RegisterBuildTestDyndepBuildDiscoverNowWantEdge::RegisterBuildTestDyndepBuildDiscoverNowWantEdge()
TEST_F(BuildTest, DyndepBuildDiscoverNowWantEdge) { // Verify that a dyndep file can be built and loaded to discover // that an edge is actually wanted due to a missing implicit output. ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule touch\n" " command = touch $out $out.imp\n" "rule cp\n" " command = cp $in ...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0xb5bd(%rip), %rdi # 0x64060 leaq 0xadb58(%rip), %rsi # 0x106602 callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nop
/adityavs[P]ninja/src/build_test.cc
RegisterBuildTestDyndepBuildDiscoverNowWantEdgeAndDependent::RegisterBuildTestDyndepBuildDiscoverNowWantEdgeAndDependent()
TEST_F(BuildTest, DyndepBuildDiscoverNowWantEdgeAndDependent) { // Verify that a dyndep file can be built and loaded to discover // that an edge and a dependent are actually wanted. ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule touch\n" " command = touch $out $out.imp\n" "rule cp\n" " command = cp $in $out...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0xb63d(%rip), %rdi # 0x64110 leaq 0xadb51(%rip), %rsi # 0x10662b callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nop
/adityavs[P]ninja/src/build_test.cc
RegisterBuildTestDyndepBuildDiscoverCircular::RegisterBuildTestDyndepBuildDiscoverCircular()
TEST_F(BuildTest, DyndepBuildDiscoverCircular) { // Verify that a dyndep file can be built and loaded to discover // and reject a circular dependency. ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule r\n" " command = unused\n" "rule cp\n" " command = cp $in $out\n" "build dd: cp dd-in\n" "build out: r in || d...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0xb6bd(%rip), %rdi # 0x641c0 leaq 0xadb56(%rip), %rsi # 0x106660 callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nop
/adityavs[P]ninja/src/build_test.cc
RegisterBuildWithLogTestDyndepBuildDiscoverRestat::RegisterBuildWithLogTestDyndepBuildDiscoverRestat()
TEST_F(BuildWithLogTest, DyndepBuildDiscoverRestat) { // Verify that a dyndep file can be built and loaded to discover // that an edge has a restat binding. ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule true\n" " command = true\n" "rule cp\n" " command = cp $in $out\n" "build dd: cp dd-in\n" "build out1: t...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0xb73d(%rip), %rdi # 0x64270 leaq 0xadb4c(%rip), %rsi # 0x106686 callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nop
/adityavs[P]ninja/src/build_test.cc
RegisterBuildTestDyndepBuildDiscoverScheduledEdge::RegisterBuildTestDyndepBuildDiscoverScheduledEdge()
TEST_F(BuildTest, DyndepBuildDiscoverScheduledEdge) { // Verify that a dyndep file can be built and loaded to discover a // new input that itself is an output from an edge that has already // been scheduled but not finished. We should not re-schedule it. ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule touch...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0xb7bd(%rip), %rdi # 0x64320 leaq 0xadb47(%rip), %rsi # 0x1066b1 callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nop
/adityavs[P]ninja/src/build_test.cc
PlanTestBasic::~PlanTestBasic()
TEST_F(PlanTest, Basic) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build out: cat mid\n" "build mid: cat in\n")); GetNode("mid")->MarkDirty(); GetNode("out")->MarkDirty(); string err; EXPECT_TRUE(plan_.AddTarget(GetNode("out"), &err)); ASSERT_EQ("", err); ASSERT_TRUE(plan_.more_to_do()); Edge* edg...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x58c40 movq -0x10(%rbp), %rdi movl $0x188, %esi # imm = 0x188 callq 0x1b4d0 addq $0x10, %rsp popq %rbp retq nopl (%rax)
/adityavs[P]ninja/src/build_test.cc
PlanTestPoolWithRedundantEdges::~PlanTestPoolWithRedundantEdges()
TEST_F(PlanTest, PoolWithRedundantEdges) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "pool compile\n" " depth = 1\n" "rule gen_foo\n" " command = touch foo.cpp\n" "rule gen_bar\n" " command = touch bar.cpp\n" "rule echo\n" " command = echo $out > $out\n" "build foo.cpp.obj: ...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x58e70 movq -0x10(%rbp), %rdi movl $0x188, %esi # imm = 0x188 callq 0x1b4d0 addq $0x10, %rsp popq %rbp retq nopl (%rax)
/adityavs[P]ninja/src/build_test.cc
BuildTestTwoStep::~BuildTestTwoStep()
TEST_F(BuildTest, TwoStep) { string err; EXPECT_TRUE(builder_.AddTarget("cat12", &err)); ASSERT_EQ("", err); EXPECT_TRUE(builder_.Build(&err)); EXPECT_EQ("", err); ASSERT_EQ(3u, command_runner_.commands_ran_.size()); // Depending on how the pointers work out, we could've ran // the first two commands in...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi callq 0x5f3f0 addq $0x10, %rsp popq %rbp retq nopl (%rax,%rax)
/adityavs[P]ninja/src/build_test.cc
BuildTestDepFileMissing::~BuildTestDepFileMissing()
TEST_F(BuildTest, DepFileMissing) { string err; ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule cc\n command = cc $in\n depfile = $out.d\n" "build fo$ o.o: cc foo.c\n")); fs_.Create("foo.c", ""); EXPECT_TRUE(builder_.AddTarget("fo o.o", &err)); ASSERT_EQ("", err); ASSERT_EQ(1u, fs_.files_read_.size())...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x595e0 movq -0x10(%rbp), %rdi movl $0x458, %esi # imm = 0x458 callq 0x1b4d0 addq $0x10, %rsp popq %rbp retq nopl (%rax)
/adityavs[P]ninja/src/build_test.cc
BuildTestPhonyNoWork::~BuildTestPhonyNoWork()
TEST_F(BuildTest, PhonyNoWork) { string err; ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build out: cat bar.cc\n" "build all: phony out\n")); fs_.Create("bar.cc", ""); fs_.Create("out", ""); EXPECT_TRUE(builder_.AddTarget("all", &err)); ASSERT_EQ("", err); EXPECT_TRUE(builder_.AlreadyUpToDate()); }
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi callq 0x5f3f0 addq $0x10, %rsp popq %rbp retq nopl (%rax,%rax)
/adityavs[P]ninja/src/build_test.cc
BuildTestPhonyNoWork::~BuildTestPhonyNoWork()
TEST_F(BuildTest, PhonyNoWork) { string err; ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build out: cat bar.cc\n" "build all: phony out\n")); fs_.Create("bar.cc", ""); fs_.Create("out", ""); EXPECT_TRUE(builder_.AddTarget("all", &err)); ASSERT_EQ("", err); EXPECT_TRUE(builder_.AlreadyUpToDate()); }
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x59810 movq -0x10(%rbp), %rdi movl $0x458, %esi # imm = 0x458 callq 0x1b4d0 addq $0x10, %rsp popq %rbp retq nopl (%rax)
/adityavs[P]ninja/src/build_test.cc
BuildTestPhonySelfReference::~BuildTestPhonySelfReference()
TEST_F(BuildTest, PhonySelfReference) { string err; ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build a: phony a\n")); EXPECT_TRUE(builder_.AddTarget("a", &err)); ASSERT_EQ("", err); EXPECT_TRUE(builder_.AlreadyUpToDate()); }
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x59860 movq -0x10(%rbp), %rdi movl $0x458, %esi # imm = 0x458 callq 0x1b4d0 addq $0x10, %rsp popq %rbp retq nopl (%rax)
/adityavs[P]ninja/src/build_test.cc
BuildTestFail::~BuildTestFail()
TEST_F(BuildTest, Fail) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule fail\n" " command = fail\n" "build out1: fail\n")); string err; EXPECT_TRUE(builder_.AddTarget("out1", &err)); ASSERT_EQ("", err); EXPECT_FALSE(builder_.Build(&err)); ASSERT_EQ(1u, command_runner_.commands_ran_.size()); ASSERT...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x598b0 movq -0x10(%rbp), %rdi movl $0x458, %esi # imm = 0x458 callq 0x1b4d0 addq $0x10, %rsp popq %rbp retq nopl (%rax)
/adityavs[P]ninja/src/build_test.cc
BuildTestSwallowFailuresPool::~BuildTestSwallowFailuresPool()
TEST_F(BuildTest, SwallowFailuresPool) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "pool failpool\n" " depth = 1\n" "rule fail\n" " command = fail\n" " pool = failpool\n" "build out1: fail\n" "build out2: fail\n" "build out3: fail\n" "build final: cat out1 out2 out3\n")); // Swallow ten failures; we should s...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x599a0 movq -0x10(%rbp), %rdi movl $0x458, %esi # imm = 0x458 callq 0x1b4d0 addq $0x10, %rsp popq %rbp retq nopl (%rax)
/adityavs[P]ninja/src/build_test.cc
BuildTestPoolEdgesReadyButNotWanted::~BuildTestPoolEdgesReadyButNotWanted()
TEST_F(BuildTest, PoolEdgesReadyButNotWanted) { fs_.Create("x", ""); const char* manifest = "pool some_pool\n" " depth = 4\n" "rule touch\n" " command = touch $out\n" " pool = some_pool\n" "rule cc\n" " command = touch grit\n" "\n" "build B.d.stamp: cc | x\n" "build C.st...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi callq 0x5f3f0 addq $0x10, %rsp popq %rbp retq nopl (%rax,%rax)
/adityavs[P]ninja/src/build_test.cc
BuildTestPoolEdgesReadyButNotWanted::~BuildTestPoolEdgesReadyButNotWanted()
TEST_F(BuildTest, PoolEdgesReadyButNotWanted) { fs_.Create("x", ""); const char* manifest = "pool some_pool\n" " depth = 4\n" "rule touch\n" " command = touch $out\n" " pool = some_pool\n" "rule cc\n" " command = touch grit\n" "\n" "build B.d.stamp: cc | x\n" "build C.st...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x599f0 movq -0x10(%rbp), %rdi movl $0x458, %esi # imm = 0x458 callq 0x1b4d0 addq $0x10, %rsp popq %rbp retq nopl (%rax)
/adityavs[P]ninja/src/build_test.cc
BuildWithLogTestNotInLogButOnDisk::~BuildWithLogTestNotInLogButOnDisk()
TEST_F(BuildWithLogTest, NotInLogButOnDisk) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule cc\n" " command = cc\n" "build out1: cc in\n")); // Create input/output that would be considered up to date when // not considering the command line hash. fs_.Create("in", ""); fs_.Create("out1", ""); string e...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi callq 0x61cd0 addq $0x10, %rsp popq %rbp retq nopl (%rax,%rax)
/adityavs[P]ninja/src/build_test.cc
BuildWithLogTestNotInLogButOnDisk::~BuildWithLogTestNotInLogButOnDisk()
TEST_F(BuildWithLogTest, NotInLogButOnDisk) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule cc\n" " command = cc\n" "build out1: cc in\n")); // Create input/output that would be considered up to date when // not considering the command line hash. fs_.Create("in", ""); fs_.Create("out1", ""); string e...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x59a40 movq -0x10(%rbp), %rdi movl $0x4c0, %esi # imm = 0x4C0 callq 0x1b4d0 addq $0x10, %rsp popq %rbp retq nopl (%rax)
/adityavs[P]ninja/src/build_test.cc
BuildWithLogTestRebuildWithNoInputs::~BuildWithLogTestRebuildWithNoInputs()
TEST_F(BuildWithLogTest, RebuildWithNoInputs) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule touch\n" " command = touch\n" "build out1: touch\n" "build out2: touch in\n")); string err; fs_.Create("in", ""); EXPECT_TRUE(builder_.AddTarget("out1", &err)); EXPECT_TRUE(builder_.AddTarget("out2", &err));...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x59ae0 movq -0x10(%rbp), %rdi movl $0x4c0, %esi # imm = 0x4C0 callq 0x1b4d0 addq $0x10, %rsp popq %rbp retq nopl (%rax)
/adityavs[P]ninja/src/build_test.cc
BuildWithLogTestRestatMissingFile::~BuildWithLogTestRestatMissingFile()
TEST_F(BuildWithLogTest, RestatMissingFile) { // If a restat rule doesn't create its output, and the output didn't // exist before the rule was run, consider that behavior equivalent // to a rule that doesn't modify its existent output file. ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule true\n" " command...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x59b80 movq -0x10(%rbp), %rdi movl $0x4c0, %esi # imm = 0x4C0 callq 0x1b4d0 addq $0x10, %rsp popq %rbp retq nopl (%rax)
/adityavs[P]ninja/src/build_test.cc
BuildWithDepsLogTestStraightforward::~BuildWithDepsLogTestStraightforward()
TEST_F(BuildWithDepsLogTest, Straightforward) { string err; // Note: in1 was created by the superclass SetUp(). const char* manifest = "build out: cat in1\n" " deps = gcc\n" " depfile = in1.d\n"; { State state; ASSERT_NO_FATAL_FAILURE(AddCatRule(&state)); ASSERT_NO_FATAL_FAILURE(...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x5a460 movq -0x10(%rbp), %rdi movl $0x4a0, %esi # imm = 0x4A0 callq 0x1b4d0 addq $0x10, %rsp popq %rbp retq nopl (%rax)
/adityavs[P]ninja/src/build_test.cc
BuildTestRestatDepfileDependency::~BuildTestRestatDepfileDependency()
TEST_F(BuildTest, RestatDepfileDependency) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule true\n" " command = true\n" // Would be "write if out-of-date" in reality. " restat = 1\n" "build header.h: true header.in\n" "build out: cat in1\n" " depfile = in1.d\n")); fs_.Create("header.h", ""); fs_.Create("...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi callq 0x5f3f0 addq $0x10, %rsp popq %rbp retq nopl (%rax,%rax)
/adityavs[P]ninja/src/build_test.cc
BuildTestRestatDepfileDependency::~BuildTestRestatDepfileDependency()
TEST_F(BuildTest, RestatDepfileDependency) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule true\n" " command = true\n" // Would be "write if out-of-date" in reality. " restat = 1\n" "build header.h: true header.in\n" "build out: cat in1\n" " depfile = in1.d\n")); fs_.Create("header.h", ""); fs_.Create("...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x5a630 movq -0x10(%rbp), %rdi movl $0x458, %esi # imm = 0x458 callq 0x1b4d0 addq $0x10, %rsp popq %rbp retq nopl (%rax)
/adityavs[P]ninja/src/build_test.cc
BuildWithDepsLogTestRestatDepfileDependencyDepsLog::~BuildWithDepsLogTestRestatDepfileDependencyDepsLog()
TEST_F(BuildWithDepsLogTest, RestatDepfileDependencyDepsLog) { string err; // Note: in1 was created by the superclass SetUp(). const char* manifest = "rule true\n" " command = true\n" // Would be "write if out-of-date" in reality. " restat = 1\n" "build header.h: true header.in\n" ...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi callq 0x63190 addq $0x10, %rsp popq %rbp retq nopl (%rax,%rax)
/adityavs[P]ninja/src/build_test.cc
BuildWithDepsLogTestRestatDepfileDependencyDepsLog::~BuildWithDepsLogTestRestatDepfileDependencyDepsLog()
TEST_F(BuildWithDepsLogTest, RestatDepfileDependencyDepsLog) { string err; // Note: in1 was created by the superclass SetUp(). const char* manifest = "rule true\n" " command = true\n" // Would be "write if out-of-date" in reality. " restat = 1\n" "build header.h: true header.in\n" ...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x5a680 movq -0x10(%rbp), %rdi movl $0x4a0, %esi # imm = 0x4A0 callq 0x1b4d0 addq $0x10, %rsp popq %rbp retq nopl (%rax)
/adityavs[P]ninja/src/build_test.cc
BuildWithDepsLogTestDepFileOKDepsLog::~BuildWithDepsLogTestDepFileOKDepsLog()
TEST_F(BuildWithDepsLogTest, DepFileOKDepsLog) { string err; const char* manifest = "rule cc\n command = cc $in\n depfile = $out.d\n deps = gcc\n" "build fo$ o.o: cc foo.c\n"; fs_.Create("foo.c", ""); { State state; ASSERT_NO_FATAL_FAILURE(AssertParse(&state, manifest)); // Run the...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi callq 0x63190 addq $0x10, %rsp popq %rbp retq nopl (%rax,%rax)
/adityavs[P]ninja/src/build_test.cc
BuildWithDepsLogTestDepFileOKDepsLog::~BuildWithDepsLogTestDepFileOKDepsLog()
TEST_F(BuildWithDepsLogTest, DepFileOKDepsLog) { string err; const char* manifest = "rule cc\n command = cc $in\n depfile = $out.d\n deps = gcc\n" "build fo$ o.o: cc foo.c\n"; fs_.Create("foo.c", ""); { State state; ASSERT_NO_FATAL_FAILURE(AssertParse(&state, manifest)); // Run the...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x5a6d0 movq -0x10(%rbp), %rdi movl $0x4a0, %esi # imm = 0x4A0 callq 0x1b4d0 addq $0x10, %rsp popq %rbp retq nopl (%rax)
/adityavs[P]ninja/src/build_test.cc
BuildTestDyndepBuild::~BuildTestDyndepBuild()
TEST_F(BuildTest, DyndepBuild) { // Verify that a dyndep file can be built and loaded to discover nothing. ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule touch\n" " command = touch $out\n" "rule cp\n" " command = cp $in $out\n" "build dd: cp dd-in\n" "build out: touch || dd\n" " dyndep = dd\n" )); fs_.Crea...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi callq 0x5f3f0 addq $0x10, %rsp popq %rbp retq nopl (%rax,%rax)
/adityavs[P]ninja/src/build_test.cc
BuildTestDyndepBuildSyntaxError::~BuildTestDyndepBuildSyntaxError()
TEST_F(BuildTest, DyndepBuildSyntaxError) { // Verify that a dyndep file can be built and loaded to discover // and reject a syntax error in it. ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule touch\n" " command = touch $out\n" "rule cp\n" " command = cp $in $out\n" "build dd: cp dd-in\n" "build out: touch |...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x5a9f0 movq -0x10(%rbp), %rdi movl $0x458, %esi # imm = 0x458 callq 0x1b4d0 addq $0x10, %rsp popq %rbp retq nopl (%rax)
/adityavs[P]ninja/src/build_test.cc
BuildTestDyndepBuildUnrelatedOutput::~BuildTestDyndepBuildUnrelatedOutput()
TEST_F(BuildTest, DyndepBuildUnrelatedOutput) { // Verify that a dyndep file can have dependents that do not specify // it as their dyndep binding. ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule touch\n" " command = touch $out\n" "rule cp\n" " command = cp $in $out\n" "build dd: cp dd-in\n" "build unrelated...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi callq 0x5f3f0 addq $0x10, %rsp popq %rbp retq nopl (%rax,%rax)
/adityavs[P]ninja/src/build_test.cc
BuildTestDyndepBuildDiscoverImplicitConnection::~BuildTestDyndepBuildDiscoverImplicitConnection()
TEST_F(BuildTest, DyndepBuildDiscoverImplicitConnection) { // Verify that a dyndep file can be built and loaded to discover // that one edge has an implicit output that is also an implicit // input of another edge. ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule touch\n" " command = touch $out $out.imp\n" "...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi callq 0x5f3f0 addq $0x10, %rsp popq %rbp retq nopl (%rax,%rax)
/adityavs[P]ninja/src/build_test.cc
BuildTestDyndepBuildDiscoverNowWantEdgeAndDependent::~BuildTestDyndepBuildDiscoverNowWantEdgeAndDependent()
TEST_F(BuildTest, DyndepBuildDiscoverNowWantEdgeAndDependent) { // Verify that a dyndep file can be built and loaded to discover // that an edge and a dependent are actually wanted. ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule touch\n" " command = touch $out $out.imp\n" "rule cp\n" " command = cp $in $out...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi callq 0x5f3f0 addq $0x10, %rsp popq %rbp retq nopl (%rax,%rax)
/adityavs[P]ninja/src/build_test.cc
PlanTestDoubleDependent::PlanTestDoubleDependent()
TEST_F(PlanTest, DoubleDependent) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build out: cat a1 a2\n" "build a1: cat mid\n" "build a2: cat mid\n" "build mid: cat in\n")); GetNode("mid")->MarkDirty(); GetNode("a1")->MarkDirty(); GetNode("a2")->MarkDirty(); GetNode("out")->MarkDirty(); string err; EXPE...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x5af90 movq -0x10(%rbp), %rax leaq 0x10273c(%rip), %rcx # 0x15e030 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
/adityavs[P]ninja/src/build_test.cc
PlanTestPoolWithRedundantEdges::PlanTestPoolWithRedundantEdges()
TEST_F(PlanTest, PoolWithRedundantEdges) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "pool compile\n" " depth = 1\n" "rule gen_foo\n" " command = touch foo.cpp\n" "rule gen_bar\n" " command = touch bar.cpp\n" "rule echo\n" " command = echo $out > $out\n" "build foo.cpp.obj: ...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x5af90 movq -0x10(%rbp), %rax leaq 0xff3cc(%rip), %rcx # 0x15e170 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
/adityavs[P]ninja/src/build_test.cc
PlanTestPoolWithFailingEdge::PlanTestPoolWithFailingEdge()
TEST_F(PlanTest, PoolWithFailingEdge) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "pool foobar\n" " depth = 1\n" "rule poolcat\n" " command = cat $in > $out\n" " pool = foobar\n" "build out1: poolcat in\n" "build out2: poolcat in\n")); GetNode("out1")->MarkDirty(); GetNode("out2"...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x5af90 movq -0x10(%rbp), %rax leaq 0xff37c(%rip), %rcx # 0x15e1c0 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nopl (%rax,%rax)
/adityavs[P]ninja/src/build_test.cc
BuildTestTwoStep::BuildTestTwoStep()
TEST_F(BuildTest, TwoStep) { string err; EXPECT_TRUE(builder_.AddTarget("cat12", &err)); ASSERT_EQ("", err); EXPECT_TRUE(builder_.Build(&err)); EXPECT_EQ("", err); ASSERT_EQ(3u, command_runner_.commands_ran_.size()); // Depending on how the pointers work out, we could've ran // the first two commands in...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x5f110 movq -0x10(%rbp), %rax leaq 0xfd70c(%rip), %rcx # 0x15e3c0 addq $0x10, %rcx movq %rcx, (%rax) leaq 0xfd6fe(%rip), %rcx # 0x15e3c0 addq $0x50, %rcx movq %rcx, 0x118(%rax) addq $0x10, %rsp ...
/adityavs[P]ninja/src/build_test.cc
BuildTestDepFileOK::BuildTestDepFileOK()
TEST_F(BuildTest, DepFileOK) { string err; int orig_edges = state_.edges_.size(); ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule cc\n command = cc $in\n depfile = $out.d\n" "build foo.o: cc foo.c\n")); Edge* edge = state_.edges_.back(); fs_.Create("foo.c", ""); GetNode("bar.h")->MarkDirty(); // Mark...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x5f110 movq -0x10(%rbp), %rax leaq 0xfd4cc(%rip), %rcx # 0x15e7b0 addq $0x10, %rcx movq %rcx, (%rax) leaq 0xfd4be(%rip), %rcx # 0x15e7b0 addq $0x50, %rcx movq %rcx, 0x118(%rax) addq $0x10, %rsp ...
/adityavs[P]ninja/src/build_test.cc
BuildTestOrderOnlyDeps::BuildTestOrderOnlyDeps()
TEST_F(BuildTest, OrderOnlyDeps) { string err; ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule cc\n command = cc $in\n depfile = $out.d\n" "build foo.o: cc foo.c || otherfile\n")); Edge* edge = state_.edges_.back(); fs_.Create("foo.c", ""); fs_.Create("otherfile", ""); fs_.Create("foo.o.d", "foo.o: bl...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x5f110 movq -0x10(%rbp), %rax leaq 0xfd40c(%rip), %rcx # 0x15e900 addq $0x10, %rcx movq %rcx, (%rax) leaq 0xfd3fe(%rip), %rcx # 0x15e900 addq $0x50, %rcx movq %rcx, 0x118(%rax) addq $0x10, %rsp ...
/adityavs[P]ninja/src/build_test.cc
BuildTestRebuildOrderOnlyDeps::Create()
TEST_F(BuildTest, RebuildOrderOnlyDeps) { string err; ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule cc\n command = cc $in\n" "rule true\n command = true\n" "build oo.h: cc oo.h.in\n" "build foo.o: cc foo.c || oo.h\n")); fs_.Create("foo.c", ""); fs_.Create("oo.h.in", ""); // foo.o and order-only dep d...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x458, %edi # imm = 0x458 callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0x61580 jmp 0x61543 movq -0x18(%rbp), %rax leaq 0x105172(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi mo...
/adityavs[P]ninja/src/build_test.cc
BuildDryRunAllCommandsShown::Create()
TEST_F(BuildDryRun, AllCommandsShown) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule true\n" " command = true\n" " restat = 1\n" "rule cc\n" " command = cc\n" " restat = 1\n" "build out1: cc in\n" "build out2: true out1\n" "build out3: cat out2\n")); fs_.Create("out1", ""); fs_.Create("out2", ""); fs...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x4c0, %edi # imm = 0x4C0 callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0x621d0 jmp 0x62193 movq -0x18(%rbp), %rax leaq 0x104522(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi mo...
/adityavs[P]ninja/src/build_test.cc
BuildTestDyndepReadySyntaxError::BuildTestDyndepReadySyntaxError()
TEST_F(BuildTest, DyndepReadySyntaxError) { // Verify that a dyndep file can be loaded immediately to discover // and reject a syntax error in it. ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule touch\n" " command = touch $out\n" "build out: touch || dd\n" " dyndep = dd\n" )); fs_.Create("dd", "build out: ...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x5f110 movq -0x10(%rbp), %rax leaq 0xfc31c(%rip), %rcx # 0x15fd20 addq $0x10, %rcx movq %rcx, (%rax) leaq 0xfc30e(%rip), %rcx # 0x15fd20 addq $0x50, %rcx movq %rcx, 0x118(%rax) addq $0x10, %rsp ...
/adityavs[P]ninja/src/build_test.cc
BuildTestDyndepBuildDiscoverCircular::BuildTestDyndepBuildDiscoverCircular()
TEST_F(BuildTest, DyndepBuildDiscoverCircular) { // Verify that a dyndep file can be built and loaded to discover // and reject a circular dependency. ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule r\n" " command = unused\n" "rule cp\n" " command = cp $in $out\n" "build dd: cp dd-in\n" "build out: r in || d...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x5f110 movq -0x10(%rbp), %rax leaq 0xfc01c(%rip), %rcx # 0x160260 addq $0x10, %rcx movq %rcx, (%rax) leaq 0xfc00e(%rip), %rcx # 0x160260 addq $0x50, %rcx movq %rcx, 0x118(%rax) addq $0x10, %rsp ...
/adityavs[P]ninja/src/build_test.cc
(anonymous namespace)::CleanTestCleanAllDryRun::Run()
TEST_F(CleanTest, CleanAllDryRun) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "build in1: cat src1\n" "build out1: cat in1\n" "build in2: cat src2\n" "build out2: cat in2\n")); fs_.Create("in1", ""); fs_.Create("out1", ""); fs_.Create("in2", ""); fs_.Create("out2", ""); config_.dry_run = true; Cleaner...
pushq %rbp movq %rsp, %rbp subq $0x410, %rsp # imm = 0x410 movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x2d8(%rbp) leaq 0xfc67f(%rip), %rax # 0x1666c0 movq (%rax), %rdi callq 0x26b80 movl %eax, %ecx movq -0x2d8(%rbp), %rax movl %ecx, -0xc(%rbp) addq $0x10, %rax movq %rax, -0x2d0(%rbp) leaq -0...
/adityavs[P]ninja/src/clean_test.cc
(anonymous namespace)::CleanTestCleanRuleDryRun::Create()
TEST_F(CleanTest, CleanRuleDryRun) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule cat_e\n" " command = cat -e $in > $out\n" "build in1: cat_e src1\n" "build out1: cat in1\n" "build in2: cat_e src2\n" "build out2: cat in2\n")); fs_.Create("in1", ""); fs_.Create("out1", ""); fs_.Create("in2", ""); fs_.Cr...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x208, %edi # imm = 0x208 callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0x6d3d0 jmp 0x6d393 movq -0x18(%rbp), %rax leaq 0xf9322(%rip), %rcx # 0x1666c0 movq %rax, (%rcx) addq $0x20, %rsp popq %rbp retq movq -0x18(%rbp), %rdi mo...
/adityavs[P]ninja/src/clean_test.cc
(anonymous namespace)::CleanTestCleanRuleGenerator::Run()
TEST_F(CleanTest, CleanRuleGenerator) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule regen\n" " command = cat $in > $out\n" " generator = 1\n" "build out1: cat in1\n" "build out2: regen in2\n")); fs_.Create("out1", ""); fs_.Create("out2", ""); Cleaner cleaner(&state_, config_, &fs_); EXPECT_EQ(0, cle...
pushq %rbp movq %rsp, %rbp subq $0x250, %rsp # imm = 0x250 movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rax movq %rax, -0x1c0(%rbp) leaq 0xf850f(%rip), %rax # 0x1666c0 movq (%rax), %rdi callq 0x26b80 movl %eax, %ecx movq -0x1c0(%rbp), %rax movl %ecx, -0xc(%rbp) addq $0x10, %rax movq %rax, -0x1b8(%rbp) leaq -0...
/adityavs[P]ninja/src/clean_test.cc
(anonymous namespace)::CleanTestCleanDepFile::~CleanTestCleanDepFile()
TEST_F(CleanTest, CleanDepFile) { ASSERT_NO_FATAL_FAILURE(AssertParse(&state_, "rule cc\n" " command = cc $in > $out\n" " depfile = $out.d\n" "build out1: cc in1\n")); fs_.Create("out1", ""); fs_.Create("out1.d", ""); Cleaner cleaner(&state_, config_, &fs_); EXPECT_EQ(0, cleaner.CleanAll()); EXPECT_EQ(2,...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi callq 0x69ee0 addq $0x10, %rsp popq %rbp retq nopl (%rax,%rax)
/adityavs[P]ninja/src/clean_test.cc
CLParserTestFilterInputFilename::Run()
TEST(CLParserTest, FilterInputFilename) { ASSERT_TRUE(CLParser::FilterInputFilename("foobar.cc")); ASSERT_TRUE(CLParser::FilterInputFilename("foo bar.cc")); ASSERT_TRUE(CLParser::FilterInputFilename("baz.c")); ASSERT_TRUE(CLParser::FilterInputFilename("FOOBAR.CC")); ASSERT_FALSE(CLParser::FilterInputFilename...
pushq %rbp movq %rsp, %rbp subq $0x160, %rsp # imm = 0x160 movq %rdi, -0x8(%rbp) leaq 0xf053a(%rip), %rax # 0x1666c0 movq (%rax), %rax movq %rax, -0xf0(%rbp) leaq -0x29(%rbp), %rdi movq %rdi, -0xe8(%rbp) callq 0x1b980 movq -0xe8(%rbp), %rdx leaq 0x92571(%rip), %rsi # 0x10871f leaq -0x28(%rbp), %rdi c...
/adityavs[P]ninja/src/clparser_test.cc
CLParserTestParseSimple::Run()
TEST(CLParserTest, ParseSimple) { CLParser parser; string output, err; ASSERT_TRUE(parser.Parse( "foo\r\n" "Note: inc file prefix: foo.h\r\n" "bar\r\n", "Note: inc file prefix:", &output, &err)); ASSERT_EQ("foo\nbar\n", output); ASSERT_EQ(1u, parser.includes_.size()); ASSERT_EQ("fo...
pushq %rbp movq %rsp, %rbp subq $0x130, %rsp # imm = 0x130 movq %rdi, -0x8(%rbp) leaq -0x38(%rbp), %rdi callq 0x77860 leaq -0x58(%rbp), %rdi callq 0x1b760 leaq -0x78(%rbp), %rdi callq 0x1b760 leaq 0xf000f(%rip), %rax # 0x1666c0 movq (%rax), %rax movq %rax, -0xf0(%rbp) leaq -0x99(%rbp), %rdi movq %rdi, -0...
/adityavs[P]ninja/src/clparser_test.cc
RegisterCLParserTestParseSimple::RegisterCLParserTestParseSimple()
TEST(CLParserTest, ParseSimple) { CLParser parser; string output, err; ASSERT_TRUE(parser.Parse( "foo\r\n" "Note: inc file prefix: foo.h\r\n" "bar\r\n", "Note: inc file prefix:", &output, &err)); ASSERT_EQ("foo\nbar\n", output); ASSERT_EQ(1u, parser.includes_.size()); ASSERT_EQ("fo...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0x4cd(%rip), %rdi # 0x77d10 leaq 0x914b6(%rip), %rsi # 0x108d00 callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nop
/adityavs[P]ninja/src/clparser_test.cc
RegisterCLParserTestDuplicatedHeader::RegisterCLParserTestDuplicatedHeader()
TEST(CLParserTest, DuplicatedHeader) { CLParser parser; string output, err; ASSERT_TRUE(parser.Parse( "Note: including file: foo.h\r\n" "Note: including file: bar.h\r\n" "Note: including file: foo.h\r\n", "", &output, &err)); // We should have dropped one copy of foo.h. ASSERT_EQ("", o...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) leaq 0x5dd(%rip), %rdi # 0x77ef0 leaq 0x91440(%rip), %rsi # 0x108d5a callq 0xb9890 addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax) nop
/adityavs[P]ninja/src/clparser_test.cc
CLParserTestDuplicatedHeader::~CLParserTestDuplicatedHeader()
TEST(CLParserTest, DuplicatedHeader) { CLParser parser; string output, err; ASSERT_TRUE(parser.Parse( "Note: including file: foo.h\r\n" "Note: including file: bar.h\r\n" "Note: including file: foo.h\r\n", "", &output, &err)); // We should have dropped one copy of foo.h. ASSERT_EQ("", o...
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/clparser_test.cc
CLParserTestFilterInputFilename::Create()
TEST(CLParserTest, FilterInputFilename) { ASSERT_TRUE(CLParser::FilterInputFilename("foobar.cc")); ASSERT_TRUE(CLParser::FilterInputFilename("foo bar.cc")); ASSERT_TRUE(CLParser::FilterInputFilename("baz.c")); ASSERT_TRUE(CLParser::FilterInputFilename("FOOBAR.CC")); ASSERT_FALSE(CLParser::FilterInputFilename...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x10, %edi callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0x77cd0 jmp 0x77c93 movq -0x18(%rbp), %rax leaq 0xeea22(%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/clparser_test.cc
(anonymous namespace)::DepsLogTestDoubleEntry::~DepsLogTestDoubleEntry()
TEST_F(DepsLogTest, DoubleEntry) { // Write some deps to the file and grab its size. int file_size; { State state; DepsLog log; string err; EXPECT_TRUE(log.OpenForWrite(kTestFilename, &err)); ASSERT_EQ("", err); vector<Node*> deps; deps.push_back(state.GetNode("foo.h", 0)); deps.p...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi callq 0x80df0 addq $0x10, %rsp popq %rbp retq nopl (%rax,%rax)
/adityavs[P]ninja/src/deps_log_test.cc
(anonymous namespace)::DepsLogTestDoubleEntry::~DepsLogTestDoubleEntry()
TEST_F(DepsLogTest, DoubleEntry) { // Write some deps to the file and grab its size. int file_size; { State state; DepsLog log; string err; EXPECT_TRUE(log.OpenForWrite(kTestFilename, &err)); ASSERT_EQ("", err); vector<Node*> deps; deps.push_back(state.GetNode("foo.h", 0)); deps.p...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x816e0 movq -0x10(%rbp), %rdi movl $0x10, %esi callq 0x1b4d0 addq $0x10, %rsp popq %rbp retq nopl (%rax)
/adityavs[P]ninja/src/deps_log_test.cc
(anonymous namespace)::DepsLogTestDoubleEntry::Run()
TEST_F(DepsLogTest, DoubleEntry) { // Write some deps to the file and grab its size. int file_size; { State state; DepsLog log; string err; EXPECT_TRUE(log.OpenForWrite(kTestFilename, &err)); ASSERT_EQ("", err); vector<Node*> deps; deps.push_back(state.GetNode("foo.h", 0)); deps.p...
pushq %rbp movq %rsp, %rbp subq $0x640, %rsp # imm = 0x640 movq %rdi, -0x8(%rbp) leaq -0x118(%rbp), %rdi callq 0xf2630 leaq -0x178(%rbp), %rdi callq 0x57030 jmp 0x81759 leaq -0x1a8(%rbp), %rdi callq 0x1b760 leaq 0xe4f54(%rip), %rax # 0x1666c0 movq (%rax), %rax movq %rax, -0x590(%rbp) leaq -0x1c9(%rbp), %...
/adityavs[P]ninja/src/deps_log_test.cc
(anonymous namespace)::DepsLogTestRecompact::Create()
TEST_F(DepsLogTest, Recompact) { const char kManifest[] = "rule cc\n" " command = cc\n" " deps = gcc\n" "build out.o: cc\n" "build other_out.o: cc\n"; // Write some deps to the file and grab its size. int file_size; { State state; ASSERT_NO_FATAL_FAILURE(AssertParse(&state, kManifest)); DepsLog l...
pushq %rbp movq %rsp, %rbp subq $0x20, %rsp movl $0x10, %edi callq 0x1b4b0 movq %rax, %rdi movq %rdi, %rax movq %rax, -0x18(%rbp) callq 0x82170 jmp 0x82133 movq -0x18(%rbp), %rax leaq 0xe4582(%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/deps_log_test.cc
(anonymous namespace)::DepsLogTestRecompact::DepsLogTestRecompact()
TEST_F(DepsLogTest, Recompact) { const char kManifest[] = "rule cc\n" " command = cc\n" " deps = gcc\n" "build out.o: cc\n" "build other_out.o: cc\n"; // Write some deps to the file and grab its size. int file_size; { State state; ASSERT_NO_FATAL_FAILURE(AssertParse(&state, kManifest)); DepsLog l...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi movq %rdi, -0x10(%rbp) callq 0x7fda0 movq -0x10(%rbp), %rax leaq 0xdf8ec(%rip), %rcx # 0x161a80 addq $0x10, %rcx movq %rcx, (%rax) addq $0x10, %rsp popq %rbp retq nopw %cs:(%rax,%rax)
/adityavs[P]ninja/src/deps_log_test.cc
(anonymous namespace)::DepsLogTestRecompact::~DepsLogTestRecompact()
TEST_F(DepsLogTest, Recompact) { const char kManifest[] = "rule cc\n" " command = cc\n" " deps = gcc\n" "build out.o: cc\n" "build other_out.o: cc\n"; // Write some deps to the file and grab its size. int file_size; { State state; ASSERT_NO_FATAL_FAILURE(AssertParse(&state, kManifest)); DepsLog l...
pushq %rbp movq %rsp, %rbp subq $0x10, %rsp movq %rdi, -0x8(%rbp) movq -0x8(%rbp), %rdi callq 0x80df0 addq $0x10, %rsp popq %rbp retq nopl (%rax,%rax)
/adityavs[P]ninja/src/deps_log_test.cc