]> git.ipfire.org Git - thirdparty/ccache.git/log
thirdparty/ccache.git
11 years agoCreate destination file and then copy into cache instead of the opposite
Joel Rosdahl [Sun, 8 Jun 2014 15:29:44 +0000 (17:29 +0200)] 
Create destination file and then copy into cache instead of the opposite

This simplifies the code so that there is no special case kicking in when
using --serialize-diagnostics (which requires the "-o" option to refer to
the destination instead of a temporary file in the cache).

11 years agoDon't install signal handler for SIGHUP on Windows
Patrick von Reth [Mon, 19 May 2014 10:13:01 +0000 (12:13 +0200)] 
Don't install signal handler for SIGHUP on Windows

11 years agoMerge branch 'maint'
Joel Rosdahl [Sun, 18 May 2014 13:58:22 +0000 (15:58 +0200)] 
Merge branch 'maint'

* maint:
  Include signal.h in system.h

Conflicts:
system.h

11 years agoInclude signal.h in system.h
Joel Rosdahl [Sun, 18 May 2014 13:57:21 +0000 (15:57 +0200)] 
Include signal.h in system.h

11 years agoFixed build with mingw
Patrick von Reth [Sat, 17 May 2014 13:29:05 +0000 (15:29 +0200)] 
Fixed build with mingw

_localtime32 was removed from the runtime because it was only avalible at
some Windows versions.
Maybe the time_t* cast could be used on all systems?

11 years agoMerge branch 'maint'
Joel Rosdahl [Wed, 14 May 2014 20:03:53 +0000 (22:03 +0200)] 
Merge branch 'maint'

* maint:
  Fix clang build warning "shift count >= width of type"
  Clean up stale files in internal tempdir once an hour
  Add signal handler to clean up temporary files at unexpected program exit
  Don't needlessly allocate empty counter_updates data in stats_flush()

Conflicts:
ccache.c
manifest.c
stats.c

11 years agoFix clang build warning "shift count >= width of type"
Joel Rosdahl [Wed, 14 May 2014 19:33:33 +0000 (21:33 +0200)] 
Fix clang build warning "shift count >= width of type"

11 years agoClean up stale files in internal tempdir once an hour
Joel Rosdahl [Mon, 12 May 2014 20:31:58 +0000 (22:31 +0200)] 
Clean up stale files in internal tempdir once an hour

11 years agoAdd signal handler to clean up temporary files at unexpected program exit
Joel Rosdahl [Mon, 12 May 2014 18:48:45 +0000 (20:48 +0200)] 
Add signal handler to clean up temporary files at unexpected program exit

11 years agoDon't needlessly allocate empty counter_updates data in stats_flush()
Joel Rosdahl [Mon, 12 May 2014 18:42:33 +0000 (20:42 +0200)] 
Don't needlessly allocate empty counter_updates data in stats_flush()

11 years agoRemove unused cc_vlog function
Joel Rosdahl [Thu, 8 May 2014 19:18:52 +0000 (21:18 +0200)] 
Remove unused cc_vlog function

11 years agoRemove left-over merge conflict markers
Joel Rosdahl [Wed, 16 Apr 2014 19:28:57 +0000 (21:28 +0200)] 
Remove left-over merge conflict markers

11 years agoMerge branch 'maint'
Joel Rosdahl [Tue, 15 Apr 2014 20:31:21 +0000 (22:31 +0200)] 
Merge branch 'maint'

* maint:
  manifest file_info fix
  Clean up dead code flagged by cppcheck and clang-analyzer
  Mark fatal() with __attribute__((noreturn)) to please clang-analyzer
  Fix bug in common_dir_prefix_length

Conflicts:
ccache.h
test/test_util.c
util.c

11 years agomanifest file_info fix
Yiding Jia [Mon, 14 Apr 2014 21:46:46 +0000 (14:46 -0700)] 
manifest file_info fix

