Lines Matching refs:builder_
490 builder_(&state_, config_, NULL, NULL, &fs_, &status_, 0) { in BuildTest()
495 builder_(&state_, config_, NULL, log, &fs_, &status_, 0) {} in BuildTest()
500 builder_.command_runner_.reset(&command_runner_); in SetUp()
511 builder_.command_runner_.release(); in ~BuildTest()
536 Builder builder_; member
733 EXPECT_TRUE(builder_.AlreadyUpToDate()); in TEST_F()
741 EXPECT_TRUE(builder_.AddTarget("cat1", &err)); in TEST_F()
743 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
755 EXPECT_TRUE(builder_.AddTarget("cat1", &err)); in TEST_F()
757 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
766 EXPECT_TRUE(builder_.AddTarget("cat12", &err)); in TEST_F()
768 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
786 EXPECT_TRUE(builder_.AddTarget("cat12", &err)); in TEST_F()
788 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
804 EXPECT_TRUE(builder_.AddTarget("out1", &err)); in TEST_F()
806 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
820 EXPECT_TRUE(builder_.AddTarget("out.imp", &err)); in TEST_F()
822 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
842 EXPECT_TRUE(builder_.AddTarget("out", &err)); in TEST_F()
844 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
858 EXPECT_TRUE(builder_.AddTarget("c5", &err)); in TEST_F()
860 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
867 EXPECT_TRUE(builder_.AddTarget("c5", &err)); in TEST_F()
869 EXPECT_TRUE(builder_.AlreadyUpToDate()); in TEST_F()
877 EXPECT_TRUE(builder_.AddTarget("c5", &err)); in TEST_F()
879 EXPECT_FALSE(builder_.AlreadyUpToDate()); in TEST_F()
880 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
888 EXPECT_FALSE(builder_.AddTarget("cat1", &err)); in TEST_F()
896 EXPECT_FALSE(builder_.AddTarget("meow", &err)); in TEST_F()
904 EXPECT_FALSE(builder_.AddTarget("in1", &err)); in TEST_F()
918 EXPECT_TRUE(builder_.AddTarget("subdir/dir2/file", &err)); in TEST_F()
921 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
935 EXPECT_TRUE(builder_.AddTarget("fo o.o", &err)); in TEST_F()
952 EXPECT_TRUE(builder_.AddTarget("foo.o", &err)); in TEST_F()
974 EXPECT_FALSE(builder_.AddTarget("foo.o", &err)); in TEST_F()
993 EXPECT_TRUE(builder_.AddTarget("a", &err)); in TEST_F()
996 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
1011 EXPECT_TRUE(builder_.AddTarget("foo.o", &err)); in TEST_F()
1029 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
1043 EXPECT_TRUE(builder_.AddTarget("foo.o", &err)); in TEST_F()
1044 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
1057 EXPECT_TRUE(builder_.AddTarget("foo.o", &err)); in TEST_F()
1059 EXPECT_TRUE(builder_.AlreadyUpToDate()); in TEST_F()
1065 EXPECT_TRUE(builder_.AddTarget("foo.o", &err)); in TEST_F()
1066 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
1083 EXPECT_TRUE(builder_.AddTarget("foo.o", &err)); in TEST_F()
1084 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
1091 EXPECT_TRUE(builder_.AddTarget("foo.o", &err)); in TEST_F()
1093 EXPECT_TRUE(builder_.AlreadyUpToDate()); in TEST_F()
1099 EXPECT_TRUE(builder_.AddTarget("foo.o", &err)); in TEST_F()
1100 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
1111 EXPECT_TRUE(builder_.AddTarget("foo.o", &err)); in TEST_F()
1112 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
1132 EXPECT_TRUE(builder_.AddTarget("gen/stuff/things/foo.o", &err)); in TEST_F()
1157 EXPECT_TRUE(builder_.AddTarget("all", &err)); in TEST_F()
1161 EXPECT_FALSE(builder_.AlreadyUpToDate()); in TEST_F()
1162 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
1175 EXPECT_TRUE(builder_.AddTarget("all", &err)); in TEST_F()
1177 EXPECT_TRUE(builder_.AlreadyUpToDate()); in TEST_F()
1188 EXPECT_TRUE(builder_.AddTarget("a", &err)); in TEST_F()
1190 EXPECT_TRUE(builder_.AlreadyUpToDate()); in TEST_F()
1215 Builder& builder_ = t->builder_; in TestPhonyUseCase() local
1240 builder_.command_runner_.release(); // BuildTest owns the CommandRunner in TestPhonyUseCase()
1241 builder_.command_runner_.reset(&command_runner_); in TestPhonyUseCase()
1244 EXPECT_TRUE(builder_.AddTarget("test1", &err)); in TestPhonyUseCase()
1246 EXPECT_TRUE(builder_.AddTarget("test2", &err)); in TestPhonyUseCase()
1248 EXPECT_TRUE(builder_.AddTarget("test3", &err)); in TestPhonyUseCase()
1250 EXPECT_TRUE(builder_.AddTarget("test4", &err)); in TestPhonyUseCase()
1252 EXPECT_TRUE(builder_.AddTarget("test5", &err)); in TestPhonyUseCase()
1254 EXPECT_TRUE(builder_.AddTarget("test6", &err)); in TestPhonyUseCase()
1256 EXPECT_TRUE(builder_.Build(&err)); in TestPhonyUseCase()
1272 EXPECT_TRUE(builder_.AddTarget("test" + ci, &err)); in TestPhonyUseCase()
1274 if (!builder_.AlreadyUpToDate()) in TestPhonyUseCase()
1275 EXPECT_TRUE(builder_.Build(&err)); in TestPhonyUseCase()
1283 EXPECT_TRUE(builder_.AddTarget("test" + ci, &err)); in TestPhonyUseCase()
1288 EXPECT_FALSE(builder_.AlreadyUpToDate()); in TestPhonyUseCase()
1289 EXPECT_TRUE(builder_.Build(&err)); in TestPhonyUseCase()
1293 EXPECT_TRUE(builder_.AlreadyUpToDate()); in TestPhonyUseCase()
1312 EXPECT_TRUE(builder_.AddTarget("test" + ci, &err)); in TestPhonyUseCase()
1314 EXPECT_FALSE(builder_.AlreadyUpToDate()); in TestPhonyUseCase()
1315 EXPECT_TRUE(builder_.Build(&err)); in TestPhonyUseCase()
1322 EXPECT_TRUE(builder_.AddTarget("test" + ci, &err)); in TestPhonyUseCase()
1324 EXPECT_FALSE(builder_.AlreadyUpToDate()); in TestPhonyUseCase()
1325 EXPECT_TRUE(builder_.Build(&err)); in TestPhonyUseCase()
1346 EXPECT_TRUE(builder_.AddTarget("out1", &err)); in TEST_F()
1349 EXPECT_FALSE(builder_.Build(&err)); in TEST_F()
1367 EXPECT_TRUE(builder_.AddTarget("all", &err)); in TEST_F()
1370 EXPECT_FALSE(builder_.Build(&err)); in TEST_F()
1388 EXPECT_TRUE(builder_.AddTarget("final", &err)); in TEST_F()
1391 EXPECT_FALSE(builder_.Build(&err)); in TEST_F()
1412 EXPECT_TRUE(builder_.AddTarget("final", &err)); in TEST_F()
1415 EXPECT_FALSE(builder_.Build(&err)); in TEST_F()
1447 builder_.SetBuildLog(&build_log_); in BuildWithLogTest()
1465 EXPECT_TRUE(builder_.AddTarget("out.imp", &err)); in TEST_F()
1466 EXPECT_FALSE(builder_.AlreadyUpToDate()); in TEST_F()
1486 EXPECT_TRUE(builder_.AddTarget("out.imp", &err)); in TEST_F()
1487 EXPECT_FALSE(builder_.AlreadyUpToDate()); in TEST_F()
1489 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
1490 EXPECT_TRUE(builder_.AlreadyUpToDate()); in TEST_F()
1494 builder_.Cleanup(); in TEST_F()
1495 builder_.plan_.Reset(); in TEST_F()
1497 EXPECT_TRUE(builder_.AddTarget("out.imp", &err)); in TEST_F()
1498 EXPECT_TRUE(builder_.AlreadyUpToDate()); in TEST_F()
1516 EXPECT_TRUE(builder_.AddTarget("out1", &err)); in TEST_F()
1517 EXPECT_FALSE(builder_.AlreadyUpToDate()); in TEST_F()
1522 EXPECT_TRUE(builder_.AddTarget("out1", &err)); in TEST_F()
1523 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
1524 EXPECT_TRUE(builder_.AlreadyUpToDate()); in TEST_F()
1538 EXPECT_TRUE(builder_.AddTarget("out1", &err)); in TEST_F()
1539 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
1545 builder_.Cleanup(); in TEST_F()
1546 builder_.plan_.Reset(); in TEST_F()
1552 EXPECT_TRUE(builder_.AddTarget("out1", &err)); in TEST_F()
1553 EXPECT_FALSE(builder_.Build(&err)); in TEST_F()
1559 builder_.Cleanup(); in TEST_F()
1560 builder_.plan_.Reset(); in TEST_F()
1565 EXPECT_TRUE(builder_.AddTarget("out1", &err)); in TEST_F()
1566 EXPECT_FALSE(builder_.AlreadyUpToDate()); in TEST_F()
1567 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
1583 EXPECT_TRUE(builder_.AddTarget("out1", &err)); in TEST_F()
1584 EXPECT_TRUE(builder_.AddTarget("out2", &err)); in TEST_F()
1585 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
1596 EXPECT_TRUE(builder_.AddTarget("out1", &err)); in TEST_F()
1597 EXPECT_TRUE(builder_.AddTarget("out2", &err)); in TEST_F()
1598 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
1627 EXPECT_TRUE(builder_.AddTarget("out3", &err)); in TEST_F()
1629 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
1632 EXPECT_EQ(3u, builder_.plan_.command_edge_count()); in TEST_F()
1641 EXPECT_TRUE(builder_.AddTarget("out3", &err)); in TEST_F()
1643 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
1650 EXPECT_TRUE(builder_.AddTarget("out3", &err)); in TEST_F()
1652 EXPECT_TRUE(builder_.AlreadyUpToDate()); in TEST_F()
1662 EXPECT_TRUE(builder_.AddTarget("out3", &err)); in TEST_F()
1664 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
1689 EXPECT_TRUE(builder_.AddTarget("out2", &err)); in TEST_F()
1691 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
1703 EXPECT_TRUE(builder_.AddTarget("out2", &err)); in TEST_F()
1705 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
1725 EXPECT_TRUE(builder_.AddTarget("out4", &err)); in TEST_F()
1727 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
1742 EXPECT_TRUE(builder_.AddTarget("out4", &err)); in TEST_F()
1744 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
1774 EXPECT_TRUE(builder_.AddTarget("out2", &err)); in TEST_F()
1776 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
1792 EXPECT_TRUE(builder_.AddTarget("out2", &err)); in TEST_F()
1794 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
1815 EXPECT_TRUE(builder_.AddTarget("out", &err)); in TEST_F()
1816 EXPECT_FALSE(builder_.AlreadyUpToDate()); in TEST_F()
1818 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
1819 EXPECT_TRUE(builder_.AlreadyUpToDate()); in TEST_F()
1823 builder_.Cleanup(); in TEST_F()
1824 builder_.plan_.Reset(); in TEST_F()
1826 EXPECT_TRUE(builder_.AddTarget("out", &err)); in TEST_F()
1827 EXPECT_TRUE(builder_.AlreadyUpToDate()); in TEST_F()
1859 EXPECT_TRUE(builder_.AddTarget("out3", &err)); in TEST_F()
1861 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
1894 EXPECT_TRUE(builder_.AddTarget("out1", &err)); in TEST_F()
1896 EXPECT_TRUE(builder_.AddTarget("out2", &err)); in TEST_F()
1898 EXPECT_TRUE(builder_.AddTarget("out 3", &err)); in TEST_F()
1904 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
1934 EXPECT_TRUE(builder_.AddTarget("out", &err)); in TEST_F()
1940 EXPECT_FALSE(builder_.Build(&err)); in TEST_F()
1973 EXPECT_TRUE(builder_.AddTarget("out", &err)); in TEST_F()
1977 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
1983 EXPECT_TRUE(builder_.AddTarget("out", &err)); in TEST_F()
1985 ASSERT_TRUE(builder_.AlreadyUpToDate()); in TEST_F()
1998 EXPECT_TRUE(builder_.AddTarget("out", &err)); in TEST_F()
2000 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
2021 EXPECT_TRUE(builder_.AddTarget("out1", &err)); in TEST_F()
2023 EXPECT_FALSE(builder_.Build(&err)); in TEST_F()
2025 builder_.Cleanup(); in TEST_F()
2030 EXPECT_TRUE(builder_.AddTarget("out2", &err)); in TEST_F()
2032 EXPECT_FALSE(builder_.Build(&err)); in TEST_F()
2034 builder_.Cleanup(); in TEST_F()
2049 EXPECT_FALSE(builder_.AddTarget(kTooLongToStat, &err)); in TEST_F()
2064 EXPECT_TRUE(builder_.AddTarget("out1", &err)); in TEST_F()
2066 EXPECT_TRUE(builder_.AlreadyUpToDate()); in TEST_F()
2072 EXPECT_TRUE(builder_.AddTarget("out2", &err)); in TEST_F()
2074 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
2088 EXPECT_TRUE(builder_.AddTarget("out", &err)); in TEST_F()
2090 EXPECT_FALSE(builder_.AlreadyUpToDate()); in TEST_F()
2092 EXPECT_FALSE(builder_.Build(&err)); in TEST_F()
2116 EXPECT_TRUE(builder_.AddTarget("bad_deps.o", &err)); in TEST_F()
2123 EXPECT_FALSE(builder_.Build(&err)); in TEST_F()
2160 EXPECT_TRUE(builder_.AddTarget("out1", &err)); in TEST_F()
2162 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
2188 EXPECT_TRUE(builder_.AddTarget("out1", &err)); in TEST_F()
2191 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
2219 EXPECT_TRUE(builder_.AddTarget("out1", &err)); in TEST_F()
2222 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
2250 EXPECT_TRUE(builder_.AddTarget("out1", &err)); in TEST_F()
2253 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
2281 EXPECT_TRUE(builder_.AddTarget("out1", &err)); in TEST_F()
2284 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
2314 EXPECT_TRUE(builder_.AddTarget("out1", &err)); in TEST_F()
2317 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
2355 void* builder_; member
2541 EXPECT_TRUE(builder_.AddTarget("out", &err)); in TEST_F()
2543 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
2926 EXPECT_TRUE(builder_.AddTarget("cons", &err)); in TEST_F()
2928 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
2944 EXPECT_FALSE(builder_.AddTarget("out", &err)); in TEST_F()
2967 EXPECT_TRUE(builder_.AddTarget("out", &err)); in TEST_F()
2969 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
2990 EXPECT_FALSE(builder_.AddTarget("out", &err)); in TEST_F()
3011 EXPECT_FALSE(builder_.AddTarget("out", &err)); in TEST_F()
3032 EXPECT_TRUE(builder_.AddTarget("out", &err)); in TEST_F()
3036 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
3067 EXPECT_TRUE(builder_.AddTarget("out", &err)); in TEST_F()
3070 EXPECT_FALSE(builder_.Build(&err)); in TEST_F()
3095 EXPECT_TRUE(builder_.AddTarget("out", &err)); in TEST_F()
3098 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
3127 EXPECT_TRUE(builder_.AddTarget("out", &err)); in TEST_F()
3130 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
3160 EXPECT_TRUE(builder_.AddTarget("out1", &err)); in TEST_F()
3161 EXPECT_TRUE(builder_.AddTarget("out2", &err)); in TEST_F()
3164 EXPECT_FALSE(builder_.Build(&err)); in TEST_F()
3200 EXPECT_TRUE(builder_.AddTarget("out1", &err)); in TEST_F()
3201 EXPECT_TRUE(builder_.AddTarget("out2", &err)); in TEST_F()
3204 EXPECT_FALSE(builder_.Build(&err)); in TEST_F()
3229 EXPECT_TRUE(builder_.AddTarget("out", &err)); in TEST_F()
3232 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
3258 EXPECT_TRUE(builder_.AddTarget("out", &err)); in TEST_F()
3261 EXPECT_FALSE(builder_.Build(&err)); in TEST_F()
3289 EXPECT_TRUE(builder_.AddTarget("out", &err)); in TEST_F()
3292 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
3323 EXPECT_TRUE(builder_.AddTarget("out", &err)); in TEST_F()
3325 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
3355 EXPECT_TRUE(builder_.AddTarget("out", &err)); in TEST_F()
3361 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
3372 EXPECT_TRUE(builder_.AlreadyUpToDate()); in TEST_F()
3398 EXPECT_TRUE(builder_.AddTarget("out", &err)); in TEST_F()
3400 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
3429 EXPECT_TRUE(builder_.AddTarget("out", &err)); in TEST_F()
3431 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
3463 EXPECT_TRUE(builder_.AddTarget("out", &err)); in TEST_F()
3466 EXPECT_FALSE(builder_.Build(&err)); in TEST_F()
3500 EXPECT_TRUE(builder_.AddTarget("out2", &err)); in TEST_F()
3502 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
3516 EXPECT_TRUE(builder_.AddTarget("out2", &err)); in TEST_F()
3518 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
3556 EXPECT_TRUE(builder_.AddTarget("out1", &err)); in TEST_F()
3557 EXPECT_TRUE(builder_.AddTarget("out2", &err)); in TEST_F()
3559 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
3608 EXPECT_TRUE(builder_.AddTarget("out2", &err)); in TEST_F()
3610 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
3653 EXPECT_TRUE(builder_.AddTarget("out2", &err)); in TEST_F()
3655 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
3692 EXPECT_TRUE(builder_.AddTarget("out", &err)); in TEST_F()
3695 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
3732 EXPECT_TRUE(builder_.AddTarget("out", &err)); in TEST_F()
3735 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
3754 EXPECT_TRUE(builder_.AddTarget("out", &err)); in TEST_F()
3757 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
3770 EXPECT_TRUE(builder_.AddTarget("out", &err)); in TEST_F()
3773 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
3787 EXPECT_TRUE(builder_.AddTarget("out", &err)); in TEST_F()
3790 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
3806 EXPECT_TRUE(builder_.AddTarget("out", &err)); in TEST_F()
3809 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
3821 EXPECT_TRUE(builder_.AddTarget("out", &err)); in TEST_F()
3824 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
3837 EXPECT_TRUE(builder_.AddTarget("out", &err)); in TEST_F()
3840 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
3935 EXPECT_TRUE(builder_.AddTarget("out", &err)); in TEST_F()
3938 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
3950 EXPECT_TRUE(builder_.AddTarget("out", &err)); in TEST_F()
3953 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
3966 EXPECT_TRUE(builder_.AddTarget("out", &err)); in TEST_F()
3969 EXPECT_TRUE(builder_.Build(&err)); in TEST_F()
3985 EXPECT_FALSE(builder_.AddTarget("out", &err)); in TEST_F()