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
=== modified file 'debian/changelog'
--- debian/changelog 2011-08-11 00:46:29 +0000
+++ debian/changelog 2013-03-01 10:50:32 +0000
@@ -1,3 +1,9 @@
1libfann (2.1.0~beta~dfsg-8ubuntu1) raring; urgency=low
2
3 * Add simple autopkgtest to package.
4
5 -- Vibhav Pant <vibhav@ubuntu.com> Fri, 01 Mar 2013 15:40:58 +0530
6
1libfann (2.1.0~beta~dfsg-8) unstable; urgency=low7libfann (2.1.0~beta~dfsg-8) unstable; urgency=low
28
3 * debian/control:9 * debian/control:
410
=== modified file 'debian/control'
--- debian/control 2011-08-11 00:46:29 +0000
+++ debian/control 2013-03-01 10:50:32 +0000
@@ -1,7 +1,8 @@
1Source: libfann1Source: libfann
2Section: libs2Section: libs
3Priority: optional3Priority: optional
4Maintainer: Christian Kastner <debian@kvr.at>4Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
5XSBC-Original-Maintainer: Christian Kastner <debian@kvr.at>
5DM-Upload-Allowed: yes6DM-Upload-Allowed: yes
6Build-Depends:7Build-Depends:
7 debhelper (>= 7.0.50~),8 debhelper (>= 7.0.50~),
@@ -10,6 +11,7 @@
10 python-support (>= 0.90),11 python-support (>= 0.90),
11 swig (>= 2.0.4-2),12 swig (>= 2.0.4-2),
12 naturaldocs13 naturaldocs
14XS-Testsuite: autopkgtest
13Standards-Version: 3.9.215Standards-Version: 3.9.2
14Homepage: http://leenissen.dk/fann/wp/16Homepage: http://leenissen.dk/fann/wp/
15Vcs-Git: git://scm.kvr.at/git/pkg-libfann.git17Vcs-Git: git://scm.kvr.at/git/pkg-libfann.git
1618
=== added directory 'debian/tests'
=== added file 'debian/tests/build'
--- debian/tests/build 1970-01-01 00:00:00 +0000
+++ debian/tests/build 2013-03-01 10:50:32 +0000
@@ -0,0 +1,35 @@
1#!/bin/sh
2# autopkgtest check: Build and run a program against libfann, to verify that the
3# headers are installed correctly
4# Source taken from http://leenissen.dk/fann/wp/help/getting-started/
5# (C) 2013 Vibhav Pant
6# Author: Vibhav Pant <martin.pitt@ubuntu.com>
7
8set -e
9
10WORKDIR=$(mktemp -d)
11trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
12cd $WORKDIR
13cat <<EOF > libfann_test.c
14#include <fann.h>
15
16int main(void)
17{
18 const unsigned int num_input = 2;
19 const unsigned int num_output = 1;
20 const unsigned int num_layers = 3;
21 const unsigned int num_neurons_hidden = 3;
22
23 struct fann *ann = fann_create_standard(num_layers, num_input,
24 num_neurons_hidden, num_output);
25 fann_set_activation_function_hidden(ann, FANN_SIGMOID_SYMMETRIC);
26 fann_set_activation_function_output(ann, FANN_SIGMOID_SYMMETRIC);
27 fann_destroy(ann);
28 return 0;
29}
30EOF
31gcc -o libfann_test libfann_test.c -lfann -Wall -Werror
32echo "build: OK"
33[ -x libfann_test ]
34./libfann_test
35echo "run: OK"
036
=== added file 'debian/tests/control'
--- debian/tests/control 1970-01-01 00:00:00 +0000
+++ debian/tests/control 2013-03-01 10:50:32 +0000
@@ -0,0 +1,2 @@
1Tests: build
2Depends: libfann-dev, build-essential
0\ No newline at end of file3\ No newline at end of file

Subscribers

People subscribed via source and target branches

to all changes: