Skip to content

Commit 0241bbc

Browse files
committed
Add basic unit tests for Ubuntu specific platform
1 parent 4e32182 commit 0241bbc

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

test/os_linux_ubuntu.py

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#!/usr/bin/env python
2+
"""
3+
mbed SDK
4+
Copyright (c) 2011-2015 ARM Limited
5+
6+
Licensed under the Apache License, Version 2.0 (the "License");
7+
you may not use this file except in compliance with the License.
8+
You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
"""
18+
19+
import unittest
20+
from mbed_lstools.lstools_ubuntu import MbedLsToolsUbuntu
21+
22+
class UbuntuPortTestCase(unittest.TestCase):
23+
""" Basic test cases checking trivial asserts
24+
"""
25+
26+
def setUp(self):
27+
self.linux_ubuntu = MbedLsToolsUbuntu()
28+
29+
def tearDown(self):
30+
pass
31+
32+
def test_os_support(self):
33+
self.assertIn("Ubuntu", self.linux_ubuntu.os_supported)
34+
35+
36+
if __name__ == '__main__':
37+
unittest.main()

0 commit comments

Comments
 (0)