diff options
author | Michael Richardson <mcr@sandelman.ca> | 2012-10-14 09:15:09 -0700 |
---|---|---|
committer | Michael Richardson <mcr@sandelman.ca> | 2012-10-14 09:15:09 -0700 |
commit | 0199f50d39f9e027c6c537a942c8d4ed1c734c9c (patch) | |
tree | e6d70f695092f763a6f9550eb0e177dcb66941f9 | |
parent | 30006539764c8b2738675b8eadd2a40cb522d297 (diff) | |
parent | 0c3854e58ed4a3e9d71b77ecfb24d52daeb53be7 (diff) | |
download | tcpdump-0199f50d39f9e027c6c537a942c8d4ed1c734c9c.tar.gz |
Merge pull request #32 from msabramo/travis
Add support for using Travis CI for testing
-rw-r--r-- | .travis.yml | 13 | ||||
-rwxr-xr-x | tests/TESTrun.sh | 8 |
2 files changed, 21 insertions, 0 deletions
diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 00000000..28e4b8f1 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,13 @@ +language: c + +before_script: + - sudo apt-get install libpcap-dev libssl-dev libssl0.9.8 libssl1.0.0 + # - find /lib /usr/lib -name 'libcrypto.*' + # - sudo ln -s i386-linux-gnu/libcrypto.so.0.9.8 /usr/lib/libcrypto.so + +script: + - curl -sk http://patch-tracker.debian.org/patch/series/dl/tcpdump/4.3.0-1/40_openssl.diff | patch -p1 # Patch OpenSSL detection to be multiarch-aware + - autoconf + - ./configure # --with-crypto=/usr --with-libdir=/usr/lib/i386-linux-gnu + - make + - make check diff --git a/tests/TESTrun.sh b/tests/TESTrun.sh index dfcc3307..d1baaa7b 100755 --- a/tests/TESTrun.sh +++ b/tests/TESTrun.sh @@ -4,6 +4,7 @@ mkdir -p NEW mkdir -p DIFF passed=0 failed=0 +cat /dev/null > failure-outputs.txt # first run any specific tests. for i in *.sh @@ -42,6 +43,10 @@ do echo $name: failed. failed=`expr $failed + 1` echo $failed >.failed + echo "Failed test: $name" >> failure-outputs.txt + echo >> failure-outputs.txt + cat DIFF/$output.diff >> failure-outputs.txt + echo >> failure-outputs.txt fi done @@ -56,6 +61,9 @@ printf "%4u tests failed\n" $failed printf "%4u tests passed\n" $passed echo echo +cat failure-outputs.txt +echo +echo exit $failed |