11 years agoClean up dead code flagged by cppcheck and clang-analyzer
Ville Skyttä [Sat, 28 Dec 2013 20:05:33 +0000 (22:05 +0200)] 
Clean up dead code flagged by cppcheck and clang-analyzer

11 years agoMark fatal() with __attribute__((noreturn)) to please clang-analyzer
Joel Rosdahl [Sun, 13 Apr 2014 18:12:01 +0000 (20:12 +0200)] 
Mark fatal() with __attribute__((noreturn)) to please clang-analyzer

11 years agoFree counters struct in stats_flush
Joel Rosdahl [Sun, 13 Apr 2014 13:51:03 +0000 (15:51 +0200)] 
Free counters struct in stats_flush

11 years agoMention gperf and xsltproc prerequisites in build-from-repo instructions
Joel Rosdahl [Sun, 13 Apr 2014 13:32:35 +0000 (15:32 +0200)] 
Mention gperf and xsltproc prerequisites in build-from-repo instructions

11 years agoFix bug in common_dir_prefix_length
Joel Rosdahl [Wed, 9 Apr 2014 20:11:25 +0000 (22:11 +0200)] 
Fix bug in common_dir_prefix_length

Based on a patch by Douglas Graham <douglas.graham@ericsson.com>.

11 years agoMerge branch 'maint'
Joel Rosdahl [Wed, 8 Jan 2014 20:28:40 +0000 (21:28 +0100)] 
Merge branch 'maint'

* maint:
  Require CCACHE_SLOPPINESS=pch_defines,time_macros opt-in to enable PCH handling
  doc: Mention that --ccache-skip currently does not mean "skip hashing option"
  Don't hash compiler option -fdebug-prefix-map=

Conflicts:
MANUAL.txt
ccache.c
ccache.h
test.sh

11 years agoRequire CCACHE_SLOPPINESS=pch_defines,time_macros opt-in to enable PCH handling
Joel Rosdahl [Wed, 8 Jan 2014 20:13:22 +0000 (21:13 +0100)] 
Require CCACHE_SLOPPINESS=pch_defines,time_macros opt-in to enable PCH handling

The background is that since ccache runs the preprocessor on the header to
be precompiled, the preprocessor removes #defines and ccache then hashes
the output, which means that changes in #defines are not detected even
though the resulting .gch file will have different behavior.

11 years agodoc: Mention that --ccache-skip currently does not mean "skip hashing option"
Joel Rosdahl [Wed, 8 Jan 2014 19:34:07 +0000 (20:34 +0100)] 
doc: Mention that --ccache-skip currently does not mean "skip hashing option"

11 years agoDon't hash compiler option -fdebug-prefix-map=
Joel Rosdahl [Wed, 8 Jan 2014 19:29:33 +0000 (20:29 +0100)] 
Don't hash compiler option -fdebug-prefix-map=

The -fdebug-prefix-map option may be used in combination with
CCACHE_BASEDIR to reuse results across different directories.

Based on a patch by Pawel Sikora.

11 years agoMinor coding style tweaks
Joel Rosdahl [Sun, 8 Dec 2013 09:10:39 +0000 (10:10 +0100)] 
Minor coding style tweaks

11 years agodoc: Manual tweak
Joel Rosdahl [Sat, 26 Oct 2013 13:23:41 +0000 (15:23 +0200)] 
doc: Manual tweak

11 years agoFix problem with basedir in cwd with symlink
Joel Rosdahl [Thu, 17 Oct 2013 19:26:00 +0000 (21:26 +0200)] 
Fix problem with basedir in cwd with symlink

Root cause pointed out by ishikawa@yk.rim.or.jp.

11 years agoFix --dump-manifest test instability in newer GCC versions
Joel Rosdahl [Mon, 23 Sep 2013 12:42:40 +0000 (14:42 +0200)] 
Fix --dump-manifest test instability in newer GCC versions

11 years agoMerge branch 'maint'
Joel Rosdahl [Fri, 30 Aug 2013 21:07:51 +0000 (23:07 +0200)] 
Merge branch 'maint'

