summaryrefslogtreecommitdiffstats
path: root/libcxx
Commit message (Collapse)AuthorAgeFilesLines
* [libcxx] Add <experimental/type_traits> for LFTSEric Fiselier2014-12-198-0/+1368
| | | | | | | | | | | | | | | | Summary: This adds the <experimental/type_traits> (minus invocation traits). Mostly just the `_v` traits. Reviewers: K-ballo, mclow.lists Reviewed By: mclow.lists Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D5742 llvm-svn: 224626
* Remove unneeded configuration code.Eric Fiselier2014-12-191-12/+4
| | | | llvm-svn: 224618
* [libcxx] Allow the use of ccache when running the test suite.Eric Fiselier2014-12-191-12/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Re-commit the test for regex that I busted last night - now passes under ASANMarshall Clow2014-12-161-2/+2
| | | | llvm-svn: 224342
* Revert "Fix installheaders target's permissions"Justin Bogner2014-12-161-14/+0
| | | | | | | | | | | The install of headers excludes the support directory, so these chmod calls fail on non-existent directories, as seen on this bot: http://lab.llvm.org:8080/green/job/clang-stage1-configure-RA_build/2801/console This reverts commit r224300. llvm-svn: 224317
* Appease the c++14 buildbotsJonathan Roelofs2014-12-161-0/+4
| | | | llvm-svn: 224304
* Comment out the breaking tests until I figure out what's going on here.Marshall Clow2014-12-161-2/+2
| | | | llvm-svn: 224301
* Fix installheaders target's permissionsJonathan Roelofs2014-12-161-0/+14
| | | | llvm-svn: 224300
* Once more w/o the typo.Marshall Clow2014-12-161-5/+4
| | | | llvm-svn: 224298
* Fix the literal string that I said would be six elements long to actually be ↵Marshall Clow2014-12-161-2/+2
| | | | | | six elements long. Octal. Sheesh. llvm-svn: 224297
* Add test to ensure that iterator_traits<NotAnIterator> doesn't have a value typeMarshall Clow2014-12-161-0/+12
| | | | llvm-svn: 224295
* Implement LWG 2217 - operator==(sub_match, string) slices on embedded '\0'sMarshall Clow2014-12-153-18/+22
| | | | llvm-svn: 224292
* Add option to turn off installation of headers.Eric Fiselier2014-12-122-5/+8
| | | | llvm-svn: 224162
* Include newlib-specific locales in __localeSergey Dmitrouk2014-12-121-0/+2
| | | | llvm-svn: 224111
* Add support for building libc++ as a 32 bit libraryEric Fiselier2014-12-124-0/+14
| | | | llvm-svn: 224096
* Fix building and running tests when LIBCXX_ENABLE_EXCEPTIONS or ↵Eric Fiselier2014-12-124-1/+16
| | | | | | LIBCXX_ENABLE_RTTI are turned off. llvm-svn: 224095
* Add 'REQUIRES: long_tests' to one more long testJonathan Roelofs2014-12-111-0/+2
| | | | llvm-svn: 224069
* Add 'REQUIERS: long_tests' to a few more long testsJonathan Roelofs2014-12-114-0/+8
| | | | llvm-svn: 224064
* Fix platform_support.h's get_temp_file_name() on Newlib under __STRICT_ANSI__Jonathan Roelofs2014-12-111-0/+7
| | | | llvm-svn: 224057
* Add an XFAIL for Newlib's missing uchar.hJonathan Roelofs2014-12-111-0/+1
| | | | llvm-svn: 224037
* Mark a bunch of long running tests as 'REQUIRES: long_tests'Jonathan Roelofs2014-12-1138-0/+86
| | | | | | This lets us skip them as UNSUPPORTED on slow systems like QEMU llvm-svn: 224032
* Mark some more fenv tests as UNSUPPORTED by newlibJonathan Roelofs2014-12-112-0/+4
| | | | llvm-svn: 224024
* Add an XFAIL for Newlib's missing fenv.hJonathan Roelofs2014-12-111-0/+2
| | | | llvm-svn: 224021
* Update information on where to find buildbots. Remove dead buildbot links.Eric Fiselier2014-12-091-11/+5
| | | | llvm-svn: 223848
* Move the optional tests into test/experimental. They were put into ↵Marshall Clow2014-12-0968-0/+6
| | | | | | 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. llvm-svn: 223778
* Add all the relational operators to std::experimental::optional. Also update ↵Marshall Clow2014-12-0924-282/+1063
| | | | | | bad_optional_access to match the Library Fundamentals draft standard. This is not all of the upcoming changes to optional, though. llvm-svn: 223775
* Explicitly include <sched.h> for sched_yield()Sergey Dmitrouk2014-12-082-0/+2
| | | | | | | | It might be implicitly included by <pthread.h> (and that's why it worked so far), but it's not guaranteed (for example, this is not the case with newlib). llvm-svn: 223661
* Give lit.cfg's threading options default values when not defined.Eric Fiselier2014-12-071-5/+4
| | | | llvm-svn: 223601
* Mark a couple of tests as XFAIL with older compilers.Eric Fiselier2014-12-072-0/+7
| | | | llvm-svn: 223600
* Consolidate error reporting in lit.cfgEric Fiselier2014-12-071-36/+23
| | | | llvm-svn: 223599
* Revert parts of r223594. Use DYLD_LIBRARY_PATH on OSX when running tests.Eric Fiselier2014-12-071-1/+4
| | | | llvm-svn: 223598
* Fix apple clang detection in lit.cfgEric Fiselier2014-12-061-1/+1
| | | | llvm-svn: 223597
* Unify and cleanup rpath handling in tests.Eric Fiselier2014-12-061-10/+3
| | | | llvm-svn: 223594
* [libcxx] Add logic to probe compiler in tests.Eric Fiselier2014-12-061-0/+39
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: This patch probes the cxx compiler used during testing by getting it to dump its predefined macros. Based on the value of these macros the compiler name and compiler name + version are added to the available features. There are three compiler names: - `clang` - `apple-clang` - `gcc`. The available features added are equivalent to: - `'%s' % compiler_name` - `'%s-%s.%s' % compiler_name, major_version, minor_version` This information can be used to XFAIL tests on different compilers / versions. Reviewers: mclow.lists, danalbert, jroelofs Reviewed By: jroelofs Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D6399 llvm-svn: 223593
* Add support for building and testing libc++ without threads to CMake.Eric Fiselier2014-12-064-11/+48
| | | | | | | | | | | Currently hacks must be used in to configure and build libc++ without threads when using CMake. This patch adds CMake options to enable/disable building with threads and a monotonic clock. This patch also propagates the configuration information to lit so the tests are properly configured as well. llvm-svn: 223591
* Improve error message when _LIBCPP_HAS_NO_MONOTONIC_CLOCK is used improperlyEric Fiselier2014-12-061-0/+5
| | | | llvm-svn: 223590
* libc++: support NaCl when building thread.cppJF Bastien2014-12-021-4/+4
| | | | | | | | | | | | | | Summary: NaCl shouldn't include sysctl.h when trying to determine std::thread::hardware_concurrency, it should instead use sysconf(_SC_NPROCESSORS_ONLN) through unistd.h. No test needs to be changed, since hardware_concurrency.pass.cpp already tests that std::thread::hardware_concurrency > 0. Test Plan: make check-libcxx Reviewers: dschuff, danalbert Subscribers: jfb, cfe-commits Differential Revision: http://reviews.llvm.org/D6470 llvm-svn: 223128
* libc++: add NaCl and PNaCl support for std::random_deviceJF Bastien2014-12-014-38/+118
| | | | | | | | | | | | | | | | | Summary: The NaCl sandbox doesn't allow opening files under /dev, but it offers an API which provides the same capabilities. This is the same random device emulation that nacl_io performs for POSIX support, but nacl_io is an optional library so libc++ can't assume that device emulation will be performed. Note that NaCl only supports /dev/urandom, not /dev/random. This patch also cleans up some of the preprocessor #endif, and fixes the test for Win32 (it accepts any token, and would therefore never throw regardless of the token provided). Test Plan: ninja check-libcxx Reviewers: dschuff, mclow.lists, danalbert Subscribers: jfb, cfe-commits Differential Revision: http://reviews.llvm.org/D6442 llvm-svn: 223068
* libc++: integral types trap on PNaClJF Bastien2014-11-262-2/+2
| | | | | | | | | | Reviewers: dschuff, danalbert Subscribers: jfb, cfe-commits Differential Revision: http://reviews.llvm.org/D6411 llvm-svn: 222842
* Fixes to get libc++ building on sun solaris. Patch from C Bergstrom.Eric Fiselier2014-11-256-4/+13
| | | | llvm-svn: 222794
* Use lit.util.executeCommand instead of our own versionEric Fiselier2014-11-251-20/+2
| | | | llvm-svn: 222717
* Print lit configuration information after all configuration is done.Eric Fiselier2014-11-241-7/+10
| | | | llvm-svn: 222711
* Add better support for custom test runners.Dan Albert2014-11-241-27/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: I finally got around to merging the many, many changes to lit.cfg into Android's libc++. This patch makes it simpler to actually use a custom configuration and test format. First, I've factored out _build, _run, and _clean methods from _execute_test, since these are the likely parts that will need to be overridden. This is likely a first step in the work jroelofs has been doing with improving cross-compiling test execution. Second, I've added a `configuration_variant` to the config. This entry, if present, is a string that forms the prefix of the class that is to be used to configure the test runner. For example, Android sets `config.configuration_variant = 'Android'`, and this causes an object of type `AndroidConfiguration` to be constructed. As an example of how this will be used, see: https://android-review.googlesource.com/#/c/116022/ Reviewers: jroelofs, mclow.lists, EricWF Reviewed By: EricWF Subscribers: cfe-commits Differential Revision: http://reviews.llvm.org/D6373 llvm-svn: 222698
* Handle extra whitespace in linux distribution name.Eric Fiselier2014-11-211-4/+5
| | | | llvm-svn: 222514
* Mark some locale tests as XFAIL on debian and opensuse.Eric Fiselier2014-11-213-0/+21
| | | | llvm-svn: 222513
* Add more REQUIRES: LOCALE.* to tests.Dan Albert2014-11-2112-0/+24
| | | | llvm-svn: 222492
* Remove xfail tag for darwin from quick_exit testEric Fiselier2014-11-201-1/+0
| | | | llvm-svn: 222406
* Remove tests that va_copy is not defined when C++ < 11.Eric Fiselier2014-11-202-8/+0
| | | | llvm-svn: 222405
* Change contradictory wording in va_copy test error message.Eric Fiselier2014-11-192-4/+4
| | | | llvm-svn: 222383
* Implement N4280 - 'Non-member size() and more'Marshall Clow2014-11-195-6/+283
| | | | llvm-svn: 222378
OpenPOWER on IntegriCloud