[admesh] 05/05: Update regression tests.

Anton Gladky gladk at moszumanska.debian.org
Thu Aug 13 18:38:31 UTC 2015


This is an automated email from the git hooks/post-receive script.

gladk pushed a commit to branch master
in repository admesh.

commit b86a4928fc9d8367a831e0ca29b9deb2fd6a380c
Author: Anton Gladky <gladk at debian.org>
Date:   Thu Aug 13 20:32:31 2015 +0200

    Update regression tests.
---
 debian/patches/add-regression-test                 | 68 ----------------------
 debian/patches/series                              |  1 -
 debian/regression_test/regression_test             | 14 +++++
 .../regression_test/regression_test_output_etalon  | 36 ++++++++++++
 debian/rules                                       |  3 +-
 debian/tests/build                                 |  2 +-
 debian/tests/regression                            |  2 +-
 7 files changed, 53 insertions(+), 73 deletions(-)

diff --git a/debian/patches/add-regression-test b/debian/patches/add-regression-test
deleted file mode 100644
index c008335..0000000
--- a/debian/patches/add-regression-test
+++ /dev/null
@@ -1,68 +0,0 @@
-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
-
-Index: admesh/regression_test/regression_test_output_etalon
-===================================================================
---- /dev/null
-+++ admesh/regression_test/regression_test_output_etalon
-@@ -0,0 +1,36 @@
-+ADMesh version 0.98.1, 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.98.1 ================
-+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
-Index: admesh/regression_test/regression_test
-===================================================================
---- /dev/null
-+++ admesh/regression_test/regression_test
-@@ -0,0 +1,14 @@
-+#!/bin/dash
-+export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./.libs/
-+
-+.libs/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 FAILED!'
-+	exit 1
-+else
-+	rm regression_test_output_current
-+  echo "Regression test PASSED!"
-+	exit 0
-+fi
diff --git a/debian/patches/series b/debian/patches/series
deleted file mode 100644
index 00871b2..0000000
--- a/debian/patches/series
+++ /dev/null
@@ -1 +0,0 @@
-add-regression-test
diff --git a/debian/regression_test/regression_test b/debian/regression_test/regression_test
new file mode 100755
index 0000000..3858602
--- /dev/null
+++ b/debian/regression_test/regression_test
@@ -0,0 +1,14 @@
+#!/bin/sh
+export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:./.libs/
+
+.libs/admesh block.stl > regression_test_output_current
+DIFFRESULT=`diff regression_test_output_current debian/regression_test/regression_test_output_etalon`
+if [ "$DIFFRESULT" != "" ]; then
+  rm regression_test_output_current
+	echo 'Regression test FAILED!'
+	exit 1
+else
+	rm regression_test_output_current
+  echo "Regression test PASSED!"
+	exit 0
+fi
diff --git a/debian/regression_test/regression_test_output_etalon b/debian/regression_test/regression_test_output_etalon
new file mode 100644
index 0000000..478cc59
--- /dev/null
+++ b/debian/regression_test/regression_test_output_etalon
@@ -0,0 +1,36 @@
+ADMesh version 0.98.2, 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.98.2 ================
+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
diff --git a/debian/rules b/debian/rules
index 707f9b7..37a9c8e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,8 +4,7 @@
 	dh $@ --parallel --with autoreconf
 
 override_dh_auto_test:
-	chmod +x ./regression_test/regression_test;
-	./regression_test/regression_test
+	./debian/regression_test/regression_test
 
 override_dh_strip:
 	dh_strip --dbg-package=libadmesh1-dbg
diff --git a/debian/tests/build b/debian/tests/build
index 0e2f7d4..19790d5 100755
--- a/debian/tests/build
+++ b/debian/tests/build
@@ -1,5 +1,5 @@
 #!/bin/sh
-# autopkgtest check: Build and run a program against libmedc
+# autopkgtest check: Build and run a program
 # (C) 2014 Anton Gladky
 # Author: Anton Gladky <gladk at debian.org>
 
diff --git a/debian/tests/regression b/debian/tests/regression
index 4146b2a..938bde5 100755
--- a/debian/tests/regression
+++ b/debian/tests/regression
@@ -1,5 +1,5 @@
 #!/bin/sh
-# autopkgtest check: Build and run a program against libmedc
+# autopkgtest check: Build and run a program
 # (C) 2014 Anton Gladky
 # Author: Anton Gladky <gladk at debian.org>
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/admesh.git



More information about the debian-science-commits mailing list