summaryrefslogtreecommitdiffstats
path: root/src/build_log_test.cc
Commit message (Collapse)AuthorAgeFilesLines
* windows: use _WIN32 define everywhereEvan Martin2012-01-221-2/+2
| | | | Rather than mixing use of WIN32 and _WIN32.
* make my last change actually workEvan Martin2012-01-051-5/+6
|
* Switch build log to use tabs as field separators, to support outputs with ↵Nico Weber2012-01-051-0/+19
| | | | spaces.
* Implement restat rulesPeter Collingbourne2011-10-241-0/+19
| | | | | | | | | | | | | | | | | A restat rule is a rule which is capable of pruning the build tree depending on the timestamps of its outputs before and after a build. After a restat rule is rebuilt, Ninja will re-stat each output file to obtain its current timestamp. If the timestamp is unchanged from when Ninja initially stat'ed the file before starting the build, Ninja will mark that output file as clean, and recursively for each reverse dependency of the output file, recompute its dirty status. Ninja then stores the most recent timestamp of any input file in the build log entry associated with the output file. This timestamp will be treated by future invocations of Ninja as the output file's modification time instead of the output file's actual modification time for the purpose of deciding whether it is dirty (but not whether its reverse dependencies are dirty).
* build_log_test.cc: add 3 #include for stat(2) on LinuxQingning Huo2011-06-101-0/+6
|
* remove +x bit from sourceEvan Martin2011-06-031-0/+0
|
* mingw ninja_test links and passes. (as do linux and native VS2010)Philip Craig2011-05-291-2/+3
| | | | | | Use chsize instead of truncate for mingw compatibility SubprocessTest uses DoWork to force Subprocesses to execute Drop GoodCommandStdOut test as it is tested in SetWithSingle
* Tests now build on a native Windows build (tested with VS2010)Philip Craig2011-05-281-0/+11
| | | | | All tests except SubProcess pass on a native Windows build Tests continue not to build on a platform=mingw build
* don't crash on truncated log filesEvan Martin2011-05-111-0/+28
| | | | | Add a test that tries all truncations of a log file and verifies it doesn't crash.
* add a versioning header to build log, switch to v2Evan Martin2011-05-111-3/+3
| | | | | In v2 we store both the start and end time of the command. This allows better visualization of the build process.
* windows: successfully link testsEvan Martin2011-05-061-2/+2
| | | | | It links, with some hacks. Tests still fail.
* add copyrightsEvan Martin2011-02-061-0/+14
|
* remove tempnamEvan Martin2011-01-091-8/+7
|
* work around mktemp warningEvan Martin2011-01-081-2/+1
|
* later entry in build log should overwrite earlier oneEvan Martin2011-01-071-0/+16
|
* add a class for logging builds (commands + timing)Evan Martin2010-12-231-0/+43