Hello,

I'm trying to add a couple of tests for ompgsql, but I got stuck a bit
early: trying to make the testbench run in the first place.

I watched this nice video about the testbench:
https://www.youtube.com/watch?v=GLogMXhB48A

But when I run `make check` it doesn't run any test. Also, there was
some "env" command there that I can't find anymore. I manually
exported "srcdir" but of course then checks complain about msleep and
tcplood not being compiled. "make check" didn't compile them.

Trying to compile them manually, tcpflood complained about missing
librelp. I installed it now (version 1.2.13, it says) but it still
won't compile, saying:

-----------------
# make tcpflood
  CCLD     tcpflood
tcpflood-tcpflood.o: In function `openConn':
/rsyslog/tests/tcpflood.c:279: undefined reference to `relpEngineCltConstruct'
/rsyslog/tests/tcpflood.c:281: undefined reference to `relpCltConnect'
tcpflood-tcpflood.o: In function `openConnections':
/rsyslog/tests/tcpflood.c:358: undefined reference to `relpEngineCltDestruct'
tcpflood-tcpflood.o: In function `closeConnections':
/rsyslog/tests/tcpflood.c:415: undefined reference to `relpEngineCltDestruct'
tcpflood-tcpflood.o: In function `sendMessages':
/rsyslog/tests/tcpflood.c:620: undefined reference to `relpCltSendSyslog'
tcpflood-tcpflood.o: In function `initRELP_PLAIN':
/rsyslog/tests/tcpflood.c:231: undefined reference to `relpEngineConstruct'
/rsyslog/tests/tcpflood.c:232: undefined reference to `relpEngineSetDbgprint'
/rsyslog/tests/tcpflood.c:234: undefined reference to `relpEngineSetEnableCmd'
tcpflood-tcpflood.o: In function `main':
/rsyslog/tests/tcpflood.c:1185: undefined reference to `relpEngineDestruct'
collect2: error: ld returned 1 exit status
make: *** [tcpflood] Error 1
----------------

I have a feeling I'm doing it all wrong in the first place. Any
pointers? Anything will be appreciated at this point.

And since I'm here asking questions, we'll need Postgres installed for
the tests. I have it locally, but I assume I have to make some changes
to .travis.yml to have it integrated with Travis? I assume I can take
inspiration from the mysql procedure, but I wanted to ask if you have
any advice on this front as well. Would the tests be welcome without
the Travis changes? Because I don't know how to test those changes, my
only knowledge of Travis is that it's a "continuous integration
thingie".

Thanks in advance!

Best regards,
Radu
--
Performance Monitoring * Log Analytics * Search Analytics
Solr & Elasticsearch Support * http://sematext.com/
_______________________________________________
rsyslog mailing list
http://lists.adiscon.net/mailman/listinfo/rsyslog
http://www.rsyslog.com/professional-services/
What's up with rsyslog? Follow https://twitter.com/rgerhards
NOTE WELL: This is a PUBLIC mailing list, posts are ARCHIVED by a myriad of 
sites beyond our control. PLEASE UNSUBSCRIBE and DO NOT POST if you DON'T LIKE 
THAT.

Reply via email to