[Debian-astro-commits] [xpa] 02/05: Add build time and CI tests
Ole Streicher
olebole at moszumanska.debian.org
Tue Apr 26 12:59:30 UTC 2016
This is an automated email from the git hooks/post-receive script.
olebole pushed a commit to branch debian
in repository xpa.
commit d3e7350bd21aae0e503b0ae5f93410fe2d60bf4c
Author: Ole Streicher <olebole at debian.org>
Date: Tue Apr 26 14:22:27 2016 +0200
Add build time and CI tests
---
debian/changelog | 3 +++
debian/rules | 5 ++++-
debian/tests/control | 2 ++
debian/tests/xpa-test-ci | 18 ++++++++++++++++++
debian/tests/xpa_test_build | 20 ++++++++++++++++++++
5 files changed, 47 insertions(+), 1 deletion(-)
diff --git a/debian/changelog b/debian/changelog
index 7d5324f..0bec948 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,9 @@ xpa (2.1.17-2) UNRELEASED; urgency=low
[ Alexis Bienvenüe ]
* Build libs with fixed order *.o files. Closes: #822561
+ [ Ole Streicher ]
+ * Add build time and CI tests
+
-- Ole Streicher <olebole at debian.org> Tue, 26 Apr 2016 09:34:36 +0200
xpa (2.1.17-1) unstable; urgency=low
diff --git a/debian/rules b/debian/rules
index e926634..272d9df 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,7 +10,10 @@ override_dh_auto_configure:
dh_auto_configure -- --enable-shared=link --with-threads --with-tclconfig=/usr/lib --with-tcl=/usr/include/tcl
override_dh_auto_build:
- dh_auto_build -- all tclxpa
+ dh_auto_build -- All tclxpa
+
+override_dh_auto_test:
+ debian/tests/xpa_test_build
override_dh_installchangelogs:
dh_installchangelogs doc/changelog.html
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..469ba96
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: xpa-test-ci
+Depends: libxpa-dev
diff --git a/debian/tests/xpa-test-ci b/debian/tests/xpa-test-ci
new file mode 100755
index 0000000..374fba0
--- /dev/null
+++ b/debian/tests/xpa-test-ci
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+set -e
+
+SRC=`pwd`
+cd $ADTTMP
+gcc -I$SRC $SRC/stest.c -lxpa -ostest
+./stest > stest.log 2>&1 &
+sleep 0.2
+FILE=$SRC/stest.c
+cat $FILE | xpaset xpa
+
+xpaget xpa buf | diff -uw $FILE -
+
+xpaget xpa Exit
+
+cat stest.log
+
diff --git a/debian/tests/xpa_test_build b/debian/tests/xpa_test_build
new file mode 100755
index 0000000..659eebd
--- /dev/null
+++ b/debian/tests/xpa_test_build
@@ -0,0 +1,20 @@
+#!/bin/sh
+
+set -e
+
+PATH=`pwd`:$PATH
+LD_LIBRARY_PATH=`pwd`:$LD_LIBRARY_PATH
+export LD_LIBRARY_PATH PATH
+
+stest > stest.log 2>&1 &
+sleep 0.2
+FILE=tcp.h
+cat $FILE | xpaset xpa
+
+xpaget xpa buf | diff -uw $FILE -
+
+xpaget xpa Exit
+
+cat stest.log
+rm -f stest.log
+
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-astro/packages/xpa.git
More information about the Debian-astro-commits
mailing list