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.ops/Android.mk
test_name := strings/basic.string/string.ops/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,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.ops/string.accessors/Android.mk
test_name := strings/basic.string/string.ops/string.accessors/data
test_src := data.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.ops/string.accessors/get_allocator
test_src := get_allocator.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.ops/string.accessors/c_str
test_src := c_str.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.ops/string_compare/Android.mk
test_name := strings/basic.string/string.ops/string_compare/string
test_src := string.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.ops/string_compare/size_size_pointer
test_src := size_size_pointer.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.ops/string_compare/pointer
test_src := pointer.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.ops/string_compare/size_size_pointer_size
test_src := size_size_pointer_size.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.ops/string_compare/size_size_string
test_src := size_size_string.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.ops/string_compare/size_size_string_size_size
test_src := size_size_string_size_size.pass.cpp
include external/libcxx/test/Android.build.mk
include $(call all-makefiles-under,$(LOCAL_PATH))

View File

@@ -0,0 +1,35 @@
#
# 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.ops/string_find.first.not.of/Android.mk
test_name := strings/basic.string/string.ops/string_find.first.not.of/string_size
test_src := string_size.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.ops/string_find.first.not.of/pointer_size
test_src := pointer_size.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.ops/string_find.first.not.of/pointer_size_size
test_src := pointer_size_size.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.ops/string_find.first.not.of/char_size
test_src := char_size.pass.cpp
include external/libcxx/test/Android.build.mk
include $(call all-makefiles-under,$(LOCAL_PATH))

View File

@@ -0,0 +1,35 @@
#
# 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.ops/string_find.first.of/Android.mk
test_name := strings/basic.string/string.ops/string_find.first.of/string_size
test_src := string_size.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.ops/string_find.first.of/pointer_size
test_src := pointer_size.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.ops/string_find.first.of/pointer_size_size
test_src := pointer_size_size.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.ops/string_find.first.of/char_size
test_src := char_size.pass.cpp
include external/libcxx/test/Android.build.mk
include $(call all-makefiles-under,$(LOCAL_PATH))

View File

@@ -0,0 +1,35 @@
#
# 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.ops/string_find.last.not.of/Android.mk
test_name := strings/basic.string/string.ops/string_find.last.not.of/string_size
test_src := string_size.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.ops/string_find.last.not.of/pointer_size
test_src := pointer_size.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.ops/string_find.last.not.of/pointer_size_size
test_src := pointer_size_size.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.ops/string_find.last.not.of/char_size
test_src := char_size.pass.cpp
include external/libcxx/test/Android.build.mk
include $(call all-makefiles-under,$(LOCAL_PATH))

View File

@@ -0,0 +1,35 @@
#
# 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.ops/string_find.last.of/Android.mk
test_name := strings/basic.string/string.ops/string_find.last.of/string_size
test_src := string_size.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.ops/string_find.last.of/pointer_size
test_src := pointer_size.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.ops/string_find.last.of/pointer_size_size
test_src := pointer_size_size.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.ops/string_find.last.of/char_size
test_src := char_size.pass.cpp
include external/libcxx/test/Android.build.mk
include $(call all-makefiles-under,$(LOCAL_PATH))

View File

@@ -0,0 +1,35 @@
#
# 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.ops/string_find/Android.mk
test_name := strings/basic.string/string.ops/string_find/string_size
test_src := string_size.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.ops/string_find/pointer_size
test_src := pointer_size.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.ops/string_find/pointer_size_size
test_src := pointer_size_size.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.ops/string_find/char_size
test_src := char_size.pass.cpp
include external/libcxx/test/Android.build.mk
include $(call all-makefiles-under,$(LOCAL_PATH))

View File

@@ -0,0 +1,35 @@
#
# 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.ops/string_rfind/Android.mk
test_name := strings/basic.string/string.ops/string_rfind/string_size
test_src := string_size.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.ops/string_rfind/pointer_size
test_src := pointer_size.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.ops/string_rfind/pointer_size_size
test_src := pointer_size_size.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := strings/basic.string/string.ops/string_rfind/char_size
test_src := char_size.pass.cpp
include external/libcxx/test/Android.build.mk
include $(call all-makefiles-under,$(LOCAL_PATH))

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.ops/string_substr/Android.mk
test_name := strings/basic.string/string.ops/string_substr/substr
test_src := substr.pass.cpp
include external/libcxx/test/Android.build.mk
include $(call all-makefiles-under,$(LOCAL_PATH))