From 29bfb78cbc85bea3baa9caf17672a2e8307e8648 Mon Sep 17 00:00:00 2001 From: Arto Kinnunen Date: Wed, 29 Nov 2017 09:34:12 +0200 Subject: [PATCH] Add apache license to Makefiles and scripts (#85) --- Makefile | 14 ++++++++++++++ Makefile.test | 14 ++++++++++++++ test/coap-service/unittest/Makefile | 15 +++++++++++++++ test/coap-service/unittest/MakefileWorker.mk | 15 +++++++++++++++ .../unittest/coap_connection_handler/Makefile | 15 +++++++++++++++ .../unittest/coap_message_handler/Makefile | 15 +++++++++++++++ .../unittest/coap_security_handler/Makefile | 15 +++++++++++++++ .../unittest/coap_service_api/Makefile | 15 +++++++++++++++ test/coap-service/unittest/makefile_defines.txt | 14 ++++++++++++++ test/coap-service/unittest/run_tests | 15 +++++++++++++++ 10 files changed, 147 insertions(+) diff --git a/Makefile b/Makefile index 54339602600a..c808df61709b 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,17 @@ +# Copyright (c) 2015-2017, Arm Limited and affiliates. +# SPDX-License-Identifier: Apache-2.0 +# +# 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. # # Makefile for combined CoAP Service library # diff --git a/Makefile.test b/Makefile.test index 8a1c3063f7b2..1ba43d9a3d1e 100644 --- a/Makefile.test +++ b/Makefile.test @@ -1,3 +1,17 @@ +# Copyright (c) 2015-2017, Arm Limited and affiliates. +# SPDX-License-Identifier: Apache-2.0 +# +# 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. # # Makefile.test for COAP service unit tests # diff --git a/test/coap-service/unittest/Makefile b/test/coap-service/unittest/Makefile index 4e788fc31f27..f42b2c693556 100755 --- a/test/coap-service/unittest/Makefile +++ b/test/coap-service/unittest/Makefile @@ -1,3 +1,18 @@ +# Copyright (c) 2015-2017, Arm Limited and affiliates. +# SPDX-License-Identifier: Apache-2.0 +# +# 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. +# #scan for folders having "Makefile" in them and remove 'this' to prevent loop ifeq ($(OS),Windows_NT) all: diff --git a/test/coap-service/unittest/MakefileWorker.mk b/test/coap-service/unittest/MakefileWorker.mk index 2096ced03670..950375a5767a 100755 --- a/test/coap-service/unittest/MakefileWorker.mk +++ b/test/coap-service/unittest/MakefileWorker.mk @@ -1,3 +1,18 @@ +# Copyright (c) 2015-2017, Arm Limited and affiliates. +# SPDX-License-Identifier: Apache-2.0 +# +# 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. +# #--------- # # MakefileWorker.mk diff --git a/test/coap-service/unittest/coap_connection_handler/Makefile b/test/coap-service/unittest/coap_connection_handler/Makefile index 729ee1c44347..82f8bcda0e84 100644 --- a/test/coap-service/unittest/coap_connection_handler/Makefile +++ b/test/coap-service/unittest/coap_connection_handler/Makefile @@ -1,3 +1,18 @@ +# Copyright (c) 2015-2017, Arm Limited and affiliates. +# SPDX-License-Identifier: Apache-2.0 +# +# 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. +# include ../makefile_defines.txt COMPONENT_NAME = coap_connection_handler_unit diff --git a/test/coap-service/unittest/coap_message_handler/Makefile b/test/coap-service/unittest/coap_message_handler/Makefile index f089fc1ebb63..1b02dfb31a60 100644 --- a/test/coap-service/unittest/coap_message_handler/Makefile +++ b/test/coap-service/unittest/coap_message_handler/Makefile @@ -1,3 +1,18 @@ +# Copyright (c) 2015-2017, Arm Limited and affiliates. +# SPDX-License-Identifier: Apache-2.0 +# +# 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. +# include ../makefile_defines.txt COMPONENT_NAME = coap_message_handler_unit diff --git a/test/coap-service/unittest/coap_security_handler/Makefile b/test/coap-service/unittest/coap_security_handler/Makefile index ecec16e0bf80..1375ed928210 100644 --- a/test/coap-service/unittest/coap_security_handler/Makefile +++ b/test/coap-service/unittest/coap_security_handler/Makefile @@ -1,3 +1,18 @@ +# Copyright (c) 2015-2017, Arm Limited and affiliates. +# SPDX-License-Identifier: Apache-2.0 +# +# 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. +# include ../makefile_defines.txt COMPONENT_NAME = coap_security_handler_unit diff --git a/test/coap-service/unittest/coap_service_api/Makefile b/test/coap-service/unittest/coap_service_api/Makefile index 00940f315451..a057ad07633a 100644 --- a/test/coap-service/unittest/coap_service_api/Makefile +++ b/test/coap-service/unittest/coap_service_api/Makefile @@ -1,3 +1,18 @@ +# Copyright (c) 2015-2017, Arm Limited and affiliates. +# SPDX-License-Identifier: Apache-2.0 +# +# 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. +# include ../makefile_defines.txt COMPONENT_NAME = coap_service_api_unit diff --git a/test/coap-service/unittest/makefile_defines.txt b/test/coap-service/unittest/makefile_defines.txt index 3e0bc1b91ba9..038c81f7fb41 100755 --- a/test/coap-service/unittest/makefile_defines.txt +++ b/test/coap-service/unittest/makefile_defines.txt @@ -1,3 +1,17 @@ +# Copyright (c) 2015-2017, Arm Limited and affiliates. +# SPDX-License-Identifier: Apache-2.0 +# +# 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. #--- Inputs ----# CPPUTEST_HOME = /usr CPPUTEST_USE_EXTENSIONS = Y diff --git a/test/coap-service/unittest/run_tests b/test/coap-service/unittest/run_tests index ce3fc0c17020..444de74b038e 100755 --- a/test/coap-service/unittest/run_tests +++ b/test/coap-service/unittest/run_tests @@ -1,4 +1,19 @@ #!/bin/bash +# Copyright (c) 2015-2017, Arm Limited and affiliates. +# SPDX-License-Identifier: Apache-2.0 +# +# 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. +# echo echo Build Coap-service unit tests echo