Skip to content

Commit 66845cb

Browse files
Merge branch 'master' into fix_greentea_import
2 parents 00923dd + 869093b commit 66845cb

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+3070
-5
lines changed

.circleci/config.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,37 @@ commands:
1414
name: "Run tests for \"<< parameters.working_directory >>\""
1515
working_directory: << parameters.working_directory >>
1616
command: python -m coverage run setup.py test
17-
install_mbed_os_tools:
18-
description: "Install mbed-os-tools for legacy package testing"
17+
install_all_tools:
18+
description: "Install all tools"
1919
steps:
2020
- run:
2121
name: "Install mbed-os-tools for legacy package testing"
2222
command: pip install --user .
23+
- run:
24+
name: "Install legacy mbed-ls"
25+
working_directory: legacy/mbed-ls
26+
command: pip install --user .
27+
- run:
28+
name: "Install legacy mbed-host-tests"
29+
working_directory: legacy/mbed-host-tests
30+
command: pip install --user .
31+
- run:
32+
name: "Install legacy mbed-greentea"
33+
working_directory: legacy/mbed-greentea
34+
command: pip install --user .
2335
setup_and_run_tests:
2436
steps:
2537
- checkout
2638
- run_tests:
2739
working_directory: .
28-
- install_mbed_os_tools
29-
- run_tests:
30-
working_directory: legacy/mbed-greentea
40+
- install_all_tools
3141
- run_tests:
3242
working_directory: legacy/mbed-ls
43+
- run_tests:
44+
working_directory: legacy/mbed-host-tests
45+
- run_tests:
46+
working_directory: legacy/mbed-greentea
47+
3348
enforce_style:
3449
steps:
3550
- checkout

legacy/mbed-host-tests/.coveragerc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[run]
2+
source =
3+
mbed_host_tests

legacy/mbed-host-tests/MANIFEST.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
include README.md
2+
include .coveragerc

legacy/mbed-host-tests/README.md

Lines changed: 1202 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
"""
2+
mbed SDK
3+
Copyright (c) 2011-2016 ARM Limited
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
17+
Author: Przemyslaw Wirkus <[email protected]>
18+
"""
19+
20+
21+
"""! @package mbed-host-tests
22+
23+
Flash, reset and perform host supervised tests on mbed platforms.
24+
Write your own programs (import this package) or use 'mbedhtrun' command line tool instead.
25+
26+
"""
27+
28+
from mbed_os_tools.test import (
29+
host_tests_plugins,
30+
HostRegistry,
31+
BaseHostTest,
32+
event_callback,
33+
DEFAULT_BAUD_RATE,
34+
get_plugin_caps,
35+
init_host_test_cli_params,
36+
)
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
"""
2+
mbed SDK
3+
Copyright (c) 2011-2013 ARM Limited
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
"""
17+
18+
# base host test class
19+
from .base_host_test import BaseHostTest, event_callback
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
"""
2+
mbed SDK
3+
Copyright (c) 2011-2016 ARM Limited
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
"""
17+
18+
from mbed_os_tools.test.host_tests.base_host_test import (
19+
BaseHostTestAbstract,
20+
event_callback,
21+
HostTestCallbackBase,
22+
BaseHostTest,
23+
)
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
"""
2+
mbed SDK
3+
Copyright (c) 2011-2013 ARM Limited
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
"""
17+
18+
from mbed_os_tools.test.host_tests.default_auto import DefaultAuto
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
"""
2+
mbed SDK
3+
Copyright (c) 2011-2013 ARM Limited
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
"""
17+
18+
from mbed_os_tools.test.host_tests.detect_auto import DetectPlatformTest
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
"""
2+
mbed SDK
3+
Copyright (c) 2011-2013 ARM Limited
4+
5+
Licensed under the Apache License, Version 2.0 (the "License");
6+
you may not use this file except in compliance with the License.
7+
You may obtain a copy of the License at
8+
9+
http://www.apache.org/licenses/LICENSE-2.0
10+
11+
Unless required by applicable law or agreed to in writing, software
12+
distributed under the License is distributed on an "AS IS" BASIS,
13+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
See the License for the specific language governing permissions and
15+
limitations under the License.
16+
"""
17+
18+
from mbed_os_tools.test.host_tests.dev_null_auto import DevNullTest

0 commit comments

Comments
 (0)