diff options
author | Bob Badour <bbadour@google.com> | 2021-02-16 18:59:28 -0800 |
---|---|---|
committer | Bob Badour <bbadour@google.com> | 2021-02-19 12:59:06 -0800 |
commit | 4e060089506d82b3778aa7868761d615a62b4630 (patch) | |
tree | 2897e5ab2419ca9f92232612e13ea1cf4865ae9c /tests | |
parent | 207a008f06ca75ca9f5b8adc1c333859d87ae927 (diff) | |
download | extras-4e060089506d82b3778aa7868761d615a62b4630.tar.gz |
[LSC] Add LOCAL_LICENSE_KINDS to system/extras
Added SPDX-license-identifier-Apache-2.0 to:
alloc-stress/Android.bp
app-launcher/Android.bp
boot_control_copy/Android.bp
bootctl/Android.bp
boottime_tools/bootanalyze/stressfs/Android.bp
boottime_tools/bootio/Android.bp
brillo_config/Android.mk
checkpoint_gc/Android.bp
cppreopts/Android.bp
crypto-perf/Android.bp
ext4_utils/Android.bp
ext4_utils/Android.mk
f2fs_utils/Android.bp
ioblame/Android.bp
ioshark/Android.bp
iotop/Android.bp
kexec_tools/Android.bp
latencytop/Android.bp
libfec/Android.bp
libfec/test/Android.bp
libfscrypt/Android.bp
libfscrypt/tests/Android.bp
libjsonpb/parse/Android.bp
libjsonpb/verify/Android.bp
memory_replay/Android.bp
memtrack/Android.bp
mmap-perf/Android.bp
module_ndk_libs/libnativehelper/Android.bp
multinetwork/Android.bp
pagecache/Android.bp
partition_tools/Android.bp
partition_tools/aidl/Android.bp
perf2cfg/Android.bp
postinst/Android.bp
preopt2cachename/Android.bp
profcollectd/Android.bp
profcollectd/libprofcollectd/Android.bp
profcollectd/libprofcollectd/bindings/libflags/Android.bp
pssbench/Android.mk
puncture_fs/Android.bp
runconuid/Android.bp
sane_schedstat/Android.bp
showslab/Android.bp
simpleperf/Android.bp
simpleperf/runtest/Android.bp
simpleperf/scripts/inferno/Android.bp
simpleperf/simpleperf_app_runner/Android.bp
slideshow/Android.mk
sound/Android.bp
squashfs_utils/Android.bp
su/Android.mk
taskstats/Android.bp
tests/Android.bp
tests/audio/alsa/Android.bp
tests/binder/benchmarks/Android.bp
tests/bootloader/Android.mk
tests/cpueater/Android.bp
tests/crypto/Android.bp
tests/directiotest/Android.bp
tests/ext4/Android.mk
tests/framebuffer/Android.bp
tests/fstest/Android.bp
tests/icachetest/Android.bp
tests/iptables/qtaguid/Android.bp
tests/kernel.config/Android.mk
tests/lib/Android.bp
tests/lib/testUtil/Android.bp
tests/memeater/Android.mk
tests/pagingtest/Android.mk
tests/pftest/Android.bp
tests/schedtest/Android.bp
tests/storage/Android.bp
tests/suspend_stress/Android.bp
tests/tcp_nuke_addr/Android.bp
tests/timetest/Android.bp
tests/uevents/Android.bp
toolchain-extras/Android.bp
vbmeta_tools/Android.bp
verity/Android.bp
verity/fec/Android.bp
zram-perf/Android.bp
Added SPDX-license-identifier-Apache-2.0 SPDX-license-identifier-BSD to:
cpustats/Android.bp
Added SPDX-license-identifier-BSD to:
ANRdaemon/Android.bp
Bug: 68860345
Bug: 151177513
Bug: 151953481
Test: m all
Exempt-From-Owner-Approval: janitorial work
Change-Id: Ia559848af903a7b6746d9b12b7de8b83bc57f99d
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Android.bp | 31 | ||||
-rw-r--r-- | tests/audio/alsa/Android.bp | 9 | ||||
-rw-r--r-- | tests/binder/benchmarks/Android.bp | 9 | ||||
-rw-r--r-- | tests/bootloader/Android.mk | 3 | ||||
-rw-r--r-- | tests/cpueater/Android.bp | 17 | ||||
-rw-r--r-- | tests/crypto/Android.bp | 9 | ||||
-rw-r--r-- | tests/directiotest/Android.bp | 9 | ||||
-rw-r--r-- | tests/ext4/Android.mk | 4 | ||||
-rw-r--r-- | tests/framebuffer/Android.bp | 9 | ||||
-rw-r--r-- | tests/fstest/Android.bp | 9 | ||||
-rw-r--r-- | tests/icachetest/Android.bp | 9 | ||||
-rw-r--r-- | tests/iptables/qtaguid/Android.bp | 9 | ||||
-rw-r--r-- | tests/kernel.config/Android.mk | 9 | ||||
-rw-r--r-- | tests/lib/Android.bp | 9 | ||||
-rw-r--r-- | tests/lib/testUtil/Android.bp | 9 | ||||
-rw-r--r-- | tests/memeater/Android.mk | 3 | ||||
-rw-r--r-- | tests/pagingtest/Android.mk | 3 | ||||
-rw-r--r-- | tests/pftest/Android.bp | 9 | ||||
-rw-r--r-- | tests/schedtest/Android.bp | 9 | ||||
-rw-r--r-- | tests/storage/Android.bp | 9 | ||||
-rw-r--r-- | tests/suspend_stress/Android.bp | 9 | ||||
-rw-r--r-- | tests/tcp_nuke_addr/Android.bp | 9 | ||||
-rw-r--r-- | tests/timetest/Android.bp | 9 | ||||
-rw-r--r-- | tests/uevents/Android.bp | 9 |
24 files changed, 222 insertions, 1 deletions
diff --git a/tests/Android.bp b/tests/Android.bp new file mode 100644 index 00000000..af3b8b2f --- /dev/null +++ b/tests/Android.bp @@ -0,0 +1,31 @@ +// +// Copyright (C) 2021 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. + +package { + default_applicable_licenses: ["system_extras_tests_license"], +} + +// Added automatically by a large-scale-change +// See: http://go/android-license-faq +license { + name: "system_extras_tests_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + ], + license_text: [ + "NOTICE", + ], +} diff --git a/tests/audio/alsa/Android.bp b/tests/audio/alsa/Android.bp index a5393f1b..0bcc15eb 100644 --- a/tests/audio/alsa/Android.bp +++ b/tests/audio/alsa/Android.bp @@ -14,6 +14,15 @@ // limitations under the License. // +package { + // See: http://go/android-license-faq + // A large-scale-change added 'default_applicable_licenses' to import + // all of the 'license_kinds' from "system_extras_tests_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["system_extras_tests_license"], +} + cc_test { name: "pcmtest", srcs: ["pcmtest.cpp"], diff --git a/tests/binder/benchmarks/Android.bp b/tests/binder/benchmarks/Android.bp index 5ac0895a..6a550688 100644 --- a/tests/binder/benchmarks/Android.bp +++ b/tests/binder/benchmarks/Android.bp @@ -14,6 +14,15 @@ // limitations under the License. // +package { + // See: http://go/android-license-faq + // A large-scale-change added 'default_applicable_licenses' to import + // all of the 'license_kinds' from "system_extras_tests_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["system_extras_tests_license"], +} + cc_benchmark { name: "binderAddInts", diff --git a/tests/bootloader/Android.mk b/tests/bootloader/Android.mk index ab311fdc..a5421a50 100644 --- a/tests/bootloader/Android.mk +++ b/tests/bootloader/Android.mk @@ -6,6 +6,9 @@ LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := bootloader_unit_test +LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 +LOCAL_LICENSE_CONDITIONS := notice +LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../NOTICE LOCAL_MODULE_TAGS := tests bootloader_py_files := $(call find-subdir-files, *.py) diff --git a/tests/cpueater/Android.bp b/tests/cpueater/Android.bp index 315a18b0..72c0e49b 100644 --- a/tests/cpueater/Android.bp +++ b/tests/cpueater/Android.bp @@ -13,6 +13,23 @@ // limitations under the License. // Copyright The Android Open Source Project +package { + default_applicable_licenses: ["system_extras_tests_cpueater_license"], +} + +// Added automatically by a large-scale-change +// See: http://go/android-license-faq +license { + name: "system_extras_tests_cpueater_license", + visibility: [":__subpackages__"], + license_kinds: [ + "SPDX-license-identifier-Apache-2.0", + ], + license_text: [ + "NOTICE", + ], +} + cc_binary { name: "cpueater", srcs: ["cpueater.c"], diff --git a/tests/crypto/Android.bp b/tests/crypto/Android.bp index 61cb8299..d0326d47 100644 --- a/tests/crypto/Android.bp +++ b/tests/crypto/Android.bp @@ -1,5 +1,14 @@ // Copyright 2013 The Android Open Source Project +package { + // See: http://go/android-license-faq + // A large-scale-change added 'default_applicable_licenses' to import + // all of the 'license_kinds' from "system_extras_tests_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["system_extras_tests_license"], +} + cc_binary { name: "get_dm_versions", srcs: ["get_dm_versions.c"], diff --git a/tests/directiotest/Android.bp b/tests/directiotest/Android.bp index 489e3c82..ab2545ce 100644 --- a/tests/directiotest/Android.bp +++ b/tests/directiotest/Android.bp @@ -1,3 +1,12 @@ +package { + // See: http://go/android-license-faq + // A large-scale-change added 'default_applicable_licenses' to import + // all of the 'license_kinds' from "system_extras_tests_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["system_extras_tests_license"], +} + cc_binary { name: "directiotest", srcs: ["directiotest.c"], diff --git a/tests/ext4/Android.mk b/tests/ext4/Android.mk index a9a684d2..0a384842 100644 --- a/tests/ext4/Android.mk +++ b/tests/ext4/Android.mk @@ -7,6 +7,9 @@ include $(CLEAR_VARS) LOCAL_SRC_FILES:= rand_emmc_perf.c LOCAL_CFLAGS := -Wall -Werror LOCAL_MODULE:= rand_emmc_perf +LOCAL_LICENSE_KINDS:= SPDX-license-identifier-Apache-2.0 +LOCAL_LICENSE_CONDITIONS:= notice +LOCAL_NOTICE_FILE:= $(LOCAL_PATH)/../NOTICE LOCAL_MULTILIB := both LOCAL_MODULE_STEM_32:= rand_emmc_perf LOCAL_MODULE_STEM_64:= rand_emmc_perf64 @@ -16,4 +19,3 @@ LOCAL_FORCE_STATIC_EXECUTABLE := true LOCAL_STATIC_LIBRARIES := libm libc include $(BUILD_EXECUTABLE) - diff --git a/tests/framebuffer/Android.bp b/tests/framebuffer/Android.bp index f072a59a..eda69dec 100644 --- a/tests/framebuffer/Android.bp +++ b/tests/framebuffer/Android.bp @@ -1,3 +1,12 @@ +package { + // See: http://go/android-license-faq + // A large-scale-change added 'default_applicable_licenses' to import + // all of the 'license_kinds' from "system_extras_tests_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["system_extras_tests_license"], +} + cc_binary { name: "test-fb-refresh", srcs: ["refresh.c"], diff --git a/tests/fstest/Android.bp b/tests/fstest/Android.bp index febbb2f7..8c9ce68e 100644 --- a/tests/fstest/Android.bp +++ b/tests/fstest/Android.bp @@ -12,6 +12,15 @@ // See the License for the specific language governing permissions and // limitations under the License. +package { + // See: http://go/android-license-faq + // A large-scale-change added 'default_applicable_licenses' to import + // all of the 'license_kinds' from "system_extras_tests_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["system_extras_tests_license"], +} + cc_test { name: "recovery_test", srcs: ["recovery_test.cpp"], diff --git a/tests/icachetest/Android.bp b/tests/icachetest/Android.bp index e8c72855..4e9d0d05 100644 --- a/tests/icachetest/Android.bp +++ b/tests/icachetest/Android.bp @@ -1,5 +1,14 @@ // Copyright 2006 The Android Open Source Project +package { + // See: http://go/android-license-faq + // A large-scale-change added 'default_applicable_licenses' to import + // all of the 'license_kinds' from "system_extras_tests_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["system_extras_tests_license"], +} + cc_binary { name: "icache", diff --git a/tests/iptables/qtaguid/Android.bp b/tests/iptables/qtaguid/Android.bp index 9c853c8b..935c0b41 100644 --- a/tests/iptables/qtaguid/Android.bp +++ b/tests/iptables/qtaguid/Android.bp @@ -14,6 +14,15 @@ // limitations under the License. // +package { + // See: http://go/android-license-faq + // A large-scale-change added 'default_applicable_licenses' to import + // all of the 'license_kinds' from "system_extras_tests_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["system_extras_tests_license"], +} + cc_test { name: "socketTag", srcs: ["socketTag.cpp"], diff --git a/tests/kernel.config/Android.mk b/tests/kernel.config/Android.mk index a622bf56..cff19bac 100644 --- a/tests/kernel.config/Android.mk +++ b/tests/kernel.config/Android.mk @@ -31,6 +31,9 @@ test_src_files := \ include $(CLEAR_VARS) LOCAL_MODULE := kernel-config-unit-tests +LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 +LOCAL_LICENSE_CONDITIONS := notice +LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../NOTICE LOCAL_MODULE_TAGS := tests LOCAL_CFLAGS := $(test_c_flags) LOCAL_CFLAGS += -DHAS_KCMP @@ -40,6 +43,9 @@ include $(BUILD_NATIVE_TEST) include $(CLEAR_VARS) LOCAL_MODULE := CtsKernelConfigTestCases +LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 +LOCAL_LICENSE_CONDITIONS := notice +LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../NOTICE LOCAL_MODULE_TAGS := optional LOCAL_CFLAGS := $(test_c_flags) LOCAL_CFLAGS += -DHAS_KCMP @@ -60,5 +66,8 @@ LOCAL_SRC_FILES := \ scrape_mmap_addr.cpp LOCAL_MODULE := scrape_mmap_addr +LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 +LOCAL_LICENSE_CONDITIONS := notice +LOCAL_NOTICE_FILE := $(LOCAL_PATH)/../NOTICE LOCAL_CFLAGS := -Wall -Werror include $(BUILD_NATIVE_TEST) diff --git a/tests/lib/Android.bp b/tests/lib/Android.bp index b44c2960..f41419e3 100644 --- a/tests/lib/Android.bp +++ b/tests/lib/Android.bp @@ -1 +1,10 @@ +package { + // See: http://go/android-license-faq + // A large-scale-change added 'default_applicable_licenses' to import + // all of the 'license_kinds' from "system_extras_tests_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["system_extras_tests_license"], +} + subdirs = ["*"] diff --git a/tests/lib/testUtil/Android.bp b/tests/lib/testUtil/Android.bp index a5a3f517..39fad294 100644 --- a/tests/lib/testUtil/Android.bp +++ b/tests/lib/testUtil/Android.bp @@ -14,6 +14,15 @@ // limitations under the License. // +package { + // See: http://go/android-license-faq + // A large-scale-change added 'default_applicable_licenses' to import + // all of the 'license_kinds' from "system_extras_tests_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["system_extras_tests_license"], +} + cc_library_static { name: "libtestUtil", srcs: ["testUtil.c"], diff --git a/tests/memeater/Android.mk b/tests/memeater/Android.mk index a07564ab..e22da649 100644 --- a/tests/memeater/Android.mk +++ b/tests/memeater/Android.mk @@ -17,6 +17,9 @@ LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE := memeater +LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0 +LOCAL_LICENSE_CONDITIONS := notice +LOCAL_NOTICE_FILE := $(LOCAL_PATH)/NOTICE LOCAL_MODULE_PATH := $(TARGET_OUT_OPTIONAL_EXECUTABLES) LOCAL_SRC_FILES := memeater.c LOCAL_CFLAGS := -Wall -Werror -Wno-unused-parameter diff --git a/tests/pagingtest/Android.mk b/tests/pagingtest/Android.mk index de952ce3..69fea9d0 100644 --- a/tests/pagingtest/Android.mk +++ b/tests/pagingtest/Android.mk @@ -9,6 +9,9 @@ LOCAL_SRC_FILES:= \ thrashing_test.c LOCAL_MODULE:= pagingtest +LOCAL_LICENSE_KINDS:= SPDX-license-identifier-Apache-2.0 +LOCAL_LICENSE_CONDITIONS:= notice +LOCAL_NOTICE_FILE:= $(LOCAL_PATH)/../NOTICE LOCAL_CFLAGS := -Wall -Werror diff --git a/tests/pftest/Android.bp b/tests/pftest/Android.bp index dcd8b5b9..2a9ef6ba 100644 --- a/tests/pftest/Android.bp +++ b/tests/pftest/Android.bp @@ -1,5 +1,14 @@ // Copyright 2010 The Android Open Source Project +package { + // See: http://go/android-license-faq + // A large-scale-change added 'default_applicable_licenses' to import + // all of the 'license_kinds' from "system_extras_tests_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["system_extras_tests_license"], +} + cc_binary { name: "pftest", diff --git a/tests/schedtest/Android.bp b/tests/schedtest/Android.bp index 28ece031..ac10b117 100644 --- a/tests/schedtest/Android.bp +++ b/tests/schedtest/Android.bp @@ -1,3 +1,12 @@ +package { + // See: http://go/android-license-faq + // A large-scale-change added 'default_applicable_licenses' to import + // all of the 'license_kinds' from "system_extras_tests_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["system_extras_tests_license"], +} + cc_binary { name: "schedtest", srcs: ["schedtest.c"], diff --git a/tests/storage/Android.bp b/tests/storage/Android.bp index ba9bf1fe..9bbd24ea 100644 --- a/tests/storage/Android.bp +++ b/tests/storage/Android.bp @@ -1,5 +1,14 @@ // Copyright 2013 The Android Open Source Project +package { + // See: http://go/android-license-faq + // A large-scale-change added 'default_applicable_licenses' to import + // all of the 'license_kinds' from "system_extras_tests_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["system_extras_tests_license"], +} + cc_binary { name: "opentest", srcs: ["opentest.c"], diff --git a/tests/suspend_stress/Android.bp b/tests/suspend_stress/Android.bp index e7a0d94c..bceff117 100644 --- a/tests/suspend_stress/Android.bp +++ b/tests/suspend_stress/Android.bp @@ -1,3 +1,12 @@ +package { + // See: http://go/android-license-faq + // A large-scale-change added 'default_applicable_licenses' to import + // all of the 'license_kinds' from "system_extras_tests_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["system_extras_tests_license"], +} + cc_binary { name: "suspend_stress", srcs: ["suspend_stress.cpp"], diff --git a/tests/tcp_nuke_addr/Android.bp b/tests/tcp_nuke_addr/Android.bp index 316fd3a1..1a504395 100644 --- a/tests/tcp_nuke_addr/Android.bp +++ b/tests/tcp_nuke_addr/Android.bp @@ -1,3 +1,12 @@ +package { + // See: http://go/android-license-faq + // A large-scale-change added 'default_applicable_licenses' to import + // all of the 'license_kinds' from "system_extras_tests_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["system_extras_tests_license"], +} + cc_test { name: "tcp_nuke_addr_test", srcs: ["tcp_nuke_addr_test.cpp"], diff --git a/tests/timetest/Android.bp b/tests/timetest/Android.bp index 481610b7..c4f361cb 100644 --- a/tests/timetest/Android.bp +++ b/tests/timetest/Android.bp @@ -1,5 +1,14 @@ // Copyright 2006 The Android Open Source Project +package { + // See: http://go/android-license-faq + // A large-scale-change added 'default_applicable_licenses' to import + // all of the 'license_kinds' from "system_extras_tests_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["system_extras_tests_license"], +} + cc_test { name: "time-unit-tests", cflags: [ diff --git a/tests/uevents/Android.bp b/tests/uevents/Android.bp index a292ebcf..4548b456 100644 --- a/tests/uevents/Android.bp +++ b/tests/uevents/Android.bp @@ -1,3 +1,12 @@ +package { + // See: http://go/android-license-faq + // A large-scale-change added 'default_applicable_licenses' to import + // all of the 'license_kinds' from "system_extras_tests_license" + // to get the below license kinds: + // SPDX-license-identifier-Apache-2.0 + default_applicable_licenses: ["system_extras_tests_license"], +} + cc_binary { name: "uevents", srcs: ["uevents.c"], |