From 7b8f4fc15fd52285451892bd96d1f558d85c4fd4 Mon Sep 17 00:00:00 2001 From: Peter van Dijk Date: Mon, 8 Apr 2013 13:43:21 +0000 Subject: [PATCH] some testscript cleanups; add travis-ci configuration. Thanks Kees&Ruben. Closes #730 git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@3151 d19b8d6e-7fed-0310-83ef-9ca221ded41b --- .travis.yml | 35 ++++++++++++++++++++++ regression-tests/00dnssec-grabkeys/command | 2 +- regression-tests/cleandig | 4 +-- regression-tests/start-test-stop | 10 +++++++ 4 files changed, 48 insertions(+), 3 deletions(-) create mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000000..ec9beafe71 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,35 @@ +language: cpp +compiler: + - gcc +before_script: + - sudo apt-get update -qq + - sudo apt-get install -qq libboost-all-dev libtolua-dev bc libcdb-dev libnet-dns-perl ldnsutils dnsutils +script: + - ./bootstrap + - ./configure --with-modules='gmysql' --with-sqlite3 + - make -j 4 + - cd regression-tests + - touch verify-dnssec-zone/skip + - ./start-test-stop 5300 bind + - ./start-test-stop 5300 bind-presigned + - ./start-test-stop 5300 bind-dnssec + - ./start-test-stop 5300 bind-dnssec-presigned + - ./start-test-stop 5300 bind-dnssec-nsec3 + - ./start-test-stop 5300 bind-dnssec-nsec3-presigned + - ./start-test-stop 5300 bind-dnssec-nsec3-optout + - ./start-test-stop 5300 bind-dnssec-nsec3-optout-presigned + - ./start-test-stop 5300 gmysql-nodnssec + - ./start-test-stop 5300 gmysql-nodnssec-presigned + - ./start-test-stop 5300 gmysql + - ./start-test-stop 5300 gmysql-presigned + - ./start-test-stop 5300 gmysql-nsec3 + - ./start-test-stop 5300 gmysql-nsec3-presigned + - ./start-test-stop 5300 gmysql-nsec3-optout + - ./start-test-stop 5300 gmysql-nsec3-optout-presigned + - ./start-test-stop 5300 gmysql-nsec3-narrow +notifications: + irc: + channels: + - "irc.oftc.net#powerdns-dev" + use_notice: true + skip_join: true diff --git a/regression-tests/00dnssec-grabkeys/command b/regression-tests/00dnssec-grabkeys/command index 8acf4a569e..414b72d3f7 100755 --- a/regression-tests/00dnssec-grabkeys/command +++ b/regression-tests/00dnssec-grabkeys/command @@ -1,4 +1,4 @@ -#!/bin/sh -e +#!/bin/bash -e set pipefail rm -f trustedkeys rm -f unbound-host.conf diff --git a/regression-tests/cleandig b/regression-tests/cleandig index 91e8d996b4..9d0bd09d78 100755 --- a/regression-tests/cleandig +++ b/regression-tests/cleandig @@ -1,5 +1,5 @@ #!/bin/sh -if [ ! -f ${testsdir}/${testname}/use.drill ] +if [ ! -e ${testsdir}/${testname}/use.drill ] then ../pdns/sdig $nameserver $port $1 $2 $3 | LC_ALL=C sort fi @@ -18,7 +18,7 @@ then unbound-host -v -C unbound-host.conf -t $2 $1 > ${testsdir}/${testname}/unbound-host.out 2>&1 echo RETVAL: $? >> ${testsdir}/${testname}/unbound-host.out fi -if [ -f ${testsdir}/${testname}/use.drill ] +if [ -e ${testsdir}/${testname}/use.drill ] then cat ${testsdir}/${testname}/drill.out fi diff --git a/regression-tests/start-test-stop b/regression-tests/start-test-stop index 8d22ec9e18..af74ec6113 100755 --- a/regression-tests/start-test-stop +++ b/regression-tests/start-test-stop @@ -593,3 +593,13 @@ then fi kill $(cat pdns*.pid) rm pdns*.pid + +if [ -s "./failed_tests" ] +then + for t in `cat failed_tests` + do + echo $t + cat $t/diff + done + exit 1 +fi -- 2.47.3