]> git.ipfire.org Git - thirdparty/ldns.git/commitdiff
Simplify test results reporting
authorWillem Toorop <willem@nlnetlabs.nl>
Mon, 24 Jun 2019 13:19:31 +0000 (15:19 +0200)
committerWillem Toorop <willem@nlnetlabs.nl>
Mon, 24 Jun 2019 13:19:31 +0000 (15:19 +0200)
.travis.yml
test/test_ci.sh

index 0080c0d2ac9cc46177193628c8b3344b01b98166..380857ec57fad160aa846b078694c7994fa58599 100644 (file)
@@ -14,15 +14,15 @@ matrix:
     - os: linux
       compiler: gcc
       env: VALGRIND=true  ANALYSIS=true  COVERAGE=true  DOXYGEN=true
-    - os: linux
-      compiler: clang
-      env: VALGRIND=true  ANALYSIS=true  COVERAGE=true  DOXYGEN=true
-    - os: osx
-      compiler: gcc
-      env: VALGRIND=true  ANALYSIS=true  COVERAGE=true  DOXYGEN=true
-    - os: osx
-      compiler: clang
-      env: VALGRIND=true  ANALYSIS=true  COVERAGE=true  DOXYGEN=true
+#    - os: linux
+#      compiler: clang
+#      env: VALGRIND=true  ANALYSIS=true  COVERAGE=true  DOXYGEN=true
+#    - os: osx
+#      compiler: gcc
+#      env: VALGRIND=true  ANALYSIS=true  COVERAGE=true  DOXYGEN=true
+#    - os: osx
+#      compiler: clang
+#      env: VALGRIND=true  ANALYSIS=true  COVERAGE=true  DOXYGEN=true
 script:
   - test/test_ci.sh
 
index 1f80dc93baf351b269281e0c203b96033fa8dfc5..774fce60c0d7d8dd0aeb613387ba3bc22fff3c1a 100755 (executable)
@@ -24,7 +24,7 @@ then
         elif [ -x $HOME/local/bin/tpkg ]; then TPKG=$HOME/local/bin/tpkg
         elif [ -x /home/tpkg/bin/tpkg ]        ; then TPKG=/home/tpkg/bin/tpkg
         elif [ -x ../tpkg/tpkg ]       ; then TPKG=../tpkg/tpkg
-        elif [ -x test/tpkg/tpkg ]     ; then TPKG=test/tpkg/tpkg
+        elif [ -x test/tpkg/tpkg ]     ; then TPKG=`pwd`/test/tpkg/tpkg
         else
                 echo Did not find tpkg program!
                 exit -1
@@ -53,59 +53,6 @@ do
        $TPKG -b $BUILD_DIR/test -a $BUILD_DIR exe $TESTFN
 done
 
-# -----------------------------------------------------------------------------
-# ----  Testing part
-#
-( cd test; $TPKG -q -n `ls result.*|wc -l` report >/dev/null )
+cd test
+$TPKG r
 
-# -----------------------------------------------------------------------------
-# ----  Reusable reporting part
-#
-if test "$?" -eq "0"; then STATUS="pass"; else STATUS="FAIL"; fi
-CI_ID=2
-
-REPOS=$(basename $(pwd))
-REPOS=${REPOS%.git}
-CI_URI="${CI_PROJECT_URL}/builds/${CI_BUILD_ID}"
-while [ $# -ge 1 ]
-do
-       echo "Sending mail to $1... ($# >= 1)"
-       (
-               git log -1 --format="From %H %ad%nFrom: %an <%ae>"
-               BRANCH=$(
-                       for W in $( git log -1 --format=%d | tr "()," "   " )
-                       do echo $W
-                       done | grep -v HEAD | head -1
-                       )
-               BRANCH="${BRANCH#origin/}"
-               echo "X-Git-Refname: $BRANCH"
-               if [ -z "$BRANCH" -o "$BRANCH" = "master" ]
-               then
-                       BRANCH=""
-               else
-                       BRANCH="/$BRANCH"
-               fi
-               git log -1 --format="Subject: [git: $REPOS$BRANCH][$STATUS] %s"
-               echo "To: $1"
-               echo "Date: `LC_ALL=C date '+%a, %e %b %Y %T %z (%Z)'`"
-               echo "X-Git-Repository: $REPOS"
-               git log -2 --format="X-Git-Oldrev: %H"
-               git log -1 --format="X-Git-Newrev: %H"
-               echo
-               uname -a
-               echo
-               echo "$CI_URI"
-               echo
-
-               # -------------------------------------------------------------
-               # ----  Repository specific reporting part
-               # ----
-                       ( cd test; $TPKG report )
-               # ----
-               # -------------------------------------------------------------
-
-
-       ) | sendmail $1
-       shift
-done
-test "$STATUS" = "pass"