Add testing infrastructure.
authorMark Wooding <mdw@distorted.org.uk>
Mon, 8 Dec 2008 12:10:39 +0000 (12:10 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Mon, 8 Dec 2008 20:11:32 +0000 (20:11 +0000)
.links
Makefile.am
configure.ac
debian/rules
t/.gitignore [new file with mode: 0644]
t/Makefile.am [new file with mode: 0644]
t/atlocal.in [new file with mode: 0644]

diff --git a/.links b/.links
index dd8b261..2ff0b6a 100644 (file)
--- a/.links
+++ b/.links
@@ -1,2 +1,4 @@
 COPYING
 config/confsubst
+t/autotest.am
+t/testsuite.at
index 53779bc..2141215 100644 (file)
@@ -53,6 +53,9 @@ if HAVE_PYGTK
 SUBDIRS                        += mon
 endif
 
+## Testing.
+SUBDIRS                        += t
+
 ###--------------------------------------------------------------------------
 ### The pkg-config file.
 
index 40fa582..58ee877 100644 (file)
@@ -38,6 +38,8 @@ AX_CFLAGS_WARN_ALL
 AC_CANONICAL_HOST
 AM_PROG_LIBTOOL
 
+AC_CHECK_PROGS([AUTOM4TE], [autom4te])
+
 dnl--------------------------------------------------------------------------
 dnl C programming environment.
 
@@ -283,6 +285,7 @@ dnl--------------------------------------------------------------------------
 dnl Produce output.
 
 AC_CONFIG_HEADER([config/config.h])
+AC_CONFIG_TESTDIR([t])
 
 AC_CONFIG_FILES(
   [Makefile]
@@ -294,7 +297,8 @@ AC_CONFIG_FILES(
   [wireshark/Makefile]
   [init/Makefile]
   [keys/Makefile]
-  [mon/Makefile])
+  [mon/Makefile]
+  [t/Makefile t/atlocal])
 AC_OUTPUT
 
 dnl ----- That's all, folks -------------------------------------------------
index e48ae07..6df30ce 100755 (executable)
@@ -9,6 +9,7 @@ include $(CDBS)/class/autotools.mk
 ### General settings.
 
 DEB_BUILDDIR = $(CURDIR)/build
+DEB_MAKE_CHECK_TARGET = check
 
 ###--------------------------------------------------------------------------
 ### Correct configuration.
diff --git a/t/.gitignore b/t/.gitignore
new file mode 100644 (file)
index 0000000..8392db0
--- /dev/null
@@ -0,0 +1,5 @@
+autotest.am
+package.m4
+testsuite.at
+testsuite
+tests.m4
diff --git a/t/Makefile.am b/t/Makefile.am
new file mode 100644 (file)
index 0000000..0266547
--- /dev/null
@@ -0,0 +1,33 @@
+### -*-makefile-*-
+###
+### Build script for test suite
+###
+### (c) 2008 Straylight/Edgeware
+###
+
+###----- Licensing notice ---------------------------------------------------
+###
+### This file is part of Trivial IP Encryption (TrIPE).
+###
+### TrIPE is free software; you can redistribute it and/or modify
+### it under the terms of the GNU General Public License as published by
+### the Free Software Foundation; either version 2 of the License, or
+### (at your option) any later version.
+###
+### TrIPE is distributed in the hope that it will be useful,
+### but WITHOUT ANY WARRANTY; without even the implied warranty of
+### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+### GNU General Public License for more details.
+###
+### You should have received a copy of the GNU General Public License
+### along with TrIPE; if not, write to the Free Software Foundation,
+### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+include autotest.am
+
+autotest_TESTS          =
+
+###--------------------------------------------------------------------------
+### Test directories.
+
+###----- That's all, folks --------------------------------------------------
diff --git a/t/atlocal.in b/t/atlocal.in
new file mode 100644 (file)
index 0000000..c5a355f
--- /dev/null
@@ -0,0 +1,29 @@
+### -*-sh-*-
+###
+### Configuration variables interesting to the test suite
+###
+### (c) 2008 Straylight/Edgeware
+###
+
+###----- Licensing notice ---------------------------------------------------
+###
+### This file is part of Trivial IP Encryption (TrIPE).
+###
+### TrIPE is free software; you can redistribute it and/or modify
+### it under the terms of the GNU General Public License as published by
+### the Free Software Foundation; either version 2 of the License, or
+### (at your option) any later version.
+###
+### TrIPE is distributed in the hope that it will be useful,
+### but WITHOUT ANY WARRANTY; without even the implied warranty of
+### MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+### GNU General Public License for more details.
+###
+### You should have received a copy of the GNU General Public License
+### along with TrIPE; if not, write to the Free Software Foundation,
+### Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+
+###--------------------------------------------------------------------------
+### Configuration snippets.
+
+###----- That's all, folks --------------------------------------------------