]> granicus.if.org Git - pdns/commitdiff
add recursor bulktest to travis
authorKees Monshouwer <mind04@monshouwer.org>
Sun, 8 Sep 2013 12:09:02 +0000 (14:09 +0200)
committermind04 <mind04@monshouwer.org>
Sun, 8 Sep 2013 13:01:47 +0000 (15:01 +0200)
.travis.yml
regression-tests/recursor-test

index 2fe70db531ea9a611704b8dc61b1721340743128..be75ed068dcc6db321fec555b022a47951f39165 100644 (file)
@@ -4,17 +4,21 @@ compiler:
   - clang
 before_script:
  - sudo apt-get update
- - sudo apt-get install libboost-all-dev libtolua-dev bc libcdb-dev libnet-dns-perl unbound-host ldnsutils dnsutils bind9utils libtool libcdb-dev xmlto dblatex links asciidoc ruby-json ruby-sqlite3 rubygems libcurl4-openssl-dev ruby1.9.1 socat
+ - sudo apt-get install libboost-all-dev libtolua-dev bc libcdb-dev libnet-dns-perl unbound-host ldnsutils dnsutils bind9utils libtool libcdb-dev xmlto dblatex links asciidoc ruby-json ruby-sqlite3 rubygems libcurl4-openssl-dev ruby1.9.1 socat time
  - sudo sed -i '0,/\[mysqld\]/s//[mysqld]\nskip-character-set-client-handshake/' /etc/mysql/my.cnf
  - sudo restart mysql
+ - cd regression-tests
+ - wget http://s3.amazonaws.com/alexa-static/top-1m.csv.zip
+ - unzip top-1m.csv.zip
+ - cd ..
 script:
  - ./bootstrap
- - ./configure --with-modules='gmysql gpgsql gsqlite3 mydns tinydns remote random' --enable-unit-tests --enable-remotebackend-http
+ - ./configure --with-modules='gmysql gpgsql gsqlite3 mydns tinydns remote random' --enable-unit-tests --enable-remotebackend-http --enable-tools
  - make dist
  - make -j 4
- - make check
+ - make -j 4 check
  - cd pdns
- - make pdns_recursor
+ - make -j 4 pdns_recursor
  - cd docs
  - make
  - cd ../../regression-tests
@@ -41,6 +45,7 @@ script:
  - ./start-test-stop 5300 remotebackend-pipe-dnssec
  - ./start-test-stop 5300 remotebackend-unix
  - ./start-test-stop 5300 remotebackend-unix-dnssec
+ - THRESHOLD=90 TRACE=no ./recursor-test 5300
  - cd ../regression-tests.nobackend/
  - ./runtests
  - test ! -s ./failed_tests
index 8aef753e9f52f7b155fa7f305ea291451efbec44..ddc04d02b33fd5aadbeb5c768437b515990beffc 100755 (executable)
@@ -38,8 +38,10 @@ touch failed_tests passed_tests
 if [ "$DBT_OKPERCENTAGEINT" -ge $THRESHOLD ]
 then
        echo recursor-bulktest >> passed_tests
+       RETVAL=0
 else
        echo recursor-bulktest >> failed_tests
+       RETVAL=1
 fi
 
 echo "$DBT_OKPERCENTAGE% of domains resolved" > recursor-bulktest/diff
@@ -50,3 +52,5 @@ echo "<measurement><name>% domains resolved</name><value>$DBT_OKPERCENTAGE</valu
 
 export context
 testsdir=. ./toxml
+
+exit $RETVAL