]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
some testscript cleanups; add travis-ci configuration. Thanks Kees&Ruben. Closes...
authorPeter van Dijk <peter.van.dijk@netherlabs.nl>
Mon, 8 Apr 2013 13:43:21 +0000 (13:43 +0000)
committerPeter van Dijk <peter.van.dijk@netherlabs.nl>
Mon, 8 Apr 2013 13:43:21 +0000 (13:43 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@3151 d19b8d6e-7fed-0310-83ef-9ca221ded41b

.travis.yml [new file with mode: 0644]
regression-tests/00dnssec-grabkeys/command
regression-tests/cleandig
regression-tests/start-test-stop

diff --git a/.travis.yml b/.travis.yml
new file mode 100644 (file)
index 0000000..ec9beaf
--- /dev/null
@@ -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
index 8acf4a569e79d80407342ae173989e7e9777ea01..414b72d3f795f0c5237c9663c6bd30933612b58e 100755 (executable)
@@ -1,4 +1,4 @@
-#!/bin/sh -e
+#!/bin/bash -e
 set pipefail
 rm -f trustedkeys
 rm -f unbound-host.conf
index 91e8d996b40421713a866c8e19d901168f0fc7c2..9d0bd09d7868b5e0307033c6483fb581bb6c0104 100755 (executable)
@@ -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
index 8d22ec9e183fcbaf374149e028e62e4aa377d53d..af74ec6113b1e52059ba1f241ac5e7f9932e06f2 100755 (executable)
@@ -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