llvm-project/libcxx/test
Eric Fiselier 469a4f90bb [libcxx] Allow the use of ccache when running the test suite.
Summary:
In order to get the bots running quicker I would like to be able to use ccache 
with the test suite. This patch adds support for running the test suite using 
ccache. To use ccache pass `--param=use_ccache=true` when running the test suite.

ccache will not cache any command that invokes ld, so the build step needs to be
split into two separate compile commands. The cost of splitting the build step
into two parts when not using ccache seems to be minimal. On my machine I saw a
difference of ~5 seconds on a 5 minute test suite run.

A full test suite run with ccache generates about 250MB of cached data.

I recorded the following times for running the test suite in the following configurations:
- no ccache: 340s
- initial ccache run: 380s
- rerun with ccache (no changes): 53s.
- rerun with ccache (<string> changed): 80s
- rerun with ccache (<cmath> changed): 169s
- rerun with ccache (<valarray> changed): 69s





Reviewers: mclow.lists, jroelofs, danalbert

Reviewed By: jroelofs

Subscribers: cfe-commits

Differential Revision: http://reviews.llvm.org/D6647

llvm-svn: 224603
2014-12-19 19:27:32 +00:00
..
algorithms Add 'REQUIRES: long_tests' to one more long test 2014-12-11 22:27:49 +00:00
atomics Mark a couple of tests as XFAIL with older compilers. 2014-12-07 05:31:17 +00:00
containers Add 'REQUIERS: long_tests' to a few more long tests 2014-12-11 22:05:18 +00:00
depr Add an XFAIL for Newlib's missing uchar.h 2014-12-11 19:11:39 +00:00
diagnostics Linux: Correctly identify valid error codes 2014-05-29 05:02:22 +00:00
experimental Appease the c++14 buildbots 2014-12-16 01:18:11 +00:00
extensions Do not derive __gnu_cxx::hash<T> from std::hash<T>. 2014-03-06 04:11:10 +00:00
input.output Add more REQUIRES: LOCALE.* to tests. 2014-11-21 01:23:04 +00:00
iterators Add test to ensure that iterator_traits<NotAnIterator> doesn't have a value type 2014-12-16 00:30:07 +00:00
language.support libc++: integral types trap on PNaCl 2014-11-26 17:51:58 +00:00
localization Mark some locale tests as XFAIL on debian and opensuse. 2014-11-21 08:02:38 +00:00
numerics Mark a bunch of long running tests as 'REQUIRES: long_tests' 2014-12-11 18:35:36 +00:00
re Re-commit the test for regex that I busted last night - now passes under ASAN 2014-12-16 16:22:43 +00:00
strings Split string capacity test into two parts and mark one part as UNSUPPORTED when using sanitizers. 2014-11-14 03:16:12 +00:00
support Fix platform_support.h's get_temp_file_name() on Newlib under __STRICT_ANSI__ 2014-12-11 20:56:40 +00:00
thread Split thread test into two parts. Mark one as XFAIL with ASAN. 2014-11-15 01:58:45 +00:00
utilities Move the optional tests into test/experimental. They were put into test/utilities because optional was going to be part of C++14, and then was pulled and put into the Library Fundamentals TS instead. No funcitonality change here; just moving files around. 2014-12-09 15:07:42 +00:00
CMakeLists.txt Add support for building libc++ as a 32 bit library 2014-12-12 03:12:18 +00:00
lit.cfg [libcxx] Allow the use of ccache when running the test suite. 2014-12-19 19:27:32 +00:00
lit.site.cfg.in Add support for building libc++ as a 32 bit library 2014-12-12 03:12:18 +00:00
nothing_to_do.pass.cpp Test commit: Reverting whitespace changes 2014-07-17 05:10:03 +00:00
testit Apply patch for Albert Wong: 'Modify testit to allow filtering tests by prefixes'. 2014-01-15 16:28:42 +00:00