From 09d15e5abceb1ef45be5be0f9abe76f5972e4c5b Mon Sep 17 00:00:00 2001 From: "simon.chupin" Date: Wed, 15 Jun 2022 16:46:55 +0200 Subject: [PATCH] tools: Change copyright in ci dir --- tools/ci/check_artifacts_expire_time.py | 2 + tools/ci/check_build_warnings.py | 2 + tools/ci/check_callgraph.py | 15 +------ tools/ci/check_copyright_ignore.txt | 39 ------------------- tools/ci/check_deprecated_kconfigs.py | 15 +------ tools/ci/check_executables.py | 15 +------ tools/ci/check_readme_links.py | 15 +------ tools/ci/check_rules_yml.py | 15 +------ tools/ci/check_soc_struct_headers.py | 2 + tools/ci/check_tools_files_patterns.py | 2 +- tools/ci/check_type_comments.py | 15 +------ tools/ci/checkout_project_ref.py | 2 + tools/ci/ci_fetch_submodule.py | 2 + tools/ci/ci_get_mr_info.py | 15 +------ tools/ci/deploy_docs.py | 15 +------ tools/ci/envsubst.py | 2 + tools/ci/python_packages/gitlab_api.py | 2 + .../idf_iperf_test_util/Attenuator.py | 15 +------ .../idf_iperf_test_util/IperfUtility.py | 2 + .../idf_iperf_test_util/LineChart.py | 15 +------ .../idf_iperf_test_util/PowerControl.py | 15 +------ .../idf_iperf_test_util/TestReport.py | 2 + tools/ci/python_packages/tiny_test_fw/App.py | 15 +------ tools/ci/python_packages/tiny_test_fw/DUT.py | 15 +------ tools/ci/python_packages/tiny_test_fw/Env.py | 15 +------ .../python_packages/tiny_test_fw/EnvConfig.py | 15 +------ .../ci/python_packages/tiny_test_fw/TinyFW.py | 15 +------ .../python_packages/ttfw_idf/CIScanTests.py | 2 + tools/ci/python_packages/ttfw_idf/IDFApp.py | 15 +------ .../python_packages/ttfw_idf/IDFAssignTest.py | 2 + .../ttfw_idf/unity_test_parser.py | 2 + tools/ci/python_packages/wifi_tools.py | 15 +------ tools/ci/test_autocomplete.py | 2 + 33 files changed, 63 insertions(+), 274 deletions(-) diff --git a/tools/ci/check_artifacts_expire_time.py b/tools/ci/check_artifacts_expire_time.py index 30ecb48e23..be9193e0bc 100644 --- a/tools/ci/check_artifacts_expire_time.py +++ b/tools/ci/check_artifacts_expire_time.py @@ -1,4 +1,6 @@ #!/usr/bin/env python +# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD +# SPDX-License-Identifier: Apache-2.0 # internal use only # check if expire time is set for all artifacts diff --git a/tools/ci/check_build_warnings.py b/tools/ci/check_build_warnings.py index 4936acb989..f40a196760 100755 --- a/tools/ci/check_build_warnings.py +++ b/tools/ci/check_build_warnings.py @@ -1,4 +1,6 @@ #!/usr/bin/env python +# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD +# SPDX-License-Identifier: Apache-2.0 # coding=utf-8 # # CI script to check build logs for warnings. diff --git a/tools/ci/check_callgraph.py b/tools/ci/check_callgraph.py index 700d5e6bad..1eaa6ee685 100755 --- a/tools/ci/check_callgraph.py +++ b/tools/ci/check_callgraph.py @@ -1,19 +1,8 @@ #!/usr/bin/env python # # Based on cally.py (https://github.com/chaudron/cally/), Copyright 2018, Eelco Chaudron -# Copyright 2020 Espressif Systems (Shanghai) PTE LTD -# -# 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. +# SPDX-FileCopyrightText: 2020-2022 Espressif Systems (Shanghai) CO LTD +# SPDX-License-Identifier: Apache-2.0 import argparse import os diff --git a/tools/ci/check_copyright_ignore.txt b/tools/ci/check_copyright_ignore.txt index 9f8788aca7..0f39364fa7 100644 --- a/tools/ci/check_copyright_ignore.txt +++ b/tools/ci/check_copyright_ignore.txt @@ -2083,45 +2083,6 @@ tools/ble/lib_gap.py tools/ble/lib_gatt.py tools/build_apps.py tools/catch/catch.hpp -tools/ci/check_artifacts_expire_time.py -tools/ci/check_build_warnings.py -tools/ci/check_callgraph.py -tools/ci/check_deprecated_kconfigs.py -tools/ci/check_executables.py -tools/ci/check_readme_links.py -tools/ci/check_rules_yml.py -tools/ci/check_soc_struct_headers.py -tools/ci/check_type_comments.py -tools/ci/checkout_project_ref.py -tools/ci/ci_fetch_submodule.py -tools/ci/ci_get_mr_info.py -tools/ci/deploy_docs.py -tools/ci/envsubst.py -tools/ci/python_packages/gitlab_api.py -tools/ci/python_packages/idf_iperf_test_util/Attenuator.py -tools/ci/python_packages/idf_iperf_test_util/IperfUtility.py -tools/ci/python_packages/idf_iperf_test_util/LineChart.py -tools/ci/python_packages/idf_iperf_test_util/PowerControl.py -tools/ci/python_packages/idf_iperf_test_util/TestReport.py -tools/ci/python_packages/tiny_test_fw/App.py -tools/ci/python_packages/tiny_test_fw/DUT.py -tools/ci/python_packages/tiny_test_fw/Env.py -tools/ci/python_packages/tiny_test_fw/EnvConfig.py -tools/ci/python_packages/tiny_test_fw/TinyFW.py -tools/ci/python_packages/tiny_test_fw/Utility/CaseConfig.py -tools/ci/python_packages/tiny_test_fw/Utility/GitlabCIJob.py -tools/ci/python_packages/tiny_test_fw/Utility/TestCase.py -tools/ci/python_packages/tiny_test_fw/Utility/__init__.py -tools/ci/python_packages/tiny_test_fw/bin/Runner.py -tools/ci/python_packages/tiny_test_fw/bin/example.py -tools/ci/python_packages/tiny_test_fw/docs/conf.py -tools/ci/python_packages/ttfw_idf/CIScanTests.py -tools/ci/python_packages/ttfw_idf/DebugUtils.py -tools/ci/python_packages/ttfw_idf/IDFApp.py -tools/ci/python_packages/ttfw_idf/IDFAssignTest.py -tools/ci/python_packages/ttfw_idf/unity_test_parser.py -tools/ci/python_packages/wifi_tools.py -tools/ci/test_autocomplete.py tools/esp_app_trace/test/sysview/blink.c tools/find_apps.py tools/find_build_apps/__init__.py diff --git a/tools/ci/check_deprecated_kconfigs.py b/tools/ci/check_deprecated_kconfigs.py index dca9ddd0a0..e10585a11e 100755 --- a/tools/ci/check_deprecated_kconfigs.py +++ b/tools/ci/check_deprecated_kconfigs.py @@ -1,18 +1,7 @@ #!/usr/bin/env python # -# Copyright 2019 Espressif Systems (Shanghai) PTE LTD -# -# 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. +# SPDX-FileCopyrightText: 2019-2022 Espressif Systems (Shanghai) CO LTD +# SPDX-License-Identifier: Apache-2.0 from __future__ import print_function, unicode_literals diff --git a/tools/ci/check_executables.py b/tools/ci/check_executables.py index 4f1e21e871..439aff5244 100755 --- a/tools/ci/check_executables.py +++ b/tools/ci/check_executables.py @@ -1,18 +1,7 @@ #!/usr/bin/env python # -# Copyright 2020 Espressif Systems (Shanghai) PTE LTD -# -# 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. +# SPDX-FileCopyrightText: 2020-2022 Espressif Systems (Shanghai) CO LTD +# SPDX-License-Identifier: Apache-2.0 import argparse import os diff --git a/tools/ci/check_readme_links.py b/tools/ci/check_readme_links.py index 1fa9278121..e988534109 100755 --- a/tools/ci/check_readme_links.py +++ b/tools/ci/check_readme_links.py @@ -2,19 +2,8 @@ # # Checks that all links in the readme markdown files are valid # -# Copyright 2020 Espressif Systems (Shanghai) PTE LTD -# -# 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. +# SPDX-FileCopyrightText: 2020-2022 Espressif Systems (Shanghai) CO LTD +# SPDX-License-Identifier: Apache-2.0 # import argparse diff --git a/tools/ci/check_rules_yml.py b/tools/ci/check_rules_yml.py index 78d846224e..ecd8474346 100755 --- a/tools/ci/check_rules_yml.py +++ b/tools/ci/check_rules_yml.py @@ -1,18 +1,7 @@ #!/usr/bin/env python # -# Copyright 2021 Espressif Systems (Shanghai) CO LTD -# -# 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. +# SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD +# SPDX-License-Identifier: Apache-2.0 """ Check if all rules in rules.yml used or not in CI yaml files. diff --git a/tools/ci/check_soc_struct_headers.py b/tools/ci/check_soc_struct_headers.py index 7611a4a2fa..f121296f50 100755 --- a/tools/ci/check_soc_struct_headers.py +++ b/tools/ci/check_soc_struct_headers.py @@ -1,4 +1,6 @@ #!/usr/bin/env python +# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD +# SPDX-License-Identifier: Apache-2.0 # A check script that just works at the time of writing... # diff --git a/tools/ci/check_tools_files_patterns.py b/tools/ci/check_tools_files_patterns.py index fd62db2971..1244449c14 100755 --- a/tools/ci/check_tools_files_patterns.py +++ b/tools/ci/check_tools_files_patterns.py @@ -1,6 +1,6 @@ #!/usr/bin/env python # -# SPDX-FileCopyrightText: 2021 Espressif Systems (Shanghai) CO LTD +# SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD # SPDX-License-Identifier: Apache-2.0 import argparse diff --git a/tools/ci/check_type_comments.py b/tools/ci/check_type_comments.py index 1ce8c31647..d89bf562b2 100755 --- a/tools/ci/check_type_comments.py +++ b/tools/ci/check_type_comments.py @@ -1,18 +1,7 @@ #!/usr/bin/env python # -# Copyright 2021 Espressif Systems (Shanghai) CO LTD -# -# 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. +# SPDX-FileCopyrightText: 2021-2022 Espressif Systems (Shanghai) CO LTD +# SPDX-License-Identifier: Apache-2.0 import argparse import subprocess diff --git a/tools/ci/checkout_project_ref.py b/tools/ci/checkout_project_ref.py index a64e5f488a..6bf2a4456b 100755 --- a/tools/ci/checkout_project_ref.py +++ b/tools/ci/checkout_project_ref.py @@ -1,4 +1,6 @@ #!/usr/bin/env python +# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD +# SPDX-License-Identifier: Apache-2.0 # internal use only # called by CI jobs when it uses a project related to IDF diff --git a/tools/ci/ci_fetch_submodule.py b/tools/ci/ci_fetch_submodule.py index 23ad870158..22879e4391 100644 --- a/tools/ci/ci_fetch_submodule.py +++ b/tools/ci/ci_fetch_submodule.py @@ -1,4 +1,6 @@ #!/usr/bin/env python +# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD +# SPDX-License-Identifier: Apache-2.0 # internal use only for CI # download archive of one commit instead of cloning entire submodule repo diff --git a/tools/ci/ci_get_mr_info.py b/tools/ci/ci_get_mr_info.py index 5deb8ca2de..da3862d609 100644 --- a/tools/ci/ci_get_mr_info.py +++ b/tools/ci/ci_get_mr_info.py @@ -3,19 +3,8 @@ # internal use only for CI # get latest MR information by source branch # -# Copyright 2020 Espressif Systems (Shanghai) PTE LTD -# -# 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. +# SPDX-FileCopyrightText: 2020-2022 Espressif Systems (Shanghai) CO LTD +# SPDX-License-Identifier: Apache-2.0 # import argparse diff --git a/tools/ci/deploy_docs.py b/tools/ci/deploy_docs.py index 8e5613f3e5..b9f61240b0 100755 --- a/tools/ci/deploy_docs.py +++ b/tools/ci/deploy_docs.py @@ -3,19 +3,8 @@ # CI script to deploy docs to a webserver. Not useful outside of CI environment # # -# Copyright 2020 Espressif Systems (Shanghai) PTE LTD -# -# 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. +# SPDX-FileCopyrightText: 2020-2022 Espressif Systems (Shanghai) CO LTD +# SPDX-License-Identifier: Apache-2.0 # import glob import os diff --git a/tools/ci/envsubst.py b/tools/ci/envsubst.py index dbfbb1c106..8c9a0c7796 100755 --- a/tools/ci/envsubst.py +++ b/tools/ci/envsubst.py @@ -1,4 +1,6 @@ #!/usr/bin/env python +# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD +# SPDX-License-Identifier: Apache-2.0 # # A script similar to GNU envsubst, but filters out # some CI related variables. diff --git a/tools/ci/python_packages/gitlab_api.py b/tools/ci/python_packages/gitlab_api.py index 62f20185e4..687814375d 100644 --- a/tools/ci/python_packages/gitlab_api.py +++ b/tools/ci/python_packages/gitlab_api.py @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD +# SPDX-License-Identifier: Apache-2.0 import argparse import os import re diff --git a/tools/ci/python_packages/idf_iperf_test_util/Attenuator.py b/tools/ci/python_packages/idf_iperf_test_util/Attenuator.py index 5f20548678..565cea6c7c 100644 --- a/tools/ci/python_packages/idf_iperf_test_util/Attenuator.py +++ b/tools/ci/python_packages/idf_iperf_test_util/Attenuator.py @@ -1,16 +1,5 @@ -# Copyright 2015-2017 Espressif Systems (Shanghai) PTE LTD -# -# 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. +# SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD +# SPDX-License-Identifier: Apache-2.0 """ Internal use only. diff --git a/tools/ci/python_packages/idf_iperf_test_util/IperfUtility.py b/tools/ci/python_packages/idf_iperf_test_util/IperfUtility.py index 3d622ef16d..4d928da777 100644 --- a/tools/ci/python_packages/idf_iperf_test_util/IperfUtility.py +++ b/tools/ci/python_packages/idf_iperf_test_util/IperfUtility.py @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD +# SPDX-License-Identifier: Apache-2.0 import os import re import subprocess diff --git a/tools/ci/python_packages/idf_iperf_test_util/LineChart.py b/tools/ci/python_packages/idf_iperf_test_util/LineChart.py index 48bb25ca8f..88271f4020 100644 --- a/tools/ci/python_packages/idf_iperf_test_util/LineChart.py +++ b/tools/ci/python_packages/idf_iperf_test_util/LineChart.py @@ -1,16 +1,5 @@ -# Copyright 2015-2017 Espressif Systems (Shanghai) PTE LTD -# -# 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. +# SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD +# SPDX-License-Identifier: Apache-2.0 from collections import OrderedDict diff --git a/tools/ci/python_packages/idf_iperf_test_util/PowerControl.py b/tools/ci/python_packages/idf_iperf_test_util/PowerControl.py index bf0882e7e3..38d4c08121 100644 --- a/tools/ci/python_packages/idf_iperf_test_util/PowerControl.py +++ b/tools/ci/python_packages/idf_iperf_test_util/PowerControl.py @@ -1,16 +1,5 @@ -# Copyright 2015-2017 Espressif Systems (Shanghai) PTE LTD -# -# 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. +# SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD +# SPDX-License-Identifier: Apache-2.0 """ Internal use only. diff --git a/tools/ci/python_packages/idf_iperf_test_util/TestReport.py b/tools/ci/python_packages/idf_iperf_test_util/TestReport.py index d93b65b606..43e667b650 100644 --- a/tools/ci/python_packages/idf_iperf_test_util/TestReport.py +++ b/tools/ci/python_packages/idf_iperf_test_util/TestReport.py @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD +# SPDX-License-Identifier: Apache-2.0 """ this module generates markdown format test report for throughput test. diff --git a/tools/ci/python_packages/tiny_test_fw/App.py b/tools/ci/python_packages/tiny_test_fw/App.py index 10ac232a98..c3b3fc6646 100644 --- a/tools/ci/python_packages/tiny_test_fw/App.py +++ b/tools/ci/python_packages/tiny_test_fw/App.py @@ -1,16 +1,5 @@ -# Copyright 2015-2017 Espressif Systems (Shanghai) PTE LTD -# -# 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. +# SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD +# SPDX-License-Identifier: Apache-2.0 """ class for handling Test Apps. Currently it provides the following features: diff --git a/tools/ci/python_packages/tiny_test_fw/DUT.py b/tools/ci/python_packages/tiny_test_fw/DUT.py index cdd90be9a2..21bf0c40bb 100644 --- a/tools/ci/python_packages/tiny_test_fw/DUT.py +++ b/tools/ci/python_packages/tiny_test_fw/DUT.py @@ -1,16 +1,5 @@ -# Copyright 2015-2017 Espressif Systems (Shanghai) PTE LTD -# -# 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. +# SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD +# SPDX-License-Identifier: Apache-2.0 """ DUT provides 3 major groups of features: diff --git a/tools/ci/python_packages/tiny_test_fw/Env.py b/tools/ci/python_packages/tiny_test_fw/Env.py index e6c55b297d..d7318d1813 100644 --- a/tools/ci/python_packages/tiny_test_fw/Env.py +++ b/tools/ci/python_packages/tiny_test_fw/Env.py @@ -1,16 +1,5 @@ -# Copyright 2015-2017 Espressif Systems (Shanghai) PTE LTD -# -# 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. +# SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD +# SPDX-License-Identifier: Apache-2.0 """ Test Env, manages DUT, App and EnvConfig, interface for test cases to access these components """ import functools diff --git a/tools/ci/python_packages/tiny_test_fw/EnvConfig.py b/tools/ci/python_packages/tiny_test_fw/EnvConfig.py index b914448abd..7597766fe7 100644 --- a/tools/ci/python_packages/tiny_test_fw/EnvConfig.py +++ b/tools/ci/python_packages/tiny_test_fw/EnvConfig.py @@ -1,16 +1,5 @@ -# Copyright 2015-2017 Espressif Systems (Shanghai) PTE LTD -# -# 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. +# SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD +# SPDX-License-Identifier: Apache-2.0 """ The test env could change when we running test from different computers. diff --git a/tools/ci/python_packages/tiny_test_fw/TinyFW.py b/tools/ci/python_packages/tiny_test_fw/TinyFW.py index 0f2ace581d..9bd7c405a6 100644 --- a/tools/ci/python_packages/tiny_test_fw/TinyFW.py +++ b/tools/ci/python_packages/tiny_test_fw/TinyFW.py @@ -1,16 +1,5 @@ -# Copyright 2015-2017 Espressif Systems (Shanghai) PTE LTD -# -# 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. +# SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD +# SPDX-License-Identifier: Apache-2.0 """ Interface for test cases. """ import functools diff --git a/tools/ci/python_packages/ttfw_idf/CIScanTests.py b/tools/ci/python_packages/ttfw_idf/CIScanTests.py index 10c6d73662..9abfcd80a6 100644 --- a/tools/ci/python_packages/ttfw_idf/CIScanTests.py +++ b/tools/ci/python_packages/ttfw_idf/CIScanTests.py @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD +# SPDX-License-Identifier: Apache-2.0 import argparse import errno import json diff --git a/tools/ci/python_packages/ttfw_idf/IDFApp.py b/tools/ci/python_packages/ttfw_idf/IDFApp.py index f073e8f9ca..6ad2b9ce22 100644 --- a/tools/ci/python_packages/ttfw_idf/IDFApp.py +++ b/tools/ci/python_packages/ttfw_idf/IDFApp.py @@ -1,16 +1,5 @@ -# Copyright 2015-2017 Espressif Systems (Shanghai) PTE LTD -# -# 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. +# SPDX-FileCopyrightText: 2015-2022 Espressif Systems (Shanghai) CO LTD +# SPDX-License-Identifier: Apache-2.0 """ IDF Test Applications """ import hashlib diff --git a/tools/ci/python_packages/ttfw_idf/IDFAssignTest.py b/tools/ci/python_packages/ttfw_idf/IDFAssignTest.py index 83d0baccf7..c2190df52d 100644 --- a/tools/ci/python_packages/ttfw_idf/IDFAssignTest.py +++ b/tools/ci/python_packages/ttfw_idf/IDFAssignTest.py @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD +# SPDX-License-Identifier: Apache-2.0 """ Command line tool to assign tests to CI test jobs. """ diff --git a/tools/ci/python_packages/ttfw_idf/unity_test_parser.py b/tools/ci/python_packages/ttfw_idf/unity_test_parser.py index e3b8c3c81b..b2d7863211 100644 --- a/tools/ci/python_packages/ttfw_idf/unity_test_parser.py +++ b/tools/ci/python_packages/ttfw_idf/unity_test_parser.py @@ -1,3 +1,5 @@ +# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD +# SPDX-License-Identifier: Apache-2.0 """ Modification version of https://github.com/ETCLabs/unity-test-parser/blob/develop/unity_test_parser.py since only python 3.6 or higher version have ``enum.auto()`` diff --git a/tools/ci/python_packages/wifi_tools.py b/tools/ci/python_packages/wifi_tools.py index dc8c496e21..55a2569abc 100644 --- a/tools/ci/python_packages/wifi_tools.py +++ b/tools/ci/python_packages/wifi_tools.py @@ -1,16 +1,5 @@ -# Copyright 2018 Espressif Systems (Shanghai) PTE LTD -# -# 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. +# SPDX-FileCopyrightText: 2018-2022 Espressif Systems (Shanghai) CO LTD +# SPDX-License-Identifier: Apache-2.0 # import time diff --git a/tools/ci/test_autocomplete.py b/tools/ci/test_autocomplete.py index 9ee4406dc9..acff514d01 100755 --- a/tools/ci/test_autocomplete.py +++ b/tools/ci/test_autocomplete.py @@ -1,4 +1,6 @@ #!/usr/bin/env python +# SPDX-FileCopyrightText: 2022 Espressif Systems (Shanghai) CO LTD +# SPDX-License-Identifier: Apache-2.0 import os import sys import unittest