Adds a basic test wrapper for Android

To run libc++ tests:
$ mm
$ adb sync
$ python runtests.py # runs all host and device tests
                     # see main() for command line options

To regenerate all makefiles:
$ python makemake.py

Change-Id: Ibad78ad8e1bd45f32730d281afa53c2cec55478f
This commit is contained in:
Dan Albert
2014-05-06 14:12:12 -07:00
parent 7d57f1bbe2
commit 6f56ab789c
1115 changed files with 39037 additions and 0 deletions

View File

@@ -0,0 +1,23 @@
#
# Copyright (C) 2014 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
LOCAL_PATH := $(call my-dir)
test_makefile := external/libcxx/test/strings/basic.string/string.nonmembers/Android.mk
test_name := strings/basic.string/string.nonmembers/nothing_to_do
test_src := nothing_to_do.pass.cpp
include external/libcxx/test/Android.build.mk
include $(call all-makefiles-under,$(LOCAL_PATH))

View File

@@ -0,0 +1,43 @@
#
# Copyright (C) 2014 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
LOCAL_PATH := $(call my-dir)
test_makefile := external/libcxx/test/strings/basic.string/string.nonmembers/string.io/Android.mk
test_name := strings/basic.string/string.nonmembers/string.io/get_line_delim_rv
test_src := get_line_delim_rv.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.nonmembers/string.io/get_line_delim
test_src := get_line_delim.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.nonmembers/string.io/get_line_rv
test_src := get_line_rv.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.nonmembers/string.io/stream_extract
test_src := stream_extract.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.nonmembers/string.io/stream_insert
test_src := stream_insert.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.nonmembers/string.io/get_line
test_src := get_line.pass.cpp
include external/libcxx/test/Android.build.mk
include $(call all-makefiles-under,$(LOCAL_PATH))

View File

@@ -0,0 +1,27 @@
#
# Copyright (C) 2014 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
LOCAL_PATH := $(call my-dir)
test_makefile := external/libcxx/test/strings/basic.string/string.nonmembers/string.special/Android.mk
test_name := strings/basic.string/string.nonmembers/string.special/swap
test_src := swap.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.nonmembers/string.special/swap_noexcept
test_src := swap_noexcept.pass.cpp
include external/libcxx/test/Android.build.mk
include $(call all-makefiles-under,$(LOCAL_PATH))

View File

@@ -0,0 +1,31 @@
#
# Copyright (C) 2014 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
LOCAL_PATH := $(call my-dir)
test_makefile := external/libcxx/test/strings/basic.string/string.nonmembers/string_op!=/Android.mk
test_name := strings/basic.string/string.nonmembers/string_op!=/pointer_string
test_src := pointer_string.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.nonmembers/string_op!=/string_string
test_src := string_string.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.nonmembers/string_op!=/string_pointer
test_src := string_pointer.pass.cpp
include external/libcxx/test/Android.build.mk
include $(call all-makefiles-under,$(LOCAL_PATH))

View File

@@ -0,0 +1,39 @@
#
# Copyright (C) 2014 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
LOCAL_PATH := $(call my-dir)
test_makefile := external/libcxx/test/strings/basic.string/string.nonmembers/string_op+/Android.mk
test_name := strings/basic.string/string.nonmembers/string_op+/string_char
test_src := string_char.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.nonmembers/string_op+/pointer_string
test_src := pointer_string.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.nonmembers/string_op+/string_string
test_src := string_string.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.nonmembers/string_op+/string_pointer
test_src := string_pointer.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.nonmembers/string_op+/char_string
test_src := char_string.pass.cpp
include external/libcxx/test/Android.build.mk
include $(call all-makefiles-under,$(LOCAL_PATH))

View File

@@ -0,0 +1,31 @@
#
# Copyright (C) 2014 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
LOCAL_PATH := $(call my-dir)
test_makefile := external/libcxx/test/strings/basic.string/string.nonmembers/string_operator==/Android.mk
test_name := strings/basic.string/string.nonmembers/string_operator==/pointer_string
test_src := pointer_string.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.nonmembers/string_operator==/string_string
test_src := string_string.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.nonmembers/string_operator==/string_pointer
test_src := string_pointer.pass.cpp
include external/libcxx/test/Android.build.mk
include $(call all-makefiles-under,$(LOCAL_PATH))

View File

@@ -0,0 +1,31 @@
#
# Copyright (C) 2014 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
LOCAL_PATH := $(call my-dir)
test_makefile := external/libcxx/test/strings/basic.string/string.nonmembers/string_opgt/Android.mk
test_name := strings/basic.string/string.nonmembers/string_opgt/pointer_string
test_src := pointer_string.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.nonmembers/string_opgt/string_string
test_src := string_string.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.nonmembers/string_opgt/string_pointer
test_src := string_pointer.pass.cpp
include external/libcxx/test/Android.build.mk
include $(call all-makefiles-under,$(LOCAL_PATH))

View File

@@ -0,0 +1,31 @@
#
# Copyright (C) 2014 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
LOCAL_PATH := $(call my-dir)
test_makefile := external/libcxx/test/strings/basic.string/string.nonmembers/string_opgt=/Android.mk
test_name := strings/basic.string/string.nonmembers/string_opgt=/pointer_string
test_src := pointer_string.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.nonmembers/string_opgt=/string_string
test_src := string_string.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.nonmembers/string_opgt=/string_pointer
test_src := string_pointer.pass.cpp
include external/libcxx/test/Android.build.mk
include $(call all-makefiles-under,$(LOCAL_PATH))

View File

@@ -0,0 +1,31 @@
#
# Copyright (C) 2014 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
LOCAL_PATH := $(call my-dir)
test_makefile := external/libcxx/test/strings/basic.string/string.nonmembers/string_oplt/Android.mk
test_name := strings/basic.string/string.nonmembers/string_oplt/pointer_string
test_src := pointer_string.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.nonmembers/string_oplt/string_string
test_src := string_string.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.nonmembers/string_oplt/string_pointer
test_src := string_pointer.pass.cpp
include external/libcxx/test/Android.build.mk
include $(call all-makefiles-under,$(LOCAL_PATH))

View File

@@ -0,0 +1,31 @@
#
# Copyright (C) 2014 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
LOCAL_PATH := $(call my-dir)
test_makefile := external/libcxx/test/strings/basic.string/string.nonmembers/string_oplt=/Android.mk
test_name := strings/basic.string/string.nonmembers/string_oplt=/pointer_string
test_src := pointer_string.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.nonmembers/string_oplt=/string_string
test_src := string_string.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.nonmembers/string_oplt=/string_pointer
test_src := string_pointer.pass.cpp
include external/libcxx/test/Android.build.mk
include $(call all-makefiles-under,$(LOCAL_PATH))