1# Testing mraa 2 3Mraa has a test suite written in python which can be run by users to check 4their platform is working correctly. The aim is to have a full API coverage 5using python scripts using unittests. Currently the test suite is far from 6complete. 7 8## Supported platforms 9 10Intel Galileo v1 was used and is currently the only supported platform. Tests 11were conducted on Intel Galileo v2, but because of hardware differences, some 12failures may occur. Logic will be added to auto-select board to work on. To 13start with boards with an arduino type shield/layout should work 14 15## How to run these tests 16 17You need to compile from source with -DBUILDSWIGPYTHON=ON and then tests can be 18executed with: 19$ make test 20 21More detail can be seen by running: 22$ ctest -VV 23 24Note tests will not run on platforms which cannot initialise, checking the 25amount of 'skipped' tests can be useful 26 27## What's next? 28 29At this point tests were made to do a quick sanity check. In the future the 30followings will be implemented: 31 * Create a physical layer that will emulate sensors behavior and generate I/O 32 signals. This layer will be available to the community and will help replace 33 the need of specific sensors. The simplest solution will be chosen allowing 34 anyone to rapidly implement it. 35 * Implement stress tests over long periods of time. This feature alone is 36 possible only with the use of a physical layer since it will behave both as 37 signals generator and interpreter. 38 * Analyze a tests result collection solution (and after, interpretation). This 39 is useful since tests mean nothing without a history and possibility to 40 check on results. 41 * Any idea welcome! 42 43