Joel Rosdahl
e0f5d3aa58
Make args_init_from_string() split on more whitespace characters
2010-08-14 21:14:08 +02:00
Joel Rosdahl
aaf5cbd18a
Add hash_command_output() and hash_multicommand_output()
2010-08-14 21:14:08 +02:00
Joel Rosdahl
76a2b0f0c5
Generalize cc_log_executed_command
2010-08-14 21:14:07 +02:00
Joel Rosdahl
54fd1b1765
Put args declarations higher up in ccache.h
2010-08-14 21:14:07 +02:00
Joel Rosdahl
df0b495cfc
testfw: Let the compiler catch bad test case names
2010-08-14 21:14:07 +02:00
Joel Rosdahl
bf782199d2
testfw: Simplify accounting and printing of failed test counters
2010-08-14 21:14:07 +02:00
Joel Rosdahl
861184b725
Add args_set() function
2010-08-14 21:14:07 +02:00
Joel Rosdahl
65c847fa22
Add hash_equal() function
2010-08-14 21:14:07 +02:00
Joel Rosdahl
f86dbeaf3c
Put functions in hash.c in a more natural order
2010-08-14 21:14:07 +02:00
Joel Rosdahl
9ba6a5b247
perf.py: Enable more accurate measurement of cache hit performance
2010-08-14 21:14:04 +02:00
Joel Rosdahl
18cc772aa6
Add support for running a custom command to identify the compiler
2010-08-11 08:17:42 +02:00
Joel Rosdahl
0e828cb8b9
test: Add tests for CCACHE_COMPILERCHECK
2010-08-08 22:31:26 +02:00
Joel Rosdahl
9702c57ab2
doc: Add missing newline
2010-08-08 22:31:26 +02:00
Joel Rosdahl
bb956e3c50
doc: Improve CCACHE_COMPILERCHECK description
2010-08-08 22:31:22 +02:00
Joel Rosdahl
20f4b8f908
test: List all suites in all_suites and exclude unsupported suites on win32
2010-08-08 19:47:25 +02:00
Joel Rosdahl
100db488ef
doc: Clarify installation methods
2010-08-06 10:33:53 +02:00
Joel Rosdahl
d122bb1cfb
Update HACKING.txt with commit message width hint
2010-08-05 10:56:01 +02:00
Joel Rosdahl
4041395788
Don't remove version.c when cleaning a release build
2010-08-05 10:54:36 +02:00
Joel Rosdahl
745bb97e78
Spell Ville Skyttä's name correctly
2010-08-04 19:48:43 +02:00
Joel Rosdahl
37fc4be75e
Update license for mdfour.c to GPLv3+
2010-08-04 19:48:39 +02:00
Joel Rosdahl
16b25cac09
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.
2010-08-04 11:03:40 +02:00
Joel Rosdahl
01fa3dfbf4
Explicitly set values of enum stats since they are important
2010-08-04 10:39:02 +02:00
Joel Rosdahl
52c4606d2c
Move read_file from test/util.c to util.c
2010-08-03 23:09:16 +02:00
Joel Rosdahl
8c071cf6e0
Isolate knowledge of the counters data structure to stats.c
2010-08-03 17:27:41 +02:00
Joel Rosdahl
42b3fd0d46
Fold stats_read_fd() into stats_read()
2010-08-03 17:16:38 +02:00
Joel Rosdahl
8544ce8c55
Use stats_read() instead of stats_read_fd()
2010-08-03 17:14:01 +02:00
Joel Rosdahl
c122428ba4
testfw: Format code to use a more consistent coding style
2010-08-03 00:17:57 +02:00
Joel Rosdahl
20bec5d8c6
testfw: Declare all variables before the first statement
2010-08-03 00:17:26 +02:00
Joel Rosdahl
4f883d1e41
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.
2010-08-02 22:16:22 +02:00
Joel Rosdahl
eb19e1f305
No need to compile x_readlink on win32
2010-08-02 22:06:30 +02:00
Joel Rosdahl
32c47a1a6b
When crashing of out-of-memory in x_*alloc, print wanted allocation size
2010-08-02 20:57:36 +02:00
Joel Rosdahl
5e8c1872a3
Format code to use a more consistent coding style
2010-08-02 20:29:24 +02:00
Joel Rosdahl
bffb8f07a8
Add missing MANUAL.txt in dist archives
2010-08-02 15:47:46 +02:00
Joel Rosdahl
e4dd835ecf
Remove *.tar.bz2 and *.tar.gz when cleaning
2010-08-02 15:47:22 +02:00
Joel Rosdahl
844797f090
Add missing test/util.h to dist archives
2010-08-02 13:07:47 +02:00
Joel Rosdahl
9d50112a57
make: Remove left-over rules already moved to dev.mk.in
2010-08-02 13:07:47 +02:00
Joel Rosdahl
4aaa6a151d
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.
2010-08-02 13:07:42 +02:00
Joel Rosdahl
feb1e2d7b4
testfw: Print passed assertions in verbose mode
2010-08-01 18:20:01 +02:00
Joel Rosdahl
29825dc842
testfw: Fix format string in cct_check_failed()
2010-08-01 18:15:09 +02:00
Joel Rosdahl
530dfe7c11
Format code to use a more consistent coding style
2010-08-01 17:20:33 +02:00
Joel Rosdahl
29e6dcee1b
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.
2010-08-01 17:20:33 +02:00
Joel Rosdahl
1827192df5
win32: Implement lockfile primitives
...
Totally not tested on Windows yet.
2010-08-01 17:20:33 +02:00
Joel Rosdahl
7daab1e4c2
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.
2010-08-01 17:20:33 +02:00
Joel Rosdahl
ca008ee79a
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.
2010-08-01 17:20:33 +02:00
Joel Rosdahl
852228dea5
Implement file locking primitives
...
Windows support is not yet done.
2010-08-01 17:20:33 +02:00
Joel Rosdahl
ff2a6f1b3a
Add x_readlink() utility function
2010-08-01 17:20:33 +02:00
Joel Rosdahl
debed7544b
testfw: Add read_file() utility function
2010-08-01 17:20:33 +02:00
Joel Rosdahl
404bf3ccd1
testfw: Handle CHECK(pointer) correctly
2010-08-01 17:20:33 +02:00
Joel Rosdahl
12629c5479
testfw: Set cache_logfile before running each test case
2010-08-01 17:20:33 +02:00
Joel Rosdahl
789cb1559f
Stop loop in stats_flush() when possible
2010-08-01 17:20:33 +02:00