-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #79 from webbcam/feature-#76
Feature #76
- Loading branch information
Showing
47 changed files
with
745 additions
and
775 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
configure: | ||
python -m pip install -r tests/requirements.txt | ||
python tests/scripts/configenv.py | ||
|
||
test: | ||
tox . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
[metadata] | ||
description-file = README.md | ||
description-file = README.rst |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
======= | ||
Testing | ||
======= | ||
|
||
This directory contains all necessary files for running the tests | ||
|
||
Setting up Test Environment | ||
=========================== | ||
|
||
To setup your testing environment, you'll need at least one device to run | ||
tests on. Below are the devices supported out of the box that include resources | ||
for testing (if you want to run tests on a device not listed below, you'll need | ||
to provide similar resources for that device. See `tests/resources/cc1310 <resources/cc1310>`_ for an | ||
example) | ||
|
||
- `cc1310/cc1350 <resources/cc1310/README.rst>`_ | ||
|
||
|
||
Steps | ||
----- | ||
|
||
1. Edit the file `tests/env.cfg <env.cfg>`_ | ||
|
||
**Minimum Requirements:** | ||
|
||
1. ``prefix``: full path to parent directory of CCS installations (e.g. /opt/ti) | ||
2. ``versions``: comma-separated list of CCS version numbers (e.g. 9.0.1.00004, 8.1.0.00011) | ||
|
||
a. for each version listed you'll need to provide the full path to that | ||
CCS installation | ||
(e.g. 9.0.1.00004 = /opt/ti/ccs901/ccs) | ||
|
||
3. Enter the required device information (see `tests/resources/cc1310/README.rst <resources/cc1310/README.rst>`_ | ||
for what's required) | ||
|
||
| | ||
| An example: | ||
:: | ||
|
||
# env.cfg | ||
[ccs] | ||
prefix = /opt/ti | ||
versions = 9.0.1.00004, 8.1.0.00011 | ||
9.0.1.00004: /opt/ti/ccs901/ccs | ||
8.1.0.00011: /opt/ti/ccsv8 | ||
|
||
[devices] | ||
cc1310 | ||
|
||
[cc1310] | ||
serno = L20000CE | ||
|
||
2. Configure the test setup | ||
:: | ||
|
||
# From the top level directory | ||
make configure | ||
|
||
3. Run tests | ||
:: | ||
|
||
# From the top level directory | ||
make test |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.