yea probably with the console addition
( adam stokes ) || ( adam.stokes(a)gmail.com )
On Wed, Apr 13, 2011 at 2:42 AM, Andrew Beekhof <andrew(a)beekhof.net> wrote:
Found this old patch.
Do you still think this is the right path to take or should we do it
with c++ consoles?
On Mon, Dec 20, 2010 at 5:38 PM, Adam Stokes <astokes(a)fedoraproject.org> wrote:
> ---
> src/CMakeLists.txt | 2 ++
> src/tests/host-agent.t.in | 21 +++++++++++++++++++++
> 2 files changed, 23 insertions(+), 0 deletions(-)
> create mode 100644 src/tests/host-agent.t.in
>
> diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
> index b95bbc6..e2dbd5d 100644
> --- a/src/CMakeLists.txt
> +++ b/src/CMakeLists.txt
> @@ -186,4 +186,6 @@ install(TARGETS mcommon mhost msrv DESTINATION lib${LIB_SUFFIX})
> install(FILES ${SCHEMAS} DESTINATION share/matahari)
> install(FILES ${CMAKE_CURRENT_BINARY_DIR}/include/matahari.h DESTINATION include)
>
> +# tests
> +configure_file (${CMAKE_CURRENT_SOURCE_DIR}/tests/host-agent.t.in
${CMAKE_CURRENT_BINARY_DIR}/tests/host-agent.t)
>
> diff --git a/src/tests/host-agent.t.in b/src/tests/host-agent.t.in
> new file mode 100644
> index 0000000..f671c04
> --- /dev/null
> +++ b/src/tests/host-agent.t.in
> @@ -0,0 +1,21 @@
> +#!/usr/bin/env perl
> +
> +use strict;
> +use warnings;
> +use Test::Simple tests => 1; # Increment as tests are added
> +
> +=head1
> +Matahari host agent test suite
> +=cut
> +
> +my $binary = "matahari-hostd";
> +my $broker_host = @MATAHARI_BROKER@;
> +my $broker_port = @MATAHARI_PORT@;
> +
> +my $cmd = "$binary -b $broker_host -p $broker_port";
> +`$cmd`;
> +
> +my @args = ("pidof", $binary);
> +ok( $? eq 0, "$binary is running");
> +
> +`pkill $binary`;
> --
> 1.7.3.3
>
> _______________________________________________
> Matahari mailing list
> Matahari(a)lists.fedorahosted.org
>
https://fedorahosted.org/mailman/listinfo/matahari
>