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.nonmodifying/Android.mk
test_name := algorithms/alg.nonmodifying/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,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.nonmodifying/alg.adjacent.find/Android.mk
test_name := algorithms/alg.nonmodifying/alg.adjacent.find/adjacent_find_pred
test_src := adjacent_find_pred.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := algorithms/alg.nonmodifying/alg.adjacent.find/adjacent_find
test_src := adjacent_find.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/algorithms/alg.nonmodifying/alg.all_of/Android.mk
test_name := algorithms/alg.nonmodifying/alg.all_of/all_of
test_src := all_of.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/algorithms/alg.nonmodifying/alg.any_of/Android.mk
test_name := algorithms/alg.nonmodifying/alg.any_of/any_of
test_src := any_of.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.nonmodifying/alg.count/Android.mk
test_name := algorithms/alg.nonmodifying/alg.count/count_if
test_src := count_if.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := algorithms/alg.nonmodifying/alg.count/count
test_src := count.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.nonmodifying/alg.equal/Android.mk
test_name := algorithms/alg.nonmodifying/alg.equal/equal_pred
test_src := equal_pred.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := algorithms/alg.nonmodifying/alg.equal/equal
test_src := equal.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.nonmodifying/alg.find.end/Android.mk
test_name := algorithms/alg.nonmodifying/alg.find.end/find_end
test_src := find_end.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := algorithms/alg.nonmodifying/alg.find.end/find_end_pred
test_src := find_end_pred.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.nonmodifying/alg.find.first.of/Android.mk
test_name := algorithms/alg.nonmodifying/alg.find.first.of/find_first_of_pred
test_src := find_first_of_pred.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := algorithms/alg.nonmodifying/alg.find.first.of/find_first_of
test_src := find_first_of.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.nonmodifying/alg.find/Android.mk
test_name := algorithms/alg.nonmodifying/alg.find/find_if
test_src := find_if.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := algorithms/alg.nonmodifying/alg.find/find
test_src := find.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := algorithms/alg.nonmodifying/alg.find/find_if_not
test_src := find_if_not.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/algorithms/alg.nonmodifying/alg.foreach/Android.mk
test_name := algorithms/alg.nonmodifying/alg.foreach/test
test_src := test.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.nonmodifying/alg.is_permutation/Android.mk
test_name := algorithms/alg.nonmodifying/alg.is_permutation/is_permutation
test_src := is_permutation.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := algorithms/alg.nonmodifying/alg.is_permutation/is_permutation_pred
test_src := is_permutation_pred.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/algorithms/alg.nonmodifying/alg.none_of/Android.mk
test_name := algorithms/alg.nonmodifying/alg.none_of/none_of
test_src := none_of.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.nonmodifying/alg.search/Android.mk
test_name := algorithms/alg.nonmodifying/alg.search/search
test_src := search.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := algorithms/alg.nonmodifying/alg.search/search_n
test_src := search_n.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := algorithms/alg.nonmodifying/alg.search/search_n_pred
test_src := search_n_pred.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := algorithms/alg.nonmodifying/alg.search/search_pred
test_src := search_pred.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.nonmodifying/mismatch/Android.mk
test_name := algorithms/alg.nonmodifying/mismatch/mismatch_pred
test_src := mismatch_pred.pass.cpp
include external/libcxx/test/Android.build.mk
test_name := algorithms/alg.nonmodifying/mismatch/mismatch
test_src := mismatch.pass.cpp
include external/libcxx/test/Android.build.mk
include $(call all-makefiles-under,$(LOCAL_PATH))