2015-04-07 17:02:27 +03:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
|
|
# Author: Costin Constantin <costin.c.constantin@intel.com>
|
|
|
|
|
# Copyright (c) 2015 Intel Corporation.
|
|
|
|
|
#
|
2019-05-09 09:47:11 -07:00
|
|
|
# SPDX-License-Identifier: MIT
|
2015-04-07 17:02:27 +03:00
|
|
|
|
2015-08-11 11:24:22 +01:00
|
|
|
from __future__ import print_function
|
|
|
|
|
|
2015-04-07 17:02:27 +03:00
|
|
|
import mraa as m
|
2015-08-11 11:24:22 +01:00
|
|
|
import unittest as u
|
2015-04-07 17:02:27 +03:00
|
|
|
|
|
|
|
|
class GeneralChecks(u.TestCase):
|
|
|
|
|
def test_mraa_version(self):
|
|
|
|
|
self.version = m.getVersion()
|
2015-08-11 11:24:22 +01:00
|
|
|
print("Version is: " + self.version)
|
2015-04-07 17:02:27 +03:00
|
|
|
self.assertIsNotNone(self.version)
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
|
u.main()
|