* maint:
  Spelling fixes
  Avoid creating ccache directory when CCACHE_DISABLE is set

Conflicts:
ccache.c

11 years agoSpelling fixes
Ville Skyttä [Sat, 10 Aug 2013 21:48:54 +0000 (00:48 +0300)] 
Spelling fixes

11 years agoSupport -@file.opt
Orgad Shaneh [Thu, 9 May 2013 05:37:14 +0000 (08:37 +0300)] 
Support -@file.opt

Some compilers (e.g. diab) use -@ notation for options file

11 years agoCopy dia file even if compiling failed
Thomas Röfer [Wed, 22 May 2013 13:02:21 +0000 (15:02 +0200)] 
Copy dia file even if compiling failed

11 years agoAvoid creating ccache directory when CCACHE_DISABLE is set
Joel Rosdahl [Fri, 30 Aug 2013 20:29:28 +0000 (22:29 +0200)] 
Avoid creating ccache directory when CCACHE_DISABLE is set

11 years agoSkip dependency filename options for object hash.
Jørgen P. Tjernø [Sat, 8 Jun 2013 01:43:18 +0000 (18:43 -0700)] 
Skip dependency filename options for object hash.

The filename of a dependency file doesn't have any bearing on the result, so
using it to calculate object hashes gives incorrect results.

This skips the <file> part of:
  -Wp,-MD,<file>
  -Wp,-MMD,<file>
  -MF<file>
  -MF <file>

Also tests for this functionality.

Fixes issue jrosdahl#28.

11 years agodoc: Update manual to match reality regarding __TIME__ in source code
Joel Rosdahl [Sun, 25 Aug 2013 19:38:59 +0000 (21:38 +0200)] 
doc: Update manual to match reality regarding __TIME__ in source code

12 years agoGitIgnore ccache.exe and dev_mode_disabled
Orgad Shaneh [Thu, 9 May 2013 05:53:51 +0000 (08:53 +0300)] 
GitIgnore ccache.exe and dev_mode_disabled

12 years agoMerge branch 'maint'
Joel Rosdahl [Thu, 8 Aug 2013 20:47:43 +0000 (22:47 +0200)] 
Merge branch 'maint'

* maint:
  Bail out on option -gsplit-dwarf which produces multiple output files
  Treat zero length object files as invalid
  Fix path canonicalization in make_relative_path when path doesn't exist
  Handle some dirname() special cases as expected
  Correct make_relative_path comment

Conflicts:
ccache.c
compopt.c
test/test_argument_processing.c
test/test_util.c

12 years agoBail out on option -gsplit-dwarf which produces multiple output files
Joel Rosdahl [Thu, 8 Aug 2013 20:20:12 +0000 (22:20 +0200)] 
Bail out on option -gsplit-dwarf which produces multiple output files

12 years agoTreat zero length object files as invalid
Michael Meeks [Thu, 8 Aug 2013 20:07:27 +0000 (22:07 +0200)] 
Treat zero length object files as invalid

Fix for bug 9972.

12 years agoFix path canonicalization in make_relative_path when path doesn't exist
Joel Rosdahl [Thu, 8 Aug 2013 16:06:16 +0000 (18:06 +0200)] 
Fix path canonicalization in make_relative_path when path doesn't exist

12 years agoHandle some dirname() special cases as expected
Joel Rosdahl [Thu, 8 Aug 2013 16:05:30 +0000 (18:05 +0200)] 
Handle some dirname() special cases as expected

12 years agoCorrect make_relative_path comment
Joel Rosdahl [Thu, 8 Aug 2013 16:04:44 +0000 (18:04 +0200)] 
Correct make_relative_path comment

12 years agoMinor cleanup
Joel Rosdahl [Wed, 1 May 2013 18:59:43 +0000 (20:59 +0200)] 
Minor cleanup

12 years agoMerge branch 'maint'
Joel Rosdahl [Sun, 31 Mar 2013 19:34:14 +0000 (21:34 +0200)] 
Merge branch 'maint'

* maint:
  Fix test suite failure on GCC 4.8, take three

