From 182867a07106b180e2b57f6aec6382a24bcdd531 Mon Sep 17 00:00:00 2001 From: Toni Uhlig Date: Wed, 12 May 2021 14:40:36 +0200 Subject: Reduced superfluous Travis-CI yaml content. Signed-off-by: Toni Uhlig --- .travis.yml | 14 ++++++++------ README.md | 4 ++-- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index ef4490d1b..df3300587 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,11 +3,13 @@ before_install: - sudo apt-get -qq update - sudo apt-get install -y build-essential make binutils gcc autoconf automake libtool pkg-config git libpcap-dev libgcrypt-dev libgpg-error-dev libjson-c-dev netcat-openbsd python3 python3-jsonschema script: -- git submodule update --init # static linked build -- mkdir build-cmake-submodule && cd build-cmake-submodule && cmake .. -DBUILD_EXAMPLES=ON -DBUILD_NDPI=ON -DENABLE_SANITIZER=ON && make && cd .. +- mkdir build-cmake-submodule && cd build-cmake-submodule && + cmake .. -DBUILD_EXAMPLES=ON -DBUILD_NDPI=ON -DENABLE_SANITIZER=ON && make && cd .. +- ./test/run_tests.sh ./libnDPI ./build-cmake-submodule/nDPId-test # pkg-config dynamic linked build -- PKG_CONFIG_PATH="$(realpath ./build-cmake-submodule/libnDPI/lib/pkgconfig)" cmake . -DBUILD_EXAMPLES=ON -DENABLE_SANITIZER=ON -DENABLE_MEMORY_PROFILING=ON && make -- ./nDPId-test || test $? -eq 1 -- ./nDPId -h || test $? -eq 1 -- ./test/run_tests.sh +- mkdir build && cd build && + PKG_CONFIG_PATH="$(realpath ../build-cmake-submodule/libnDPI/lib/pkgconfig)" + cmake .. -DBUILD_EXAMPLES=ON -DENABLE_SANITIZER=ON -DENABLE_MEMORY_PROFILING=ON && make && cd .. +- ./build/nDPId-test || test $? -eq 1 +- ./build/nDPId -h || test $? -eq 1 diff --git a/README.md b/README.md index d12675f72..86bd25706 100644 --- a/README.md +++ b/README.md @@ -140,11 +140,11 @@ make nDPId-test test Alternatively you can run some integration tests manually: -`./test/run_tests.sh /path/to/libnDPI/root/directory` +`./test/run_tests.sh [/path/to/libnDPI/root/directory] [/path/to/nDPId-test]` e.g.: -`./test/run_tests.sh ${HOME}/git/nDPI` +`./test/run_tests.sh [${HOME}/git/nDPI] [${HOME}/git/nDPId/build/nDPId-test]` Remember that all test results are tied to a specific libnDPI commit hash as part of the `git submodule`. Using `test/run_tests.s` for other commit hashes -- cgit v1.2.3