45 Commits

Author SHA1 Message Date
Joel Rosdahl
614a19141a Portability: Define PWD if not defined 2010-02-28 10:30:03 +01:00
Joel Rosdahl
9fbe4e4578 Simplify and correct calculation of default dependency file name 2010-02-27 22:53:04 +01:00
Joel Rosdahl
fc65db8dfd Minor improvements of test.sh 2010-02-27 12:36:41 +01:00
Joel Rosdahl
ecd8e731ae Remove test.sh's dependency on Perl 2010-02-23 22:23:36 +01:00
Joel Rosdahl
4af546d3dc Merge CCACHE_HASH_COMPILER/CCACHE_NOHASH_SIZE_MTIME into CCACHE_COMPILERCHECK 2010-02-22 22:40:50 +01:00
Joel Rosdahl
f327c837fc Quote statistics key in failed test output for readability 2010-02-22 08:37:25 +01:00
Joel Rosdahl
131111cd58 Handle missing or empty object file from compiler properly 2010-02-22 08:36:40 +01:00
Joel Rosdahl
309e423f99 Don't remove the test directory upon test failure to ease troubleshooting 2010-02-21 18:20:53 +01:00
Joel Rosdahl
5ea294ef76 Force new hash sums
All hash sums will from now on be different from those calculated by ccache
2.4, instead of only hash sums for compressed files. This makes hash sums for
compressed and uncompressed files equal again, which reopens for conversion
between compressed and uncompressed files, should the need arise.
2010-02-21 18:18:03 +01:00
Owen Mann
a04bed3aeb Clear out env so "make test" always works
Fix for bug #7161.
2010-02-20 09:55:32 +01:00
Joel Rosdahl
681036bcd8 Use "perl -pi -e" instead of "sed -i" to increase portability 2010-02-17 21:20:06 +01:00
Joel Rosdahl
976e256525 Update copyright notices 2010-02-17 21:03:29 +01:00
Joel Rosdahl
fd0cd87c6b Remove stderr file from the preprocessor when we get a preprocessed cache hit 2010-02-12 21:52:28 +01:00
Joel Rosdahl
42273c937f Let compressed files get different hash sums than uncompressed
This is to avoid problems when older ccache versions (without compression
support) access the cache.
2010-01-06 22:23:10 +01:00
Joel Rosdahl
f98719bc90 CCACHE_NOCOMPRESS needs to be set in order to use hard links 2010-01-06 22:23:10 +01:00
Joel Rosdahl
0114296fcb Unify comments when hashing source code to increase hit rate 2010-01-05 18:53:04 +01:00
Joel Rosdahl
92843a0cb6 Improve handling of unnormalized CCACHE_BASEDIR path 2010-01-05 18:53:03 +01:00
Joel Rosdahl
24f886c412 Implement installcheck make target 2010-01-05 18:53:03 +01:00
Joel Rosdahl
84fc7d1ce5 Reenable .ii tests
Hopefully, it's OK to require a working C++ installation to run the tests.
2010-01-05 18:53:03 +01:00
Joel Rosdahl
9bd32895fd Also store preprocessor standard error output in .stderr file
This is needed because we don't run the preprocessor at all in direct mode.
2010-01-05 18:53:03 +01:00
Joel Rosdahl
59eb6b9fc3 Don't create empty stderr files in the cache 2010-01-05 18:53:03 +01:00
Joel Rosdahl
5de11867ce Make it possible to specify test suites to run on the command line 2010-01-05 18:53:03 +01:00
Joel Rosdahl
63a505fe79 Fix statistics and cache cleanup for files generated by direct mode
The statistics counters "files in cache" and "cache size" now only include
object files. It's not worth the effort to keep track of the .manifest, .d and
.stderr files since the cache size is dominated by the object files, and it's
unlikely that anyone is bothered by du(1) having a different opinion (which
also was the case before anyway). Consequently, the "max file" and "max cache
size" settings now specify thresholds for object files count and size.
2010-01-05 18:53:03 +01:00
Joel Rosdahl
8d121763f2 Handle missing dependency file in cache correctly 2010-01-05 18:53:03 +01:00
Joel Rosdahl
befbba943b Rewrite include directory option arguments into relative to get better hit rate
A secondary effect is that paths in the standard error output produced by the
compiler will be normalized.
2010-01-05 18:53:02 +01:00
Joel Rosdahl
3e9dda00ab Add support for -Wp,-MD and -Wp,-MMD flags 2010-01-05 18:53:02 +01:00
Joel Rosdahl
f5bb7e4e5a Rewrite absolute paths under CCACHE_BASEDIR to relative 2010-01-05 18:53:02 +01:00
Joel Rosdahl
ba93474268 Let direct mode create dependency file too 2010-01-05 18:53:02 +01:00
Joel Rosdahl
e53af1a618 First working version of the direct mode 2010-01-05 18:53:01 +01:00
Joel Rosdahl
09e93f68aa Export variables in test.sh to make tests work properly 2010-01-05 18:53:01 +01:00
Joel Rosdahl
9ec8fa991b Fix tab usage 2010-01-05 18:53:01 +01:00
Joel Rosdahl
dca11d321b Remove trailing whitespace 2010-01-05 18:53:01 +01:00
Andrew Tridgell
a83ccbebb2 unset CCACHE_DISABLE so ccache on build farm with lcov is OK 2007-02-28 05:23:43 +01:00
Andrew Tridgell
2090a5dd8d - attempt to make ccache work with cygwin by using O_BINARY (thanks
to email from Emilio Lopes <eclig@gmx.net>)

 - disabled the direct .ii tests as these break with newest gcc
2004-09-06 14:24:05 +02:00
Andrew Tridgell
bccd81cefc make sure we hash the cpp extension to ensure we don't mistake a .i
for a .ii
2003-09-25 07:49:50 +02:00
Andrew Tridgell
bf44b83f2f added support for direct compilation of .i and .ii files 2003-09-25 07:41:17 +02:00
Andrew Tridgell
2434217fcc use $CC to choose the compiler 2003-03-29 00:42:03 +01:00
Andrew Tridgell
341508409c fixed export syntax for solaris 2003-03-28 23:33:02 +01:00
Andrew Tridgell
542837babf take account of the fact that unify implies hashing the filename 2003-03-28 14:01:12 +01:00
Andrew Tridgell
e5994b23f6 compilers treat zero length files differently 2003-03-28 13:33:39 +01:00
Andrew Tridgell
c8ecc60886 -Wall isn't portable, but running -O twice is 2003-03-28 13:25:27 +01:00
Andrew Tridgell
458fc08504 some compilers will overwrite /dev/zero - this makes sure the test
suite doesn't break those systems as root
2003-03-28 13:24:26 +01:00
Andrew Tridgell
f835d9fd6f made the test suite a little more portable
some compilers strip trailing linefeeds
2003-03-28 12:44:18 +01:00
Andrew Tridgell
f243df628c improved test suite
updated docs for CCACHE_HARDLINK
2003-02-17 01:46:43 +01:00
Andrew Tridgell
a186125cd0 added a simple test suite 2003-02-16 14:30:27 +01:00