[SCM] admesh - a tool for processing triangulated solid meshes branch, master, updated. upstream/0.95-2-g564fd37

Anton Gladky gladky.anton at gmail.com
Wed Feb 9 20:23:12 UTC 2011


The following commit has been merged in the master branch:
commit 564fd378fd3b10eddfe18d76ab83a2e4a35f3643
Author: Anton Gladky <gladky.anton at gmail.com>
Date:   Wed Feb 9 21:20:06 2011 +0100

    1. Changed debian/control file due to Debian Science Policy
    2. Added regression test to check admesh functionaluty after building

diff --git a/debian/changelog b/debian/changelog
index eac92d3..1708ccb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,11 @@
+admesh (0.95-10) unstable; urgency=low
+
+  * Added forgotten line "Files: *" in debian/copyright
+  * Regression test is added to check admesh functionality after building
+  * debian/control is changed according to Debian Science Policy
+
+ -- Anton Gladky <gladky.anton at gmail.com>  Sat, 05 Feb 2011 15:32:16 +0100
+
 admesh (0.95-9) unstable; urgency=low
 
   * Removed debian-changes-0.95-8 patch
diff --git a/debian/control b/debian/control
index 80a7ac9..32dd773 100644
--- a/debian/control
+++ b/debian/control
@@ -1,10 +1,14 @@
 Source: admesh
-Section: math
-Priority: optional
-Maintainer: Anton Gladky <gladky.anton at gmail.com>
+Section: science
+Priority: extra
+Maintainer: Debian Science Maintainers <debian-science-maintainers at lists.alioth.debian.org>
+Uploaders: Anton Gladky <gladky.anton at gmail.com>
 Build-Depends: debhelper (>= 7.0.50~)
 Standards-Version: 3.9.1
 Homepage: http://www.varlog.com/products/admesh/
+DM-Upload-Allowed: yes
+Vcs-Git: git://git.debian.org/git/debian-science/packages/admesh.git
+Vcs-Browser: http://git.debian.org/?p=debian-science/packages/admesh.git
 
 Package: admesh
 Architecture: any
diff --git a/debian/patches/add-regression-test b/debian/patches/add-regression-test
new file mode 100644
index 0000000..cf6a4fd
--- /dev/null
+++ b/debian/patches/add-regression-test
@@ -0,0 +1,61 @@
+Description: This patch adds regression tests to check the
+ admesh functionality after building. It generates with newly
+ created admesh-binary some files and compares it with previously
+ genereted ones. If files are not identical, build-process
+ terminates with an error.
+Author: Anton Gladky <gladky.anton at gmail.com>
+Last-Update: 2011-02-06
+
+--- /dev/null
++++ b/regression_test/regression_test_output_etalon
+@@ -0,0 +1,36 @@
++ADMesh version 0.95, Copyright (C) 1995, 1996 Anthony D. Martin
++ADMesh comes with NO WARRANTY.  This is free software, and you are welcome to
++redistribute it under certain conditions.  See the file COPYING for details.
++Opening block.stl
++Checking exact...
++All facets connected.  No nearby check necessary.
++No unconnected need to be removed.
++No holes need to be filled.
++Checking normal directions...
++Checking normal values...
++Calculating volume...
++Verifying neighbors...
++
++================= Results produced by ADMesh version 0.95 ================
++Input file         : block.stl
++File type          : ASCII STL file
++Header             : SOLID  Untitled1
++============== Size ==============
++Min X = -1.968504, Max X =  1.968504
++Min Y = -1.968504, Max Y =  1.968504
++Min Z = -1.968504, Max Z =  1.968504
++========= Facet Status ========== Original ============ Final ====
++Number of facets                 :    12                  12
++Facets with 1 disconnected edge  :     0                   0
++Facets with 2 disconnected edges :     0                   0
++Facets with 3 disconnected edges :     0                   0
++Total disconnected facets        :     0                   0
++=== Processing Statistics ===     ===== Other Statistics =====
++Number of parts       :     1        Volume   :  61.023746
++Degenerate facets     :     0
++Edges fixed           :     0
++Facets removed        :     0
++Facets added          :     0
++Facets reversed       :     0
++Backwards edges       :     0
++Normals fixed         :     0
+--- /dev/null
++++ b/regression_test/regression_test
+@@ -0,0 +1,11 @@
++#!/bin/dash
++debian/admesh/usr/bin/admesh block.stl > regression_test_output_current
++DIFFRESULT=`diff regression_test_output_current regression_test/regression_test_output_etalon`
++if [ "$DIFFRESULT" != "" ]; then
++	rm regression_test_output_current
++	echo 'Regression test is failed!'
++	exit 1
++else
++	rm regression_test_output_current
++	exit 0
++fi
diff --git a/debian/patches/series b/debian/patches/series
index 9290612..5a15e4a 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
+add-regression-test
 bug_597159_missing_fclose.diff
diff --git a/debian/rules b/debian/rules
index 0ee7b8d..415b97f 100755
--- a/debian/rules
+++ b/debian/rules
@@ -27,6 +27,8 @@ binary-arch:
 	dh_installdirs
 	dh_testroot
 	dh_install $(package) /usr/bin
+	chmod +x ./regression_test/regression_test;
+	./regression_test/regression_test
 	dh_installdocs ADMESH.DOC 
 	dh_installchangelogs
 	dh_installman debian/admesh.1

-- 
admesh - a tool for processing triangulated solid meshes



More information about the debian-science-commits mailing list