[med-svn] [libdisorder] 01/01: Add test (Thanks again to Christian Seiler <christian at iwakd.de>)

Andreas Tille tille at debian.org
Tue Jun 28 06:27:03 UTC 2016


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository libdisorder.

commit b34c7ba20df779f860034d200fa766bb5c8996de
Author: Andreas Tille <tille at debian.org>
Date:   Tue Jun 28 08:26:35 2016 +0200

    Add test (Thanks again to Christian Seiler <christian at iwakd.de>)
---
 debian/patches/autoconf.patch | 50 ++++++++++++++++++++++++++-----------------
 1 file changed, 30 insertions(+), 20 deletions(-)

diff --git a/debian/patches/autoconf.patch b/debian/patches/autoconf.patch
index 95c5cf2..b8fdcc3 100644
--- a/debian/patches/autoconf.patch
+++ b/debian/patches/autoconf.patch
@@ -1,10 +1,10 @@
-Author: Andreas Tille <tille at debian.org>
-Last-Update: Wed, 22 Jun 2016 16:27:46 +0200
+Author: Christian Seiler <christian at iwakd.de>
+Last-Update: Mon, 27 Jun 2016 23:57:12 +0200
 Description: Add autoconf stuff to enable simple library creation
 
 --- /dev/null
 +++ b/Makefile.am
-@@ -0,0 +1,12 @@
+@@ -0,0 +1,16 @@
 +lib_LTLIBRARIES  = libdisorder.la
 +libdisorder_la_SOURCES = src/disorder.c
 +libdisorder_la_LDFLAGS = -version-info @LIB_VERSION@
@@ -17,9 +17,13 @@ Description: Add autoconf stuff to enable simple library creation
 +
 +include_HEADERS = include/disorder.h
 +man_MANS = man/shannon_H.3
++
++TESTS = test/gpl.sh
++TEST_EXTENSIONS = .sh
++SH_LOG_COMPILER = /bin/sh
 --- /dev/null
 +++ b/configure.ac
-@@ -0,0 +1,62 @@
+@@ -0,0 +1,47 @@
 +#                                               -*- Autoconf -*-
 +# Process this file with autoconf to produce a configure script.
 +
@@ -37,7 +41,7 @@ Description: Add autoconf stuff to enable simple library creation
 +################################################################################
 +AC_CONFIG_MACRO_DIR(config)
 +
-+AM_INIT_AUTOMAKE([1.11 foreign subdir-objects dist-zip tar-ustar filename-length-max=299])
++AM_INIT_AUTOMAKE([1.11 parallel-tests foreign subdir-objects dist-zip tar-ustar filename-length-max=299])
 +
 +LIB_VERSION=0:0
 +
@@ -53,21 +57,6 @@ Description: Add autoconf stuff to enable simple library creation
 +LT_PREREQ(2.2)
 +LT_INIT
 +
-+################################################################################
-+# calling AC_PROG_CXX resets CXXFLAGS, we use our own flags set in the
-+#	the AX_CXXFLAGS macro below.
-+# So we cache the argument to configure
-+#	here in ARG_CXX_FLAGS (so that our macro does not override them)
-+################################################################################
-+ARG_CXX_FLAGS="$CXXFLAGS"
-+AC_PROG_CXX
-+
-+#Ranlib handled by check for libtool
-+CXXFLAGS="$ARG_CXX_FLAGS"
-+AX_CXXFLAGS
-+
-+AC_SUBST(CXXFLAGS)
-+
 +CPPFLAGS="-I\$(top_srcdir) $CPPFLAGS"
 +# Checks for libraries.
 +
@@ -82,3 +71,24 @@ Description: Add autoconf stuff to enable simple library creation
 +	])
 +AC_OUTPUT
 +
+--- /dev/null
++++ b/test/gpl.sh
+@@ -0,0 +1,18 @@
++#!/bin/sh
++
++EXPECTED="tokens: 78 entropy: 4.737054 metric: 0.000259 maxent: 6.285402 ratio: 0.753660"
++ACTUAL="$(./ropy COPYING)"
++
++if [ x"$EXPECTED" = x"$ACTUAL" ] ; then
++  echo "Entropy of COPYING matches expected value."
++  exit 0
++else
++  echo "Test failure:"
++  echo "  expected output:"
++  echo -n "    "
++  echo "$EXPECTED"
++  echo "  actual output:"
++  echo -n "    "
++  echo "$ACTUAL"
++  exit 1
++fi

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/libdisorder.git



More information about the debian-med-commit mailing list