Actually return error when API test fails, dump more logs
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
This commit is contained in:
parent
b32d8279ad
commit
66e9975234
@ -36,7 +36,7 @@ script:
|
||||
- make all
|
||||
- make -C test programs
|
||||
- sudo make check || (which clang; cat test/test-suite.log; false)
|
||||
- (cat test/test-suite.log; cat test/api.log)
|
||||
- (cat test/test-suite.log; cat test/start.log; cat test/api.log)
|
||||
- make install-strip
|
||||
- mkdir -p /tmp/example; cp -a example/example.* /tmp/example/
|
||||
- (cd /tmp/example; PKG_CONFIG_LIBDIR=/tmp/sysklogd/lib/pkgconfig make -f example.mk)
|
||||
|
@ -30,6 +30,5 @@ kill -HUP `cat ${PID}`
|
||||
sleep 2
|
||||
|
||||
./api -i troglobit -p
|
||||
grep "troglobit - MSGID - ${MSG}" ${LOGV1} || (echo "== ${LOGV1}"; tail -10 ${LOGV1}; echo "== ${LOG}"; tail -10 ${LOG})
|
||||
|
||||
grep "troglobit - MSGID - ${MSG}" ${LOGV1} || (echo "== ${LOGV1}"; tail -10 ${LOGV1}; echo "== ${LOG}"; tail -10 ${LOG}; cat ${CONFD}/bar.conf; false)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user