Commit Graph

11 Commits

Author SHA1 Message Date
Dan Albert
262ab18c26 Disable another warning in the libc++ tests.
Test: ./run_tests.py
Bug: None
Change-Id: I74aa7593eafa719e999a59bb50fad4eefc394350
2018-06-26 12:53:15 -07:00
Dan Albert
80bd2e4b23 Adapt to upstream changes.
Test: mma
Test: ./run_tests.py --bitness 64
Bug: None
Change-Id: I2f181c661253dffad5325c92c5fd4c05e741850f
2018-02-08 15:46:30 -08:00
Dan Albert
e90ce7b5d6 Disable a warning to prepare for the Clang update.
Test: ./run_tests.py
Bug: None
Change-Id: I91d551b9f020af678de83701a5dbc16778fd0610
2018-01-17 14:21:46 -08:00
Dan Albert
f20819f925 Ignore a warning in the tests.
I don't know when, but the libc++ tests have regressed a lot. This
cleans up some of the issues.

Test: ./run_tests.py
Bug: None
Change-Id: Ic0ef789428e131b61121c49e294545a701f963bb
2017-12-13 14:10:20 -08:00
Dan Albert
cebe3685c0 Test with C++1z.
The new clang drop isn't capable of building libc++ itself with C++1z
(I haven't investigate yet), but it seems we don't need that.

Test: make checkbuild && ./run_tests.py # sailfish
Bug: http://b/34740564
Change-Id: I0dfb578b1b04dd37108371deaa710681b0d88f4f
2017-01-27 16:40:54 -08:00
Dan Albert
034b504882 Ignore a warning we trip because clang is too old.
The sv ud literal was added to C++17 for creating string_views, but
the Clang we have doesn't know that so it warns about using a
reserved ud literal name. Disable the warning since it's not
important here anyway.

Test: ./run_tests.py
Bug: http://b/34740564
Change-Id: I7b59a4b63969252d4df012df3c11d7638cbfa5a0
2017-01-27 16:40:54 -08:00
Dan Albert
b434402ea2 Move test invocation into a python script.
Invoking these from make was pretty gross, and apparently I was
getting it wrong for the buildbot (was running mmm buildcmds without
running configtests).

This makes a single entry point of run-tests.py. The ugly hacks for
cflags/ldflags detection is still there, but it's at least not *as*
bad.

Change-Id: I0157700d83f6a38a209751a03a00dc9a8e708744
2015-10-14 14:41:54 -07:00
Dan Albert
1f3befa2de Build and test with C++14.
Enable sized deallocation (disabled by clang by the default) so those
tests pass.

Bug: http://b/23043421
Change-Id: I347fa9a5653eb1ed0102d42234ba2de41616de39
2015-08-07 21:40:47 -07:00
Dan Albert
90ed14b6a2 Fix host tests.
The regex being overspecified meant that host tests were not properly
replacing the dummy.o when linking, meaning all of the tests that were
running were running nothing but `int main() {}`.

The good news is that there weren't any failing tests hiding behind
this on Linux.

Change-Id: I9bea82ff1fefdf156d68a58689e532807c8d999b
2015-05-12 10:26:58 -07:00
Dan Albert
78f8c1981e Make it easier to run test variants.
This adds all the permutations for tests as make targets of the form
test-libcxx-(host|target)-(clang|gcc)-(32|64).

This also changes the host tests to use the Android build system (like
I had done with https://android-review.googlesource.com/#/c/111924/).
This probably should have been a separate patch, but I got carried
away (and wanted to make sure this new approach would work for both),
and now they're non-trivial to split.

Change-Id: Ie99caf6c3ff21c833408f99d37299d966ee7bc94
2015-01-07 17:40:56 -08:00
Dan Albert
2175caa94c Automatically generate build/link commands.
Use LOCAL_CXX with a dummy compiler to determine the build/link flags
the build system will use to build a typical Android executable. This
both prevents test failures when the build system simply goes out of
sync with the old, hard coded flags, and helps us catch new failures
introduced by build system changes ASAP.

Change-Id: I9a867ab49b7f2158070cf944c7a96084089a3718
2014-10-30 17:40:34 -07:00