Skip to content

Commit

Permalink
zmq(wip): one little step toward zmq-func-test
Browse files Browse the repository at this point in the history
  • Loading branch information
lmesz committed Dec 28, 2015
1 parent 8e6ce4a commit 6f2dd3e
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 2 deletions.
2 changes: 0 additions & 2 deletions modules/zmq/tests/functional/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,3 @@ EXTRA_DIST += \

func-test:
@$(top_srcdir)/modules/zmq/tests/functional/runtests.sh

.PHONY: func-test
26 changes: 26 additions & 0 deletions modules/zmq/tests/functional/test_zmq_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,30 @@
import sys

sys.path.append(os.environ['func_test_dir'])

from control import *
from func_test import *

conf = """
@version: 3.7
source zmq {
zmqq();
};
destination file {
file("/tmp/res");
};
log {
source(zmq);
destination(file);
};
"""

def test_zmq_source_can_receive_a_message():
if not start_syslogng(conf, keep_persist=False, verbose=False):
sys.exit(42)
stop_syslogng()

test_zmq_source_can_receive_a_message()

0 comments on commit 6f2dd3e

Please sign in to comment.