diff options
-rw-r--r-- | .travis.yml | 5 | ||||
-rw-r--r-- | CMakeLists.txt | 1 | ||||
-rw-r--r-- | daemons/mrpd/tests/simple/CMakeLists.txt | 2 | ||||
-rwxr-xr-x | travis.sh | 12 |
4 files changed, 18 insertions, 2 deletions
diff --git a/.travis.yml b/.travis.yml index abdd6e77..a536d40c 100644 --- a/.travis.yml +++ b/.travis.yml @@ -11,6 +11,7 @@ compiler: env: BUILD_KERNEL=3.13.0-36-generic install: - sudo apt-get update -qq - - sudo apt-get install -y libpcap-dev libpci-dev libsndfile1-dev libjack-dev linux-headers-3.13.0-36-generic + - sudo apt-get install -y libpcap-dev libpci-dev libsndfile1-dev libjack-dev linux-headers-3.13.0-36-generic cmake - sudo cp /usr/src/linux-headers-3.13.0-36/include/uapi/linux/ethtool.h /usr/include/linux -script: make igb && make lib && make daemons_all && make examples_all +script: ./travis.sh + diff --git a/CMakeLists.txt b/CMakeLists.txt index 8ea1c165..273cfdfc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,5 +1,6 @@ cmake_minimum_required (VERSION 2.8) project (open-avb) +enable_testing() add_subdirectory("daemons/mrpd") add_subdirectory("thirdparty/cpputest") diff --git a/daemons/mrpd/tests/simple/CMakeLists.txt b/daemons/mrpd/tests/simple/CMakeLists.txt index e82fd531..8d25490b 100644 --- a/daemons/mrpd/tests/simple/CMakeLists.txt +++ b/daemons/mrpd/tests/simple/CMakeLists.txt @@ -30,3 +30,5 @@ elseif(WIN32) add_executable (mrpd_simple_test ${MRPD_SRC} ${SRC_DIR}/que.c) target_link_libraries(mrpd_simple_test wpcap Iphlpapi Ws2_32 CppUTest CppUTestExt) endif() + +add_test( test_mrpd mrpd_simple_test ) diff --git a/travis.sh b/travis.sh new file mode 100755 index 00000000..d76979fb --- /dev/null +++ b/travis.sh @@ -0,0 +1,12 @@ +#!/bin/bash +set -ev +make igb +make lib +make daemons_all +make examples_all +mkdir build +cd build +cmake .. -G "Unix Makefiles" +make +make test + |