12 years agoFix test suite failure on GCC 4.8, take three
Ville Skyttä [Sun, 31 Mar 2013 18:34:29 +0000 (21:34 +0300)] 
Fix test suite failure on GCC 4.8, take three

12 years agoMerge branch 'maint'
Joel Rosdahl [Sun, 31 Mar 2013 18:24:56 +0000 (20:24 +0200)] 
Merge branch 'maint'

* maint:
  Fix test suite failure on GCC 4.8, take two

Conflicts:
test.sh

12 years agoFix test suite failure on GCC 4.8, take two
Joel Rosdahl [Sun, 31 Mar 2013 18:22:58 +0000 (20:22 +0200)] 
Fix test suite failure on GCC 4.8, take two

12 years agoMerge branch 'maint'
Joel Rosdahl [Wed, 20 Mar 2013 21:26:25 +0000 (22:26 +0100)] 
Merge branch 'maint'

* maint:
  Fix test suite failure on GCC 4.8
  Comment spelling fix

Conflicts:
test.sh

12 years agoFix test suite failure on GCC 4.8
Joel Rosdahl [Wed, 20 Mar 2013 21:18:16 +0000 (22:18 +0100)] 
Fix test suite failure on GCC 4.8

GCC 4.8 includes /usr/include/stdc-predef.h implicitly, and this shows up
in generated .d files.

12 years agoComment spelling fix
Ville Skyttä [Sat, 16 Mar 2013 19:35:47 +0000 (21:35 +0200)] 
Comment spelling fix

12 years agoDisable FD_CLOEXEC code on windows
Patrick von Reth [Mon, 11 Mar 2013 09:33:07 +0000 (10:33 +0100)] 
Disable FD_CLOEXEC code on windows

12 years agoDon't set ZLIB_INTERNAL on windows, this will remove one warning
Patrick von Reth [Mon, 11 Mar 2013 09:32:15 +0000 (10:32 +0100)] 
Don't set ZLIB_INTERNAL on windows, this will remove one warning

12 years agotest: Fix unportable shell script construct
Joel Rosdahl [Sun, 3 Mar 2013 21:12:58 +0000 (22:12 +0100)] 
test: Fix unportable shell script construct

12 years agoInclude manifest version in the direct mode hash
Joel Rosdahl [Sat, 2 Mar 2013 20:17:17 +0000 (21:17 +0100)] 
Include manifest version in the direct mode hash

This makes manifest file names unique per manifest version, thus avoiding
ccache versions with different manifest versions overwriting each other's
manifests.

12 years agoCode style fix
Joel Rosdahl [Sat, 2 Mar 2013 20:07:46 +0000 (21:07 +0100)] 
Code style fix

12 years agodoc: Grammar and layout tweaks
Joel Rosdahl [Sat, 2 Mar 2013 20:07:17 +0000 (21:07 +0100)] 
doc: Grammar and layout tweaks

12 years agoFix test_conf unit tests after b291647878eb3eaa331cb34cab361788231de074
Joel Rosdahl [Sat, 2 Mar 2013 20:06:31 +0000 (21:06 +0100)] 
Fix test_conf unit tests after b291647878eb3eaa331cb34cab361788231de074

12 years agoAllow mtime- and ctime-only matches.
Justin Lebar [Tue, 25 Dec 2012 04:09:38 +0000 (23:09 -0500)] 
Allow mtime- and ctime-only matches.

If CCACHE_SLOPPINESS includes "file_stat_matches", ccache will consider
two files which match in name, size, mtime, and ctime to have the same
contents.  This allows ccache to avoid reading the file, thus speeding
up cache hits.

12 years agoCheck that included files' ctimes aren't too new.
Justin Lebar [Tue, 25 Dec 2012 04:09:14 +0000 (23:09 -0500)] 
Check that included files' ctimes aren't too new.

ccache currently checks that a file's mtime isn't too new, unless
CCACHE_SLOPPINESS includes "include_file_mtime".

