Merge lp:~vibhavp/ubuntu/raring/libfann/add-autopkgtest into lp:ubuntu/raring/libfann

Proposed by Vibhav Pant
Status: Merged
Merged at revision: 11
Proposed branch: lp:~vibhavp/ubuntu/raring/libfann/add-autopkgtest
Merge into: lp:ubuntu/raring/libfann
Diff against target: 84 lines (+46/-1)
4 files modified
debian/changelog (+6/-0)
debian/control (+3/-1)
debian/tests/build (+35/-0)
debian/tests/control (+2/-0)
To merge this branch: bzr merge lp:~vibhavp/ubuntu/raring/libfann/add-autopkgtest
Reviewer Review Type Date Requested Status
Martin Pitt Approve
Review via email: mp+151182@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Martin Pitt (pitti) wrote :

Thanks!

review: Approve
13. By Vibhav Pant

Add XS-Testsuite to debian/control

14. By Vibhav Pant

Updated maintainer field

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'debian/changelog'
2--- debian/changelog 2011-08-11 00:46:29 +0000
3+++ debian/changelog 2013-03-01 10:50:32 +0000
4@@ -1,3 +1,9 @@
5+libfann (2.1.0~beta~dfsg-8ubuntu1) raring; urgency=low
6+
7+ * Add simple autopkgtest to package.
8+
9+ -- Vibhav Pant <vibhav@ubuntu.com> Fri, 01 Mar 2013 15:40:58 +0530
10+
11 libfann (2.1.0~beta~dfsg-8) unstable; urgency=low
12
13 * debian/control:
14
15=== modified file 'debian/control'
16--- debian/control 2011-08-11 00:46:29 +0000
17+++ debian/control 2013-03-01 10:50:32 +0000
18@@ -1,7 +1,8 @@
19 Source: libfann
20 Section: libs
21 Priority: optional
22-Maintainer: Christian Kastner <debian@kvr.at>
23+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
24+XSBC-Original-Maintainer: Christian Kastner <debian@kvr.at>
25 DM-Upload-Allowed: yes
26 Build-Depends:
27 debhelper (>= 7.0.50~),
28@@ -10,6 +11,7 @@
29 python-support (>= 0.90),
30 swig (>= 2.0.4-2),
31 naturaldocs
32+XS-Testsuite: autopkgtest
33 Standards-Version: 3.9.2
34 Homepage: http://leenissen.dk/fann/wp/
35 Vcs-Git: git://scm.kvr.at/git/pkg-libfann.git
36
37=== added directory 'debian/tests'
38=== added file 'debian/tests/build'
39--- debian/tests/build 1970-01-01 00:00:00 +0000
40+++ debian/tests/build 2013-03-01 10:50:32 +0000
41@@ -0,0 +1,35 @@
42+#!/bin/sh
43+# autopkgtest check: Build and run a program against libfann, to verify that the
44+# headers are installed correctly
45+# Source taken from http://leenissen.dk/fann/wp/help/getting-started/
46+# (C) 2013 Vibhav Pant
47+# Author: Vibhav Pant <martin.pitt@ubuntu.com>
48+
49+set -e
50+
51+WORKDIR=$(mktemp -d)
52+trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
53+cd $WORKDIR
54+cat <<EOF > libfann_test.c
55+#include <fann.h>
56+
57+int main(void)
58+{
59+ const unsigned int num_input = 2;
60+ const unsigned int num_output = 1;
61+ const unsigned int num_layers = 3;
62+ const unsigned int num_neurons_hidden = 3;
63+
64+ struct fann *ann = fann_create_standard(num_layers, num_input,
65+ num_neurons_hidden, num_output);
66+ fann_set_activation_function_hidden(ann, FANN_SIGMOID_SYMMETRIC);
67+ fann_set_activation_function_output(ann, FANN_SIGMOID_SYMMETRIC);
68+ fann_destroy(ann);
69+ return 0;
70+}
71+EOF
72+gcc -o libfann_test libfann_test.c -lfann -Wall -Werror
73+echo "build: OK"
74+[ -x libfann_test ]
75+./libfann_test
76+echo "run: OK"
77
78=== added file 'debian/tests/control'
79--- debian/tests/control 1970-01-01 00:00:00 +0000
80+++ debian/tests/control 2013-03-01 10:50:32 +0000
81@@ -0,0 +1,2 @@
82+Tests: build
83+Depends: libfann-dev, build-essential
84\ No newline at end of file

Subscribers

People subscribed via source and target branches

to all changes: