[python-admesh] 03/04: Add autopkgtest.
Anton Gladky
gladk at moszumanska.debian.org
Sat Aug 30 20:09:17 UTC 2014
This is an automated email from the git hooks/post-receive script.
gladk pushed a commit to branch master
in repository python-admesh.
commit 3505970ce4bb5031786f0f4e09119c0264237c10
Author: Anton Gladky <gladk at debian.org>
Date: Sat Aug 30 21:35:59 2014 +0200
Add autopkgtest.
---
debian/tests/admesh-python-test | 109 ++++++++++++++++++++++++++++++++++++++++
debian/tests/control | 2 +
2 files changed, 111 insertions(+)
diff --git a/debian/tests/admesh-python-test b/debian/tests/admesh-python-test
new file mode 100755
index 0000000..c6af307
--- /dev/null
+++ b/debian/tests/admesh-python-test
@@ -0,0 +1,109 @@
+#!/bin/sh
+# autopkgtest check for python-admesh
+# (C) 2014 Anton Gladky
+
+set -e
+export OMPI_MCA_orte_rsh_agent=/bin/false
+
+WORKDIR=$(mktemp -d)
+trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
+cd $WORKDIR
+
+cat <<EOF > block.stl
+SOLID Untitled1
+ FACET NORMAL 0.00000000E+00 0.00000000E+00 1.00000000E+00
+ OUTER LOOP
+ VERTEX -1.96850394E+00 1.96850394E+00 1.96850394E+00
+ VERTEX -1.96850394E+00 -1.96850394E+00 1.96850394E+00
+ VERTEX 1.96850394E+00 -1.96850394E+00 1.96850394E+00
+ ENDLOOP
+ ENDFACET
+ FACET NORMAL 0.00000000E+00 -0.00000000E+00 1.00000000E+00
+ OUTER LOOP
+ VERTEX 1.96850394E+00 -1.96850394E+00 1.96850394E+00
+ VERTEX 1.96850394E+00 1.96850394E+00 1.96850394E+00
+ VERTEX -1.96850394E+00 1.96850394E+00 1.96850394E+00
+ ENDLOOP
+ ENDFACET
+ FACET NORMAL 0.00000000E+00 -0.00000000E+00 -1.00000000E+00
+ OUTER LOOP
+ VERTEX 1.96850394E+00 1.96850394E+00 -1.96850394E+00
+ VERTEX 1.96850394E+00 -1.96850394E+00 -1.96850394E+00
+ VERTEX -1.96850394E+00 -1.96850394E+00 -1.96850394E+00
+ ENDLOOP
+ ENDFACET
+ FACET NORMAL 0.00000000E+00 0.00000000E+00 -1.00000000E+00
+ OUTER LOOP
+ VERTEX -1.96850394E+00 -1.96850394E+00 -1.96850394E+00
+ VERTEX -1.96850394E+00 1.96850394E+00 -1.96850394E+00
+ VERTEX 1.96850394E+00 1.96850394E+00 -1.96850394E+00
+ ENDLOOP
+ ENDFACET
+ FACET NORMAL -1.00000000E+00 0.00000000E+00 0.00000000E+00
+ OUTER LOOP
+ VERTEX -1.96850394E+00 1.96850394E+00 -1.96850394E+00
+ VERTEX -1.96850394E+00 -1.96850394E+00 -1.96850394E+00
+ VERTEX -1.96850394E+00 -1.96850394E+00 1.96850394E+00
+ ENDLOOP
+ ENDFACET
+ FACET NORMAL -1.00000000E+00 0.00000000E+00 0.00000000E+00
+ OUTER LOOP
+ VERTEX -1.96850394E+00 -1.96850394E+00 1.96850394E+00
+ VERTEX -1.96850394E+00 1.96850394E+00 1.96850394E+00
+ VERTEX -1.96850394E+00 1.96850394E+00 -1.96850394E+00
+ ENDLOOP
+ ENDFACET
+ FACET NORMAL 1.00000000E+00 0.00000000E+00 0.00000000E+00
+ OUTER LOOP
+ VERTEX 1.96850394E+00 1.96850394E+00 1.96850394E+00
+ VERTEX 1.96850394E+00 -1.96850394E+00 1.96850394E+00
+ VERTEX 1.96850394E+00 -1.96850394E+00 -1.96850394E+00
+ ENDLOOP
+ ENDFACET
+ FACET NORMAL 1.00000000E+00 0.00000000E+00 0.00000000E+00
+ OUTER LOOP
+ VERTEX 1.96850394E+00 -1.96850394E+00 -1.96850394E+00
+ VERTEX 1.96850394E+00 1.96850394E+00 -1.96850394E+00
+ VERTEX 1.96850394E+00 1.96850394E+00 1.96850394E+00
+ ENDLOOP
+ ENDFACET
+ FACET NORMAL 0.00000000E+00 -1.00000000E+00 0.00000000E+00
+ OUTER LOOP
+ VERTEX -1.96850394E+00 -1.96850394E+00 1.96850394E+00
+ VERTEX -1.96850394E+00 -1.96850394E+00 -1.96850394E+00
+ VERTEX 1.96850394E+00 -1.96850394E+00 -1.96850394E+00
+ ENDLOOP
+ ENDFACET
+ FACET NORMAL 0.00000000E+00 -1.00000000E+00 0.00000000E+00
+ OUTER LOOP
+ VERTEX 1.96850394E+00 -1.96850394E+00 -1.96850394E+00
+ VERTEX 1.96850394E+00 -1.96850394E+00 1.96850394E+00
+ VERTEX -1.96850394E+00 -1.96850394E+00 1.96850394E+00
+ ENDLOOP
+ ENDFACET
+ FACET NORMAL 0.00000000E+00 1.00000000E+00 0.00000000E+00
+ OUTER LOOP
+ VERTEX -1.96850394E+00 1.96850394E+00 -1.96850394E+00
+ VERTEX -1.96850394E+00 1.96850394E+00 1.96850394E+00
+ VERTEX 1.96850394E+00 1.96850394E+00 1.96850394E+00
+ ENDLOOP
+ ENDFACET
+ FACET NORMAL 0.00000000E+00 1.00000000E+00 0.00000000E+00
+ OUTER LOOP
+ VERTEX 1.96850394E+00 1.96850394E+00 1.96850394E+00
+ VERTEX 1.96850394E+00 1.96850394E+00 -1.96850394E+00
+ VERTEX -1.96850394E+00 1.96850394E+00 -1.96850394E+00
+ ENDLOOP
+ ENDFACET
+ENDSOLID Untitled1
+EOF
+
+python -c 'from admesh import Stl; stl = Stl("block.stl"); stl.rotate_x(10); stl.write_ascii("block_python2.stl");'
+python3 -c 'from admesh import Stl; stl = Stl("block.stl"); stl.rotate_x(10); stl.write_ascii("block_python3.stl");'
+ls -ln
+
+cat block_python2.stl block_python3.stl
+diff block_python2.stl block_python3.stl
+
+echo "run: OK"
+
diff --git a/debian/tests/control b/debian/tests/control
new file mode 100644
index 0000000..3373217
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,2 @@
+Tests: admesh-python-test
+Depends: ipython, ipython3, python-admesh, python3-admesh
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-admesh.git
More information about the debian-science-commits
mailing list