This patch adds a similar check that a file's ctime isn't too new.  We
skip this check if CCACHE_SLOPPINESS includes "include_file_ctime".

12 years agoExtern time_of_compilation.
Justin Lebar [Mon, 24 Dec 2012 21:16:46 +0000 (16:16 -0500)] 
Extern time_of_compilation.

12 years agoMinor code style fix
Joel Rosdahl [Sat, 2 Mar 2013 19:33:41 +0000 (20:33 +0100)] 
Minor code style fix

12 years agoMerge branch 'maint'
Joel Rosdahl [Sat, 2 Mar 2013 19:33:34 +0000 (20:33 +0100)] 
Merge branch 'maint'

* maint:
  Improve execute() not to rely on special exit codes internally

Conflicts:
execute.c

12 years agoImprove execute() not to rely on special exit codes internally
Joel Rosdahl [Mon, 4 Feb 2013 21:24:08 +0000 (22:24 +0100)] 
Improve execute() not to rely on special exit codes internally

12 years agoFix compile error with Xcode 4.6
David Givone [Wed, 30 Jan 2013 07:59:22 +0000 (23:59 -0800)] 
Fix compile error with Xcode 4.6

static function ... is used in an inline function with external linkage
[-Werror,-Wstatic-in-inline] use 'static' to give inline function ... internal
linkage

12 years agoChange -x language option to use new objective c standard for gcc and clang
David Givone [Mon, 7 Jan 2013 06:20:24 +0000 (22:20 -0800)] 
Change -x language option to use new objective c standard for gcc and clang

When preprocessing objective-c[++] files, use -x objective-c-cpp-output or
-x objective-c++-cpp-output which is supported by gcc 4.0+ and clang.
Previously, -x objc-cpp-output or -x objc++-cpp-output was used, but not
supported by clang.

12 years agoMerge branch 'maint'
Joel Rosdahl [Tue, 8 Jan 2013 21:38:21 +0000 (22:38 +0100)] 
Merge branch 'maint'

* maint:
  Support -Xclang compiler option.

12 years agoSupport -Xclang compiler option.
Bernhard Bauer [Tue, 16 Aug 2011 08:23:55 +0000 (10:23 +0200)] 
Support -Xclang compiler option.

12 years agoMerge branch 'maint'
Joel Rosdahl [Sun, 6 Jan 2013 17:01:39 +0000 (18:01 +0100)] 
Merge branch 'maint'

* maint:
  Prepare for v3.1.9

12 years agoPrepare for v3.1.9 v3.1.9
Joel Rosdahl [Sun, 6 Jan 2013 16:56:50 +0000 (17:56 +0100)] 
Prepare for v3.1.9

12 years agoMerge branch 'maint'
Joel Rosdahl [Sat, 5 Jan 2013 17:39:51 +0000 (18:39 +0100)] 
Merge branch 'maint'

* maint:
  Handle disappearing temporary stdout file gracefully
  Improve error reporting when failing to create stdout/stderr file in execute()
  Don't leak log file descriptor to executed commands
  Improve x_unlink's temporary filename

Conflicts:
ccache.c
execute.c
util.c

12 years agoHandle disappearing temporary stdout file gracefully
Joel Rosdahl [Sat, 5 Jan 2013 17:10:36 +0000 (18:10 +0100)] 
Handle disappearing temporary stdout file gracefully

If the temporary stdout file has disappeared, it's most likely because
another ccache process is doing cleanup on a too small cache.

12 years agoImprove error reporting when failing to create stdout/stderr file in execute()
Joel Rosdahl [Sat, 5 Jan 2013 17:08:36 +0000 (18:08 +0100)] 
Improve error reporting when failing to create stdout/stderr file in execute()

12 years agoDon't leak log file descriptor to executed commands
Joel Rosdahl [Sat, 5 Jan 2013 15:47:04 +0000 (16:47 +0100)] 
Don't leak log file descriptor to executed commands

