Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added tests for chameleon serial command protocol test #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

cons0l3
Copy link
Contributor

@cons0l3 cons0l3 commented Oct 12, 2016

As promised in issue #21, here is PR for a few tests as starting point for more tests. I have written them in unittest2-style so no additional python test libs are required.

it does not test the python chamtool.py or chamlog.py. It uses XModem class from Chamtool module to test the download.

the tests are run via a serial connection on the chameleon directly.

Warning: running the tests will alter the configuration on the chameleon

how to run the tests

  1. configure the PORT in the test_commands.py file appropriatly

  2. Chameleon/Software ~> python3 -m unittest -v tests.test_commands

TODO

  1. missing tests: UPGRADE,RESET,LOGDOWNLOAD,LOGSTORE,UPLOAD,CLEAR,STORE,RECALL,SEND,SEND_RAW,DUMP_MFU,FIELD=

  2. auto configure the port for tests or get command line argument. at least get config out of tests_commands.py file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant