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/algorithms/alg.modifying.operations/Android.mk
test_name := algorithms/alg.modifying.operations/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,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/algorithms/alg.modifying.operations/alg.copy/Android.mk
test_name := algorithms/alg.modifying.operations/alg.copy/copy_n
test_src := copy_n.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := algorithms/alg.modifying.operations/alg.copy/copy_backward
test_src := copy_backward.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := algorithms/alg.modifying.operations/alg.copy/copy_if
test_src := copy_if.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := algorithms/alg.modifying.operations/alg.copy/copy
test_src := copy.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/algorithms/alg.modifying.operations/alg.fill/Android.mk
test_name := algorithms/alg.modifying.operations/alg.fill/fill_n
test_src := fill_n.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := algorithms/alg.modifying.operations/alg.fill/fill
test_src := fill.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/algorithms/alg.modifying.operations/alg.generate/Android.mk
test_name := algorithms/alg.modifying.operations/alg.generate/generate_n
test_src := generate_n.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := algorithms/alg.modifying.operations/alg.generate/generate
test_src := generate.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/algorithms/alg.modifying.operations/alg.move/Android.mk
test_name := algorithms/alg.modifying.operations/alg.move/move_backward
test_src := move_backward.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := algorithms/alg.modifying.operations/alg.move/move
test_src := move.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/algorithms/alg.modifying.operations/alg.partitions/Android.mk
test_name := algorithms/alg.modifying.operations/alg.partitions/partition
test_src := partition.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := algorithms/alg.modifying.operations/alg.partitions/partition_copy
test_src := partition_copy.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := algorithms/alg.modifying.operations/alg.partitions/stable_partition
test_src := stable_partition.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := algorithms/alg.modifying.operations/alg.partitions/is_partitioned
test_src := is_partitioned.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := algorithms/alg.modifying.operations/alg.partitions/partition_point
test_src := partition_point.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/algorithms/alg.modifying.operations/alg.random.shuffle/Android.mk
test_name := algorithms/alg.modifying.operations/alg.random.shuffle/random_shuffle_rand
test_src := random_shuffle_rand.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := algorithms/alg.modifying.operations/alg.random.shuffle/random_shuffle
test_src := random_shuffle.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := algorithms/alg.modifying.operations/alg.random.shuffle/random_shuffle_urng
test_src := random_shuffle_urng.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/algorithms/alg.modifying.operations/alg.remove/Android.mk
test_name := algorithms/alg.modifying.operations/alg.remove/remove_copy_if
test_src := remove_copy_if.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := algorithms/alg.modifying.operations/alg.remove/remove_copy
test_src := remove_copy.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := algorithms/alg.modifying.operations/alg.remove/remove
test_src := remove.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := algorithms/alg.modifying.operations/alg.remove/remove_if
test_src := remove_if.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/algorithms/alg.modifying.operations/alg.replace/Android.mk
test_name := algorithms/alg.modifying.operations/alg.replace/replace_copy_if
test_src := replace_copy_if.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := algorithms/alg.modifying.operations/alg.replace/replace_copy
test_src := replace_copy.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := algorithms/alg.modifying.operations/alg.replace/replace_if
test_src := replace_if.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := algorithms/alg.modifying.operations/alg.replace/replace
test_src := replace.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/algorithms/alg.modifying.operations/alg.reverse/Android.mk
test_name := algorithms/alg.modifying.operations/alg.reverse/reverse_copy
test_src := reverse_copy.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := algorithms/alg.modifying.operations/alg.reverse/reverse
test_src := reverse.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/algorithms/alg.modifying.operations/alg.rotate/Android.mk
test_name := algorithms/alg.modifying.operations/alg.rotate/rotate_copy
test_src := rotate_copy.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := algorithms/alg.modifying.operations/alg.rotate/rotate
test_src := rotate.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/algorithms/alg.modifying.operations/alg.swap/Android.mk
test_name := algorithms/alg.modifying.operations/alg.swap/iter_swap
test_src := iter_swap.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := algorithms/alg.modifying.operations/alg.swap/swap_ranges
test_src := swap_ranges.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/algorithms/alg.modifying.operations/alg.transform/Android.mk
test_name := algorithms/alg.modifying.operations/alg.transform/unary_transform
test_src := unary_transform.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := algorithms/alg.modifying.operations/alg.transform/binary_transform
test_src := binary_transform.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/algorithms/alg.modifying.operations/alg.unique/Android.mk
test_name := algorithms/alg.modifying.operations/alg.unique/unique_pred
test_src := unique_pred.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := algorithms/alg.modifying.operations/alg.unique/unique_copy
test_src := unique_copy.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := algorithms/alg.modifying.operations/alg.unique/unique_copy_pred
test_src := unique_copy_pred.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := algorithms/alg.modifying.operations/alg.unique/unique
test_src := unique.pass.cpp
include external/libcxx/test/Android.build.mk
include $(call all-makefiles-under,$(LOCAL_PATH))