Commit Graph

6 Commits

Author SHA1 Message Date
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