renamed READMEs and inline comments to the new framework name MONK

This commit should solve #7

Signed-off-by: Erik Bernoth <bernoth@dresearch-fe.de>
Acked-by: Steffen Sledz <sledz@dresearch-fe.de>
Acked-by: Angelika Tobisch <tobisch@dresearch-fe.de>
run_gordon_unittests.py renamed

normally we call the suite that countains all tests test_all.py and put it
in the same folder as the other test cases. Following this rule, the script
was transfered.

A change for issue #8.

Signed-off-by: Erik Bernoth <bernoth@dresearch-fe.de>
Acked-by: Christian Bruhn <bruhn@dresearch-fe.de>
Acked-by: Mario Schuknecht <schuknecht@dresearch-fe.de>
make testcases executable

TestCases weren't executable by itself. I also switched back from unittest2
to unittest, which should be the same framework.

A change for issue #8.

Signed-off-by: Erik Bernoth <bernoth@dresearch-fe.de>
Acked-by: Christian Bruhn <bruhn@dresearch-fe.de>
Acked-by: Mario Schuknecht <schuknecht@dresearch-fe.de>
added empty testcases

This way they are also executing even though they don't do anything.

A change for issue #8.

Signed-off-by: Erik Bernoth <bernoth@dresearch-fe.de>
Acked-by: Christian Bruhn <bruhn@dresearch-fe.de>
Acked-by: Mario Schuknecht <schuknecht@dresearch-fe.de>
comments changed

Changed names from HidaV to MONK and removed former colleague Thilo Fromm as
maintainer. The project will be generally maintained by the DFE Github group
and the members of <project-monk@dresearch-fe.de>.

This change is part of Issue #8.

Signed-off-by: Erik Bernoth <bernoth@dresearch-fe.de>
Acked-by: Christian Bruhn <bruhn@dresearch-fe.de>
Acked-by: Mario Schuknecht <schuknecht@dresearch-fe.de>
duplicate of test_ssh_conn.py deleted

Mario found that this file exists twice. The version not in the tests/ path was
hereby deleted.

This commit finishes Issue #8.

Signed-off-by: Erik Bernoth <bernoth@dresearch-fe.de>
Acked-by: Christian Bruhn <bruhn@dresearch-fe.de>
Acked-by: Mario Schuknecht <schuknecht@dresearch-fe.de>
logging.conf: exchanged for internal configuration

Python is well known for it's unintuitive treatment of filesystem calls
relative to execution instead of written occurence. With
our `logging.conf` we had such an issue. We believed putting a
`logging.conf` in the same folder as devicetestcase.py and adding a call to
this `logging.conf` would be enough. But of course, when importing the
devicetestcase somewhere else, it will try to find the the `logging.conf`
in the other folder. After considering some different options, we decided
to put the configuration directly into the devicetestcase.py. It is not
all too big and we felt this way there is the smallest chance to make
errors.

Original commit by C.Bruhn <bruhn@dresearch-fe.de> and
M.Schuknecht <schuknecht@dresearch-fe.de>. Restructured by E.Bernoth.

This commit belongs to the Issue #9.
Also see 873a4a8e427d40109ef146f90962b8502a198430

Signed-off-by: Erik Bernoth <bernoth@dresearch-fe.de>
Acked-by: Mario Schuknecht <schuknecht@dresearch-fe.de>
Acked-by: Steffen Sledz <sledz@dresearch-fe.de>
devicetestcase.py: allow logging config overwrite

Until now it wasn't possible to deactivate the default logging
configuration. This was changed here with passing shell args down to the
place, where the default configuration is executed.

Original commit by C.Bruhn <bruhn@dresearch-fe.de> and
M.Schuknecht <schuknecht@dresearch-fe.de>. Rebased by E.Bernoth.

This commit should finish Issue #9.
Also see 873a4a8e427d40109ef146f90962b8502a198430

Signed-off-by: Erik Bernoth <erik.bernoth@gmail.com>
Acked-by: Mario Schuknecht <schuknecht@dresearch-fe.de>
Acked-by: Steffen Sledz <sledz@dresearch-fe.de>
environment: new prefix for project related environment variables

In accordance with the project renaming all environment variables
now have the prefix MONK_ instead of GORDON_.

Signed-off-by: Steffen Sledz <sledz@dresearch-fe.de>
Acked-by: Christian Bruhn <bruhn@dresearch-fe.de>
Acked-by: Mario Schuknecht <schuknecht@dresearch-fe.de>
serial_conn.py: use ^D aka \003 as write_trigger for login prompt

For system where a password is required to login the former solution
triggering with 'exit\n' leads to an endless loop.

Signed-off-by: Steffen Sledz <sledz@dresearch-fe.de>
Acked-by: Sascha Dierberg <dierberg@dresearch-fe.de>
Acked-by: Mario Schuknecht <schuknecht@dresearch-fe.de>
serial_conn.py: don't start read_until by sending '\n' unconditionally

There's no need to send '\n' in every call of read_until. Quite the
contrary this leads to problems answering login or password prompts.

Signed-off-by: Steffen Sledz <sledz@dresearch-fe.de>
Acked-by: Sascha Dierberg <dierberg@dresearch-fe.de>
Acked-by: Mario Schuknecht <schuknecht@dresearch-fe.de>
Merge pull request #12 from DFE/b-fix-login

Login problems over serial connection
serial_conn.py: use \n as write_trigger for login prompt

The decision to use ^D as login write_trigger was not really good.
It seems that depending on the buffer management the trigger string
may be suspended for a long time. This is fixed by using \n instead.

Signed-off-by: Steffen Sledz <sledz@dresearch-fe.de>
Acked-by: Sascha Dierberg <dierberg@dresearch-fe.de>
Acked-by: Mario Schuknecht <schuknecht@dresearch-fe.de>
Merge pull request #14 from DFE/b-fix2-login

Login problems over serial connection (Part II)
moved src files to new src folder

It is not common for a professional python project to put all it's source files
in it's root folder. Thus a subfolder `src` was created.
Another subfolder, called `monk_tf`, was created underneath that Python can
recognize our code as a module. This makes sense if we ever decide that this
project needs to be seperated into more submodules, thus it's not a bad idea.
It will also help with adding distutils/pypi support for this project.

Signed-off-by: Erik Bernoth <bernoth@dresearch-fe.de>
pypi support added

The setup.py is the standard file for handling packaging and distribution in
the python community. We decided to add this support to provide better
accessibility for a wider range of audience.

Signed-off-by: Erik Bernoth <bernoth@dresearch-fe.de>
Merge pull request #18 from erikb85/f-add-distutils-v3

Adding distutils Support
add Travis-CI support

For [Travis-CI](travis-ci.org) to work properly, a python project needs 2
files. These 2 files were added here with a minimal configuration for Travis to
pass it's builds.

Implements Issue #19.

Signed-off-by: Erik Bernoth <bernoth@dresearch-fe.de>
Acked-by: Steffen Sledz <sledz@dresearch-fe.de>
Acked-by: Eik Binschek <binschek@dresearch-fe.de>
Merge branch 'f-add-travis-support-v2' into dev

Merged Issue #19
change script call line

The script call was changed to

  #!/bin/env python

Because this way it can also recognize calls inside a virtualenv correctly.

See Issue #20 for more details.

Signed-off-by: Erik Bernoth <bernoth@dresearch-fe.de>
Acked-by: Steffen Sledz <sledz@dresearch-fe.de>
Acked-by: Eik Binschek <binschek@dresearch-fe.de>