Merge pull request #248 from theirix/build-check2
Added instructions how to run tests
This commit is contained in:
@@ -15,6 +15,10 @@ In order to compile this library do
|
|||||||
- ./configure
|
- ./configure
|
||||||
- make
|
- make
|
||||||
|
|
||||||
|
To run tests do additionally:
|
||||||
|
|
||||||
|
- make check
|
||||||
|
|
||||||
Please note that the pre-requisites for compilation include:
|
Please note that the pre-requisites for compilation include:
|
||||||
- GNU tools (autogen, automake, autoconf, libtool)
|
- GNU tools (autogen, automake, autoconf, libtool)
|
||||||
- GNU C compiler (gcc)
|
- GNU C compiler (gcc)
|
||||||
@@ -34,6 +38,7 @@ The entire procedure of adding new protocols in detail:
|
|||||||
9. ./autogen.sh
|
9. ./autogen.sh
|
||||||
10. ./configure
|
10. ./configure
|
||||||
11. make
|
11. make
|
||||||
|
12. make check
|
||||||
|
|
||||||
### Creating A Source File Tar Ball
|
### Creating A Source File Tar Ball
|
||||||
|
|
||||||
@@ -41,6 +46,10 @@ If you want to distribute a source tar file of nDPI do:
|
|||||||
|
|
||||||
- make dist
|
- make dist
|
||||||
|
|
||||||
|
To ensure that a tar file includes all necessary files and to run tests on distribution do:
|
||||||
|
|
||||||
|
- make distcheck
|
||||||
|
|
||||||
[ntopng_logo]: https://camo.githubusercontent.com/0f789abcef232035c05e0d2e82afa3cc3be46485/687474703a2f2f7777772e6e746f702e6f72672f77702d636f6e74656e742f75706c6f6164732f323031312f30382f6e746f706e672d69636f6e2d313530783135302e706e67
|
[ntopng_logo]: https://camo.githubusercontent.com/0f789abcef232035c05e0d2e82afa3cc3be46485/687474703a2f2f7777772e6e746f702e6f72672f77702d636f6e74656e742f75706c6f6164732f323031312f30382f6e746f706e672d69636f6e2d313530783135302e706e67
|
||||||
|
|
||||||
[ntop_logo]: https://camo.githubusercontent.com/58e2a1ecfff62d8ecc9d74633bd1013f26e06cba/687474703a2f2f7777772e6e746f702e6f72672f77702d636f6e74656e742f75706c6f6164732f323031352f30352f6e746f702e706e67
|
[ntop_logo]: https://camo.githubusercontent.com/58e2a1ecfff62d8ecc9d74633bd1013f26e06cba/687474703a2f2f7777772e6e746f702e6f72672f77702d636f6e74656e742f75706c6f6164732f323031352f30352f6e746f702e706e67
|
||||||
|
|||||||
+1
-1
@@ -6,7 +6,7 @@ AM_CFLAGS = @PTHREAD_CFLAGS@
|
|||||||
LDADD = $(top_builddir)/src/lib/libndpi.la @JSON_C_LIB@ @PTHREAD_LIBS@ @PCAP_LIB@
|
LDADD = $(top_builddir)/src/lib/libndpi.la @JSON_C_LIB@ @PTHREAD_LIBS@ @PCAP_LIB@
|
||||||
AM_LDFLAGS = -static
|
AM_LDFLAGS = -static
|
||||||
|
|
||||||
ndpiReader_SOURCES = ndpiReader.c ndpi_util.c
|
ndpiReader_SOURCES = ndpiReader.c ndpi_util.c ndpi_util.h
|
||||||
|
|
||||||
ndpiReader.o: ndpiReader.c
|
ndpiReader.o: ndpiReader.c
|
||||||
|
|
||||||
|
|||||||
@@ -160,8 +160,11 @@ libndpi_la_SOURCES = ndpi_content_match.c.inc \
|
|||||||
protocols/zeromq.c \
|
protocols/zeromq.c \
|
||||||
third_party/include/actypes.h \
|
third_party/include/actypes.h \
|
||||||
third_party/include/ahocorasick.h \
|
third_party/include/ahocorasick.h \
|
||||||
|
third_party/include/ndpi_patricia.h \
|
||||||
third_party/include/node.h \
|
third_party/include/node.h \
|
||||||
third_party/include/sort.h \
|
third_party/include/sort.h \
|
||||||
third_party/src/ahocorasick.c \
|
third_party/src/ahocorasick.c \
|
||||||
third_party/src/node.c \
|
third_party/src/node.c \
|
||||||
third_party/src/sort.c
|
third_party/src/sort.c
|
||||||
|
|
||||||
|
EXTRA_DIST = third_party/src/ndpi_patricia.c
|
||||||
|
|||||||
@@ -1 +1,3 @@
|
|||||||
TESTS = do.sh
|
TESTS = do.sh
|
||||||
|
|
||||||
|
EXTRA_DIST = do.sh pcap result
|
||||||
|
|||||||
Reference in New Issue
Block a user