mirror of
https://git.rwth-aachen.de/acs/public/villas/node/
synced 2025-03-09 00:00:00 +01:00
rpm: perform tests during packaging
This commit is contained in:
parent
facba31659
commit
aa77c82b82
3 changed files with 9 additions and 2 deletions
|
@ -34,7 +34,7 @@
|
|||
#include "node.h"
|
||||
#include "list.h"
|
||||
|
||||
#if ZMQ_VERSION_MAJOR >= 4 && ZMQ_VERSION_MINOR >= 2
|
||||
#if ZMQ_VERSION_MAJOR > 4 || (ZMQ_VERSION_MAJOR == 4 && ZMQ_VERSION_MINOR >= 2)
|
||||
#define ZMQ_BUILD_DISH 1
|
||||
#endif
|
||||
|
||||
|
|
|
@ -21,7 +21,10 @@
|
|||
*********************************************************************************/
|
||||
|
||||
#include <zmq.h>
|
||||
#include <zmq_utils.h>
|
||||
|
||||
#if ZMQ_VERSION_MAJOR < 4 || (ZMQ_VERSION_MAJOR == 4 && ZMQ_VERSION_MINOR <= 1)
|
||||
#include <zmq_utils.h>
|
||||
#endif
|
||||
|
||||
#include "nodes/zeromq.h"
|
||||
#include "utils.h"
|
||||
|
|
|
@ -47,6 +47,10 @@ rm -rf %{?buildroot}
|
|||
make PREFIX=/usr DESTDIR=%{?buildroot} install
|
||||
make PREFIX=/usr DESTDIR=%{?buildroot} install-doc
|
||||
|
||||
%check
|
||||
make run-unit-tests
|
||||
make run-integration-tests
|
||||
|
||||
%post -p /sbin/ldconfig
|
||||
%postun -p /sbin/ldconfig
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue