tests: Fix undefined reference to `ck_assert_ptr_eq`

The ck_assert_ptr family of functions were added in check 0.9.10, which
unfortunately is newer than the versions available in the current stable
releases of Debian and Ubuntu. We workaround this by replacing calls to
`ck_assert_ptr` with `ck_assert`. The failure messages won't be as
pretty but at least the tests run...

Signed-off-by: Adam James <adam.james@transitiv.co.uk>
Merge pull request #34 from atj/ck_assert_ptr

tests: Fix undefined reference to `ck_assert_ptr_eq`
add query handler for external commands

now we can use the query handler to send external commands. Reason
is to get livestatus make use of this instead of directly calling
process_external_command1() which segfaults in case of other neb
modules loaded like npcdmod or mod-gearman.

ex.: contrib/naemon-qh.rb -c 'core command [1391099692] RESTART_PROGRAM'

Signed-off-by: Sven Nierlein <sven@nierlein.de>
tests: Put builddir on our include path

This prevents link errors when builddir is different from sourcedir.

Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
Remove remnants of waf build system

We use autotools.

Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
configure: Use %prefix-relative paths everywhere

Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
makefile: Install and uninstall properly

Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
tests: Source is in srcdir

srcdir might, but might also not, be equivalent to builddir.

Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
t: Make tests run

I'm not automake's test runner's best friend right now - in fact, I'm
tasting the vomit just thinking about how you'd design a test protocol
that can't sanely accept input files - but this actually seems to do the
job.

Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
travis: Run regular make check before distcheck

That way, it's more obvious if it's a real issue, or if it's a build
tool issue.

Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
travis: If make check fails, just bail ASAP

Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
test-log: Work around bugs in old check versions

Ubuntu precise runs assert argument twice, so move function calls
outside of assertions.

Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
checks: Fix memory error in test

Also, just in case, make sure perfdata is initialized to NULL.

Signed-off-by: Robin Sonefors <robin.sonefors@op5.com>
Change command query-handler to a seperate handler

To make it posisble to refactor out commands query handler to the
commands.c file later, use a sepeate query handler to handle commands

Signed-off-by: Max Sikstrom <msikstrom@op5.com>