tests: added more required stubbs

reflect recent changes in how external commands are submited to the core.

Signed-off-by: Sven Nierlein <sven@nierlein.de>
added travis ci integration

because more tests are better

Signed-off-by: Sven Nierlein <sven@nierlein.de>
Merge pull request #6 from sni/master

add travis integration
Make TableDownComm storage thread safe

The tables downtimes and comments uses an internal storage for
downtimes and comments, probably because the nagios and now naemons
internal storage doesn't provide thread safety, since objects can be
added and removed.

By some reason, the livestatus uses the non-thread safe storage map<>
from the standard library without synchronization. So adding or
removing downtimes at the same time as listing those can end up in
unexpected behaviour, and probably a segfault.

Easiest fix is to protect that map in a mutex.

More information can be found in the bugtracker at op5:
https://bugs.op5.com/view.php?id=8708

Signed-off-by: Max Sikstrom <msikstrom@op5.com>
Merge pull request #5 from naemon/dev/thread_safety_downcomm

Make TableDownComm storage thread safe