Skip to content

Commit 07dcfe6

Browse files
committed
Added Apache 2.0 license header and also SPDX idenfitier to tests
1 parent 5813232 commit 07dcfe6

File tree

6 files changed

+72
-0
lines changed

6 files changed

+72
-0
lines changed

test/add_test.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# Copyright (c) 2016 ARM Limited, All Rights Reserved
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
7+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
8+
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
11+
# either express or implied.
12+
113
from util import *
214

315
# Tests the result of 'mbed add'

test/import_test.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# Copyright (c) 2016 ARM Limited, All Rights Reserved
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
7+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
8+
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
11+
# either express or implied.
12+
113
from util import *
214

315
# Tests 'mbed import'

test/ls_test.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# Copyright (c) 2016 ARM Limited, All Rights Reserved
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
7+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
8+
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
11+
# either express or implied.
12+
113
from util import *
214

315
# Tests 'mbed ls' and provides sanity check of test framework

test/remove_test.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# Copyright (c) 2016 ARM Limited, All Rights Reserved
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
7+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
8+
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
11+
# either express or implied.
12+
113
from util import *
214

315
# Tests the result of 'mbed remove'

test/sync_update_test.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# Copyright (c) 2016 ARM Limited, All Rights Reserved
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
7+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
8+
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
11+
# either express or implied.
12+
113
from util import *
214

315
# Tests if a 'mbed sync', commit, and 'mbed update' works on a simple file change

test/util.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,15 @@
1+
# Copyright (c) 2016 ARM Limited, All Rights Reserved
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
# Licensed under the Apache License, Version 2.0 (the "License");
5+
# you may not use this file except in compliance with the License.
6+
7+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
8+
9+
# Unless required by applicable law or agreed to in writing, software
10+
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND,
11+
# either express or implied.
12+
113
import contextlib
214
import subprocess
315
import pytest

0 commit comments

Comments
 (0)