12 years agoImprove x_unlink's temporary filename
Joel Rosdahl [Thu, 3 Jan 2013 16:51:10 +0000 (17:51 +0100)] 
Improve x_unlink's temporary filename

The XXXXXX part was unused.

12 years agoSpeed up copy4 and copy64 on little-endian systems
Andrew Stubbs [Tue, 1 Jan 2013 17:12:58 +0000 (18:12 +0100)] 
Speed up copy4 and copy64 on little-endian systems

The copy64 function implements an endian-safe copy routine for an array of
16 32-bit integers, but this is sub-optimal on machines where the
byte-order is already correct. Likewise for copy4.

This patch replaces the implementation with a simple memcpy when
appropriate, and retains the old implementation otherwise.

Note that the compiler will always inline calls to memcpy for small
byte-counts, so this is a big win.

12 years agoMinor cleanups
Joel Rosdahl [Tue, 1 Jan 2013 17:03:46 +0000 (18:03 +0100)] 
Minor cleanups

12 years agoAdd support for clang pth files
David Givone [Sat, 10 Nov 2012 17:43:11 +0000 (09:43 -0800)] 
Add support for clang pth files

* ccache will now recognize pth (pretokenized header) files that are used by clang and xcode
* added/fixed pch tests for clang by separating tests for gcc and clang

12 years agoMinor cleanups
Joel Rosdahl [Sun, 25 Nov 2012 21:22:44 +0000 (22:22 +0100)] 
Minor cleanups

12 years agoStore clang diagnostic file to cache
David Givone [Fri, 21 Sep 2012 07:19:55 +0000 (00:19 -0700)] 
Store clang diagnostic file to cache

Added support for clang's --serialize-diagnostic parameter. The diagnostics
file is now stored in the cache. Xcode uses this option when building.

12 years agotest: Consistently use $CCACHE_COMPILE in base_tests
Joel Rosdahl [Sun, 11 Nov 2012 20:53:01 +0000 (21:53 +0100)] 
test: Consistently use $CCACHE_COMPILE in base_tests

12 years agotest: Add safeguard against running test.sh in directories with spacy names
Joel Rosdahl [Sat, 10 Nov 2012 10:27:51 +0000 (11:27 +0100)] 
test: Add safeguard against running test.sh in directories with spacy names

12 years agoMinor code cleanup
Joel Rosdahl [Thu, 8 Nov 2012 20:27:40 +0000 (21:27 +0100)] 
Minor code cleanup

12 years agoDon't pass preprocessor options to compiler during second compilation phase
David Givone [Mon, 10 Sep 2012 00:08:15 +0000 (17:08 -0700)] 
Don't pass preprocessor options to compiler during second compilation phase

Fix for bug 8118.

Some (ie clang) give warnings for unused arguments. Arguments that are only
used during the preprocessing phase will cause warnings during the
compilation phase.

12 years agotest: Fix Solaris /bin/sh issue
Joel Rosdahl [Thu, 8 Nov 2012 19:54:31 +0000 (20:54 +0100)] 
test: Fix Solaris /bin/sh issue

12 years agoUpdate documentation about the direct mode default to match reality
Joel Rosdahl [Wed, 7 Nov 2012 19:25:58 +0000 (20:25 +0100)] 
Update documentation about the direct mode default to match reality

12 years agoAdd test case for check_for_temporal_macros
Joel Rosdahl [Sun, 4 Nov 2012 21:04:25 +0000 (22:04 +0100)] 
Add test case for check_for_temporal_macros

12 years agoDetect __DATE__ and __TIME__ correctly
Andrew Stubbs [Tue, 9 Oct 2012 14:17:19 +0000 (15:17 +0100)] 
Detect __DATE__ and __TIME__ correctly

The code to detect __DATE__ and __TIME__ was off-by-one, and therefore
totally failed to detect time macros unless by chance alignments (1 in eight
macros might be correctly aligned).

The problem is that the code expects that 'i' will point to the last
underscore, and the skip table expects 'i' to point to the point after
the end of the string. For example, if str[i] == 'E' then the skip table
moves 'i' on 3 bytes, whereas the code only works with a 2-byte skip.

