[med-svn] r22566 - in trunk/packages/rostlab/reprof/trunk/debian: . tests
Tatiana Malygina
latticetower-guest at moszumanska.debian.org
Sat Jul 16 21:09:26 UTC 2016
Author: latticetower-guest
Date: 2016-07-16 21:09:25 +0000 (Sat, 16 Jul 2016)
New Revision: 22566
Added:
trunk/packages/rostlab/reprof/trunk/debian/tests/test-models.t
Modified:
trunk/packages/rostlab/reprof/trunk/debian/changelog
trunk/packages/rostlab/reprof/trunk/debian/tests/control
Log:
add test to check if model files in upstream's share/ directory are compatible with libai-fann-perl package
Modified: trunk/packages/rostlab/reprof/trunk/debian/changelog
===================================================================
--- trunk/packages/rostlab/reprof/trunk/debian/changelog 2016-07-16 17:00:35 UTC (rev 22565)
+++ trunk/packages/rostlab/reprof/trunk/debian/changelog 2016-07-16 21:09:25 UTC (rev 22566)
@@ -6,6 +6,8 @@
* use explicitly `autopkgtest-pkg-test` in debian/tests/control, as described
here: https://pkg-perl.alioth.debian.org/autopkgtest.html#implementation
* add draft test for `reprof` package
+ * add test to check that all model files from upstream's share/ directory are
+ correctly loaded by latest version of `libai-fann-perl` package
-- Tatiana Malygina <merlettaia at gmail.com> Thu, 14 Jul 2016 10:18:46 +0300
Modified: trunk/packages/rostlab/reprof/trunk/debian/tests/control
===================================================================
--- trunk/packages/rostlab/reprof/trunk/debian/tests/control 2016-07-16 17:00:35 UTC (rev 22565)
+++ trunk/packages/rostlab/reprof/trunk/debian/tests/control 2016-07-16 21:09:25 UTC (rev 22566)
@@ -11,5 +11,9 @@
Test-Command: /usr/share/pkg-perl-autopkgtest/runner heavy-deps
Depends: @, pkg-perl-autopkgtest, pkg-perl-autopkgtest-heavy
+Test-Command: perl debian/tests/test-models.t
+Depends: librg-reprof-bundle-perl, libai-fann-perl
+
Tests: installation-test
-Depends: @
+Depends: @, libai-fann-perl
+Restrictions: allow-stderr
Added: trunk/packages/rostlab/reprof/trunk/debian/tests/test-models.t
===================================================================
--- trunk/packages/rostlab/reprof/trunk/debian/tests/test-models.t (rev 0)
+++ trunk/packages/rostlab/reprof/trunk/debian/tests/test-models.t 2016-07-16 21:09:25 UTC (rev 22566)
@@ -0,0 +1,17 @@
+#!/usr/bin/perl
+# This test simply checks that all model files from upstream's share/
+# directory are correctly loaded by latest version of libai-fann-perl
+use strict;
+use warnings;
+
+use Test::More tests => 14;
+
+BEGIN { use_ok('AI::FANN') };
+
+foreach (("a", "b", "bb", "bu", "fa", "fb", "fbb", "fbu", "fub", "fuu", "u",
+ "ub", "uu")) {
+ my $filename = "share/".$_.".model";
+ print $filename."\n";
+ ok(defined AI::FANN->new_from_file($filename),
+ "Load ".$filename." to libai-fann-perl");
+}
More information about the debian-med-commit
mailing list