]>
git.ipfire.org Git - thirdparty/ccache.git/log
Joel Rosdahl [Sat, 14 Aug 2010 19:25:15 +0000 (21:25 +0200)]
Log in parent process in hash_command_output() to get correct PID in log
Joel Rosdahl [Sat, 14 Aug 2010 19:19:32 +0000 (21:19 +0200)]
Use reentrant strtok_r() instead of strtok()
Joel Rosdahl [Sat, 14 Aug 2010 18:39:12 +0000 (20:39 +0200)]
Add test suite for struct args
Joel Rosdahl [Sat, 14 Aug 2010 15:55:14 +0000 (17:55 +0200)]
Don't use /bin/sh when executing compiler check command
Using /bin/sh gives too much overhead for the benefit of being able to
specify more complex commands directly.
Joel Rosdahl [Sat, 14 Aug 2010 13:40:06 +0000 (15:40 +0200)]
Make args_init_from_string() split on more whitespace characters
Joel Rosdahl [Sat, 14 Aug 2010 13:33:11 +0000 (15:33 +0200)]
Add hash_command_output() and hash_multicommand_output()
Joel Rosdahl [Sat, 14 Aug 2010 09:53:24 +0000 (11:53 +0200)]
Generalize cc_log_executed_command
Joel Rosdahl [Sat, 14 Aug 2010 09:50:04 +0000 (11:50 +0200)]
Put args declarations higher up in ccache.h
Joel Rosdahl [Sat, 14 Aug 2010 09:36:58 +0000 (11:36 +0200)]
testfw: Let the compiler catch bad test case names
Joel Rosdahl [Sat, 14 Aug 2010 09:31:31 +0000 (11:31 +0200)]
testfw: Simplify accounting and printing of failed test counters
Joel Rosdahl [Fri, 13 Aug 2010 21:03:37 +0000 (23:03 +0200)]
Add args_set() function
Joel Rosdahl [Fri, 13 Aug 2010 20:58:06 +0000 (22:58 +0200)]
Add hash_equal() function
Joel Rosdahl [Fri, 13 Aug 2010 20:55:09 +0000 (22:55 +0200)]
Put functions in hash.c in a more natural order
Joel Rosdahl [Fri, 13 Aug 2010 18:38:14 +0000 (20:38 +0200)]
perf.py: Enable more accurate measurement of cache hit performance
Joel Rosdahl [Tue, 10 Aug 2010 18:26:10 +0000 (20:26 +0200)]
Add support for running a custom command to identify the compiler
Joel Rosdahl [Sun, 8 Aug 2010 20:26:33 +0000 (22:26 +0200)]
test: Add tests for CCACHE_COMPILERCHECK
Joel Rosdahl [Sun, 8 Aug 2010 20:25:35 +0000 (22:25 +0200)]
doc: Add missing newline
Joel Rosdahl [Sun, 8 Aug 2010 20:25:20 +0000 (22:25 +0200)]
doc: Improve CCACHE_COMPILERCHECK description
Joel Rosdahl [Sun, 8 Aug 2010 17:47:25 +0000 (19:47 +0200)]
test: List all suites in all_suites and exclude unsupported suites on win32
Joel Rosdahl [Fri, 6 Aug 2010 08:33:53 +0000 (10:33 +0200)]
doc: Clarify installation methods
Joel Rosdahl [Thu, 5 Aug 2010 08:56:01 +0000 (10:56 +0200)]
Update HACKING.txt with commit message width hint
Joel Rosdahl [Wed, 4 Aug 2010 17:58:49 +0000 (19:58 +0200)]
Don't remove version.c when cleaning a release build
Joel Rosdahl [Wed, 4 Aug 2010 15:03:17 +0000 (17:03 +0200)]
Spell Ville Skyttä's name correctly
Joel Rosdahl [Wed, 4 Aug 2010 11:09:55 +0000 (13:09 +0200)]
Update license for mdfour.c to GPLv3+
Joel Rosdahl [Wed, 4 Aug 2010 09:03:40 +0000 (11:03 +0200)]
Make reading and writing of statistics counters forward-compatible
Previously, ccache threw away counters values it didn't know about, i.e., new
counters coming from later ccache versions.
Joel Rosdahl [Wed, 4 Aug 2010 08:39:02 +0000 (10:39 +0200)]
Explicitly set values of enum stats since they are important
Joel Rosdahl [Tue, 3 Aug 2010 21:09:16 +0000 (23:09 +0200)]
Move read_file from test/util.c to util.c
Joel Rosdahl [Tue, 3 Aug 2010 15:27:41 +0000 (17:27 +0200)]
Isolate knowledge of the counters data structure to stats.c
Joel Rosdahl [Tue, 3 Aug 2010 15:16:38 +0000 (17:16 +0200)]
Fold stats_read_fd() into stats_read()
Joel Rosdahl [Tue, 3 Aug 2010 15:14:01 +0000 (17:14 +0200)]
Use stats_read() instead of stats_read_fd()
Joel Rosdahl [Mon, 2 Aug 2010 22:17:57 +0000 (00:17 +0200)]
testfw: Format code to use a more consistent coding style
Joel Rosdahl [Mon, 2 Aug 2010 22:17:26 +0000 (00:17 +0200)]
testfw: Declare all variables before the first statement
Joel Rosdahl [Mon, 2 Aug 2010 20:16:22 +0000 (22:16 +0200)]
Extract calculation of the maximum path length into a local function
This also fixes a bug in x_readlink where maxlen was unsigned, which leads to
problems when pathconf() returns -1.
Joel Rosdahl [Mon, 2 Aug 2010 20:06:30 +0000 (22:06 +0200)]
No need to compile x_readlink on win32
Joel Rosdahl [Mon, 2 Aug 2010 18:57:36 +0000 (20:57 +0200)]
When crashing of out-of-memory in x_*alloc, print wanted allocation size
Joel Rosdahl [Mon, 2 Aug 2010 18:29:24 +0000 (20:29 +0200)]
Format code to use a more consistent coding style
Joel Rosdahl [Mon, 2 Aug 2010 13:47:46 +0000 (15:47 +0200)]
Add missing MANUAL.txt in dist archives
Joel Rosdahl [Mon, 2 Aug 2010 13:46:59 +0000 (15:46 +0200)]
Remove *.tar.bz2 and *.tar.gz when cleaning
Joel Rosdahl [Mon, 2 Aug 2010 09:55:26 +0000 (11:55 +0200)]
Add missing test/util.h to dist archives
Joel Rosdahl [Mon, 2 Aug 2010 09:42:55 +0000 (11:42 +0200)]
make: Remove left-over rules already moved to dev.mk.in
Joel Rosdahl [Mon, 2 Aug 2010 09:41:52 +0000 (11:41 +0200)]
General overhaul of license and copyright information
The GPL license text is now located in GPLv3.txt. LICENSE.txt contains licenses
and copyright information for all bundled files from other sources and
AUTHORS.txt lists all contributors (taken from "git log").
At the same time, manual.txt was renamed to MANUAL.txt for consistency reasons.
Joel Rosdahl [Sun, 1 Aug 2010 16:20:01 +0000 (18:20 +0200)]
testfw: Print passed assertions in verbose mode
Joel Rosdahl [Sun, 1 Aug 2010 16:15:09 +0000 (18:15 +0200)]
testfw: Fix format string in cct_check_failed()
Joel Rosdahl [Sun, 1 Aug 2010 08:47:52 +0000 (10:47 +0200)]
Format code to use a more consistent coding style
Joel Rosdahl [Sun, 1 Aug 2010 14:32:16 +0000 (16:32 +0200)]
Use newline instead of space as separator for stats values
This is a backward-compatible change and makes the content somewhat easier
to inspect when debugging.
Joel Rosdahl [Sun, 1 Aug 2010 14:07:42 +0000 (16:07 +0200)]
win32: Implement lockfile primitives
Totally not tested on Windows yet.
Joel Rosdahl [Sun, 1 Aug 2010 14:06:09 +0000 (16:06 +0200)]
Use lock files instead of POSIX locks when writing stats files
When writing a stats file, locking is now done by atomically creating a
symlink with lockfile_acquire() instead of locking with fcntl(). Updating
of the stats file while holding the lock is done using the
rename-into-place idiom since the lock may be intentionally broken by
another process, and if that happens, there should be no file corruption,
only lost information.
The major reason for the change is to be more robust against badly
implemented or configured network filesystems (e.g. NFS) where POSIX locks
may be broken in different ways.
Joel Rosdahl [Sun, 1 Aug 2010 13:57:54 +0000 (15:57 +0200)]
Don't use locks for reading/writing the manifest from/to disk
Since the rename-into-place idiom is already used, a race between two
processes will only result in one lost entry, which is not a big deal, and
it's also very unlikely.
Joel Rosdahl [Sun, 1 Aug 2010 13:55:49 +0000 (15:55 +0200)]
Implement file locking primitives
Windows support is not yet done.
Joel Rosdahl [Sun, 1 Aug 2010 12:08:42 +0000 (14:08 +0200)]
Add x_readlink() utility function
Joel Rosdahl [Sun, 1 Aug 2010 12:08:01 +0000 (14:08 +0200)]
testfw: Add read_file() utility function
Joel Rosdahl [Sun, 1 Aug 2010 12:07:27 +0000 (14:07 +0200)]
testfw: Handle CHECK(pointer) correctly
Joel Rosdahl [Sun, 1 Aug 2010 12:06:43 +0000 (14:06 +0200)]
testfw: Set cache_logfile before running each test case
Joel Rosdahl [Sun, 1 Aug 2010 12:03:23 +0000 (14:03 +0200)]
Stop loop in stats_flush() when possible
Joel Rosdahl [Sun, 1 Aug 2010 12:00:22 +0000 (14:00 +0200)]
perf: Add --nostats option
Joel Rosdahl [Fri, 30 Jul 2010 20:25:16 +0000 (22:25 +0200)]
Introduce and use function-like macros str_eq() and str_startswith()
Joel Rosdahl [Fri, 30 Jul 2010 19:50:05 +0000 (21:50 +0200)]
test: Fix failing dash_E_should_be_unsupported test
Joel Rosdahl [Fri, 30 Jul 2010 19:49:33 +0000 (21:49 +0200)]
Introduce cc_reset(), enabling the test suite to reset global state
Joel Rosdahl [Fri, 30 Jul 2010 19:48:28 +0000 (21:48 +0200)]
Plug some minor memory leaks
Joel Rosdahl [Sun, 25 Jul 2010 09:02:57 +0000 (11:02 +0200)]
testfw: Add some utility functions
Joel Rosdahl [Sun, 25 Jul 2010 08:54:52 +0000 (10:54 +0200)]
Update recommendations for combining ccache with other compiler wrappers
Joel Rosdahl [Wed, 21 Jul 2010 13:15:42 +0000 (15:15 +0200)]
Introduce x_rename(), which unlink()s destination if necessary before rename()
Joel Rosdahl [Tue, 20 Jul 2010 22:13:39 +0000 (00:13 +0200)]
Always update a stats file in a subdirectory to reduce lock contention
Joel Rosdahl [Tue, 20 Jul 2010 22:12:17 +0000 (00:12 +0200)]
Add hash_from_int function
Joel Rosdahl [Tue, 20 Jul 2010 22:12:02 +0000 (00:12 +0200)]
Code formatting cleanup
Joel Rosdahl [Tue, 20 Jul 2010 21:58:40 +0000 (23:58 +0200)]
test framework: Restore CWD to be able to wipe temporary directory after test
Ramiro [Mon, 19 Jul 2010 22:15:38 +0000 (19:15 -0300)]
win32: Add a space between filename and error string in x_fmmap()
Ramiro [Mon, 19 Jul 2010 22:13:46 +0000 (19:13 -0300)]
win32: _localtime32() should only be used with mingw-w64
Joel Rosdahl [Mon, 19 Jul 2010 09:54:02 +0000 (11:54 +0200)]
Ignore .nfs* files when cleaning up
Such files are left by an NFS server for open but deleted files and will
thus mess up ccache's "files in cache" counter if not ignored.
Joel Rosdahl [Mon, 19 Jul 2010 09:52:14 +0000 (11:52 +0200)]
Extract common exit code in cleanup.c's traverse_fn()
Joel Rosdahl [Sun, 18 Jul 2010 09:03:17 +0000 (11:03 +0200)]
Add comments about which files declarations in ccache.h belong to
Joel Rosdahl [Sun, 18 Jul 2010 08:54:43 +0000 (10:54 +0200)]
Put feature macro configuration stuff in a separate file
Joel Rosdahl [Sat, 17 Jul 2010 21:06:19 +0000 (23:06 +0200)]
Remove now unused x_asprintf()
Joel Rosdahl [Sat, 17 Jul 2010 21:05:59 +0000 (23:05 +0200)]
Use format() instead of x_asprintf()
Joel Rosdahl [Sat, 17 Jul 2010 20:53:34 +0000 (22:53 +0200)]
Verify that test (suite) names are valid C identifiers
Two reasons: 1. We may want to use the test names as identifiers in the
future. 2. We can safely create and remove directories with such names.
Joel Rosdahl [Sat, 17 Jul 2010 20:51:29 +0000 (22:51 +0200)]
Add a function that formats a string in a handier way than x_asprintf
Joel Rosdahl [Sat, 17 Jul 2010 17:26:39 +0000 (19:26 +0200)]
Only pass dependency arguments to the preprocessor
This should fix a problem with Intel's C++ compiler, which doesn't produce a
correct .d file when compiling preprocessed source. This way, the .d file
is kept from the preprocessor run.
Joel Rosdahl [Sat, 17 Jul 2010 17:20:10 +0000 (19:20 +0200)]
Refactor cc_process_args to free stripped_args correctly when returning
Joel Rosdahl [Sat, 17 Jul 2010 17:12:23 +0000 (19:12 +0200)]
Add suite for testing the processing of compiler arguments
Joel Rosdahl [Sat, 17 Jul 2010 17:10:56 +0000 (19:10 +0200)]
Add cct_create_file function
Joel Rosdahl [Sat, 17 Jul 2010 17:10:42 +0000 (19:10 +0200)]
Run each test case in a separate directory for isolation
Joel Rosdahl [Sat, 17 Jul 2010 17:08:40 +0000 (19:08 +0200)]
Allow argument to args_free() to be NULL
Joel Rosdahl [Sat, 17 Jul 2010 16:52:20 +0000 (18:52 +0200)]
Print nicer progress messages for verbose tests
Joel Rosdahl [Sat, 17 Jul 2010 16:49:12 +0000 (18:49 +0200)]
Implement args_extend function
Joel Rosdahl [Sat, 17 Jul 2010 16:19:56 +0000 (18:19 +0200)]
Fix off-by-one error in args_to_string
Joel Rosdahl [Sat, 17 Jul 2010 15:06:02 +0000 (17:06 +0200)]
Let configure figure out which test suites to include
Joel Rosdahl [Sat, 17 Jul 2010 14:58:55 +0000 (16:58 +0200)]
Get rid of the ARGS typedef; use struct args explicitly
Joel Rosdahl [Sat, 17 Jul 2010 14:51:55 +0000 (16:51 +0200)]
Use strcmp == 0 instead of !strcmp
Joel Rosdahl [Sat, 17 Jul 2010 10:39:30 +0000 (12:39 +0200)]
Remove redundant continue
Joel Rosdahl [Sat, 17 Jul 2010 10:15:42 +0000 (12:15 +0200)]
Print correct singular/plural forms in test framework output
Joel Rosdahl [Fri, 16 Jul 2010 21:01:39 +0000 (23:01 +0200)]
Correct number of failed suites
Joel Rosdahl [Sat, 17 Jul 2010 10:05:47 +0000 (12:05 +0200)]
Portability: Don't use make variable $^
Joel Rosdahl [Sat, 17 Jul 2010 09:58:06 +0000 (11:58 +0200)]
Avoid using intptr_t on non-win32 systems since it may not be defined
Joel Rosdahl [Fri, 16 Jul 2010 20:46:03 +0000 (22:46 +0200)]
Merge remote branch 'polla/master'
* polla/master:
Use _localtime32() instead of localtime() on Windows
Do not misuse long to cast a pointer
Win32 support
Implement is_full_path() helper function
Joel Rosdahl [Fri, 16 Jul 2010 20:36:35 +0000 (22:36 +0200)]
Link test/main with local zlib if needed
Joel Rosdahl [Fri, 16 Jul 2010 20:31:08 +0000 (22:31 +0200)]
Correctly find suites.h in out-of-source builds
Ramiro Polla [Fri, 16 Jul 2010 19:57:42 +0000 (16:57 -0300)]
Use _localtime32() instead of localtime() on Windows
The gettimeofday() function provided by libmingwex.a hasn't been implemented
for 64-bit yet, so the data it returns should always be passed to the 32-bit
localtime function.
Ramiro Polla [Fri, 16 Jul 2010 19:57:00 +0000 (16:57 -0300)]
Do not misuse long to cast a pointer
Ramiro Polla [Fri, 16 Jul 2010 19:56:43 +0000 (16:56 -0300)]
Win32 support
Ramiro Polla [Fri, 16 Jul 2010 19:54:14 +0000 (16:54 -0300)]
Implement is_full_path() helper function