I've corrected the problem by adjusting the table to match the code.

I've confirmed the tests still pass.

Signed-off-by: Andrew Stubbs <ams@codesourcery.com>
12 years agoMerge branch 'maint'
Joel Rosdahl [Sun, 4 Nov 2012 10:41:42 +0000 (11:41 +0100)] 
Merge branch 'maint'

* maint:
  Don't create cache subdirectories in read-only mode

Conflicts:
ccache.c

12 years agoDon't create cache subdirectories in read-only mode
Joel Rosdahl [Sun, 4 Nov 2012 10:38:13 +0000 (11:38 +0100)] 
Don't create cache subdirectories in read-only mode

12 years agoDon't depend on $(LIBS) since some make flavors don't understand it
Joel Rosdahl [Wed, 31 Oct 2012 19:34:04 +0000 (20:34 +0100)] 
Don't depend on $(LIBS) since some make flavors don't understand it

12 years agoRemove superfluous "path" when printing primary/secondary config paths
Joel Rosdahl [Wed, 31 Oct 2012 19:18:08 +0000 (20:18 +0100)] 
Remove superfluous "path" when printing primary/secondary config paths

12 years agoDisable ccache for too hard compiler option -Wp,-P
Joel Rosdahl [Sun, 28 Oct 2012 16:27:23 +0000 (17:27 +0100)] 
Disable ccache for too hard compiler option -Wp,-P

12 years agoFix test suite failures when CC is a ccache-wrapped compiler
Joel Rosdahl [Sun, 14 Oct 2012 08:12:27 +0000 (10:12 +0200)] 
Fix test suite failures when CC is a ccache-wrapped compiler

CCACHE_DISABLE has to be used in order to ensure that the real compiler
will be run without ccache.

12 years agotest: Simply compare_file function
Joel Rosdahl [Mon, 8 Oct 2012 19:06:08 +0000 (21:06 +0200)] 
test: Simply compare_file function

12 years agoAdd object file comparison check for numerous tests
David Givone [Sun, 9 Sep 2012 23:55:37 +0000 (16:55 -0700)] 
Add object file comparison check for numerous tests

Comparing the output of ccache and direct compilation is a useful check to
make sure we are creating the same object file. It is especially useful
when performing 2 stage compilation like ccache does when CCACHE_CPP2 is
not set.

12 years agoLog strerror(errno) on failure to stat the compiler's stdout file
Joel Rosdahl [Sun, 7 Oct 2012 15:24:32 +0000 (17:24 +0200)] 
Log strerror(errno) on failure to stat the compiler's stdout file

12 years agoFix race condition when creating initial cache directory
David Givone [Fri, 21 Sep 2012 05:01:09 +0000 (22:01 -0700)] 
Fix race condition when creating initial cache directory

12 years agoFix developer mode detection
Joel Rosdahl [Sun, 23 Sep 2012 09:32:35 +0000 (11:32 +0200)] 
Fix developer mode detection

This broke in 81714b62b50563055faf301f5e4faec6652a426b.

12 years agoFind test case files in out-of-source-dir builds as well
Joel Rosdahl [Sat, 22 Sep 2012 12:31:55 +0000 (14:31 +0200)] 
Find test case files in out-of-source-dir builds as well

12 years agoMerge branch 'maint'
Joel Rosdahl [Mon, 17 Sep 2012 19:30:24 +0000 (21:30 +0200)] 
Merge branch 'maint'

* maint:
  Fix bug testing with ecryptfs

12 years agoFix bug testing with ecryptfs
Andrew Stubbs [Mon, 10 Sep 2012 13:57:23 +0000 (14:57 +0100)] 
Fix bug testing with ecryptfs

The test script assumes that zero-length files take up zero disk space,
that the block size is 4k, and that the disk usage will be the file size
rounded up to the nearest block size. Unfortunately these were not true for
ecryptfs.

Additionally, running the test.sh from another directory did not work due
to a bad location assumption in another test.