summaryrefslogtreecommitdiffstats
path: root/src/depfile_parser_test.cc
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #763 from drbo/masterNico Weber2015-11-121-2/+5
|\ | | | | Allow paths with international characters in depfiles
| * Added test of international character supportDemetri Obenour2014-05-081-2/+5
| |
* | Correct order of ASSERT_EQ argumentsMike Seplowitz2015-07-301-2/+2
| | | | | | | | The correct order is ASSERT_EQ(expected, actual).
* | Reject depfiles that don't contain a : after the target name.Nico Weber2015-03-121-1/+1
| | | | | | | | This is a prerequisite for fixing #417.
* | Use a small, standalone testing framework instead of googletest.Nico Weber2014-09-181-1/+1
|/ | | | | | | | | | | | | | | | | | | | | Ninja currently uses googletest for testing. That makes building ninja_test somewhat annoying since it requires that one passes --with-gtest PATH to configure. It turns out just implementing the bits of googletest that ninja uses needs about the same amount of code than making the --with-gtest flag in configure.py work and making googletest print test results in a way we want (!) In addition to making configuration simpler, this also makes compiling tests much faster: On my system, touching src/build_test.cc (the slowest file to build in ninja) and rebuilding ninja_tests is twice as fast than without this patch. Building all is noticeably faster too: 5.6s with this patch, 9.1s without this patch (38% faster). The most noticeable things missing: EXPECT_* and ASSERT_* don't support streaming notes to them with operator<<, and for failing tests the lhs and rhs are not printed. That's so that this header does not have to include sstream, which slows down building ninja_test almost 20%. If this turns out to be annoying, we can maybe add it.
* Allow paths with '{' '}' in depfilesMaxim Kalaev2014-05-071-2/+5
|
* Accept \r\n line endings in depfiles.Nico Weber2014-05-011-0/+12
| | | | Fixes #752.
* Dollar signs in depfiles are escaped as "$$", not "\$".Nico Weber2013-04-021-1/+1
| | | | | | | See http://llvm.org/PR15642. I checked that gcc does produce depfiles containing "$$" for files with "$" signs in their name (and as of r178540, so does clang). I also checked that .d files that escape dollar signs with "\$" are not read correctly by make.
* allow paths with '!' in depfilesEvan Martin2013-03-301-2/+4
| | | | | See funny paths in https://github.com/google/libcxx/tree/master/test/iterators/stream.iterators/istreambuf.iterator/
* drop DepfileParserTest.Tilde, as it's covered by .SpecialCharsEvan Martin2012-08-241-13/+0
| | | | | The SpecialChars test covers a bunch of different special characters, including tilde.
* dep file parsing: allow '@' and '=' in pathsMaxim Kalaev2012-07-191-2/+7
|
* allow '(' and ')' in depfile pathsEvan Martin2012-06-121-0/+11
| | | | Fixes issue #327.
* fix a typo in a test nameEvan Martin2012-06-121-1/+1
|
* Merge pull request #256 from iwadon/fix-sign-compareEvan Martin2012-04-051-1/+1
|\ | | | | fix warning: "comparison between signed and unsigned integer expressions"
| * fix warning: "comparison between signed and unsigned integer expressions"Hiroyuki Iwatsuki2012-03-161-1/+1
| |
* | Depfile parser accept tilde.Nicolas Despres2012-03-141-0/+13
|/
* Issue #241 - handle depfiles generated by older versions of GCCOleksandr Usov2012-03-121-0/+17
| | | | | | | | | | Older versions of GCC would produce broken depfiles when -MT or -MQ is used gcc43 -MT foo.o -MMD -MF foo.o.d -o foo.o -c foo.c will result in the following depfile foo.o foo.o: <dependencies> Parse multiple outputs unifying duplicates and correctly report errors if they are different.
* de-escape backslashes in depfiles while parsingEvan Martin2011-12-281-3/+20
|
* add (failing) test involving spaces in depfilesEvan Martin2011-12-271-0/+13
|
* switch DepfileParser to take a string* to make memory clearerEvan Martin2011-12-271-18/+26
| | | | Add some comments as well.
* handle backslashes and isolated colons in depfile parserEvan Martin2011-12-191-0/+16
| | | | | | | | The logic was wrong if the input looked like foo : bar baz with a space before the colon. Test from Frances <frances.buontempo@gmail.com>.
* split out depfile parser tests into new fileEvan Martin2011-12-191-0/+50