[med-svn] [Git][med-team/tree-puzzle][master] 5 commits: Patch check-* files for tests

Pranav Ballaney gitlab at salsa.debian.org
Wed May 13 23:18:42 BST 2020



Pranav Ballaney pushed to branch master at Debian Med / tree-puzzle


Commits:
94123f7f by Pranav Ballaney at 2020-05-14T02:52:25+05:30
Patch check-* files for tests

- - - - -
7f958cd8 by Pranav Ballaney at 2020-05-14T02:52:43+05:30
Enable build time tests

- - - - -
b9d90fb4 by Pranav Ballaney at 2020-05-14T02:56:15+05:30
Enable autopkgtests

- - - - -
9c78deb2 by Pranav Ballaney at 2020-05-14T03:47:43+05:30
Add autopkgtests

- - - - -
34208490 by Pranav Ballaney at 2020-05-14T03:48:30+05:30
Update changelog

- - - - -


7 changed files:

- debian/changelog
- debian/patches/series
- + debian/patches/update_test_results.patch
- debian/rules
- − debian/tests/__control__deactivated
- + debian/tests/control
- debian/tests/run-unit-test


Changes:

=====================================
debian/changelog
=====================================
@@ -17,7 +17,15 @@ tree-puzzle (5.3~rc16+dfsg-1) UNRELEASED; urgency=medium
   * debian/patches/fix-mpi3-build.patch:
     - Fix FTBFS due to the new MPI-3.0 API (Closes: #951984).
 
- -- Andreas Tille <tille at debian.org>  Mon, 08 Jul 2019 16:47:12 +0200
+  [ Andreas Tille ]
+  * Fix more permissions
+
+  [ Pranav Ballaney ]
+  * Patch check-* files for tests
+  * Enable build time tests
+  * Add autopkgtests
+
+ -- Pranav Ballaney <ballaneypranav at gmail.com>  Thu, 14 May 2020 03:47:56 +0530
 
 tree-puzzle (5.2-11) unstable; urgency=medium
 


=====================================
debian/patches/series
=====================================
@@ -2,3 +2,4 @@ use_debian_packaged_sprng.patch
 tests-need-bash.patch
 spelling.patch
 fix-mpi3-build.patch
+update_test_results.patch


=====================================
debian/patches/update_test_results.patch
=====================================
The diff for this file was not included because it is too large.

=====================================
debian/rules
=====================================
@@ -25,7 +25,7 @@ ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
 	# the issue is documented in
 	#   debian/patches/patch_test_results.patch
 	# and needs to be discussed with upstream
-	dh_auto_test || true
+	dh_auto_test
 endif
 
 override_dh_installexamples:


=====================================
debian/tests/__control__deactivated deleted
=====================================
@@ -1,2 +0,0 @@
-Tests: run-unit-test 
-Restritions: allow-stderr


=====================================
debian/tests/control
=====================================
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @
+Restrictions: allow-stderr


=====================================
debian/tests/run-unit-test
=====================================
@@ -15,12 +15,84 @@ cp -a /usr/share/doc/${pkg}/examples/* "${AUTOPKGTEST_TMP}"
 
 cd "${AUTOPKGTEST_TMP}"
 
-# tree-puzzle intallation check
-# Comment by Andreas Tille: That test is a bit weak since
-# its pretty redundant that these conditions are fullfilled
-# once a package is installed.  Please enhance.
-if hash tree-puzzle 2>/dev/null; then
-    echo Success
-else
-    echo Fail
-fi
+ls -R
+
+echo -e "\e[93m\e[1mTest 1\e[0m"
+tree-puzzle -randseed1001 tests/qp-pure-bin.bin < tests/qp-pure-bin.param
+echo -e "\e[92m\e[1mPassed\e[0m"
+echo
+
+echo -e "\e[93m\e[1mTest 2\e[0m"
+tree-puzzle -randseed1001 tests/qp-pure-nucl.nucl < tests/qp-pure-nucl.param
+echo -e "\e[92m\e[1mPassed\e[0m"
+echo
+
+echo -e "\e[93m\e[1mTest 3\e[0m"
+tree-puzzle -randseed1001 tests/qp-tn-nucl.nucl < tests/qp-tn-nucl.param
+echo -e "\e[92m\e[1mPassed\e[0m"
+echo
+
+echo -e "\e[93m\e[1mTest 4\e[0m"
+tree-puzzle -randseed1001 tests/qp-hky-clock-nucl.nucl < tests/qp-hky-clock-nucl.param
+echo -e "\e[92m\e[1mPassed\e[0m"
+echo
+
+echo -e "\e[93m\e[1mTest 5\e[0m"
+tree-puzzle -randseed1001 tests/qp-hky-rhet-nucl.nucl < tests/qp-hky-rhet-nucl.param
+echo -e "\e[92m\e[1mPassed\e[0m"
+echo
+
+echo -e "\e[93m\e[1mTest 6\e[0m"
+tree-puzzle -randseed1001 tests/qp-hky-rhet-clock-nucl.nucl < tests/qp-hky-rhet-clock-nucl.param
+echo -e "\e[92m\e[1mPassed\e[0m"
+echo
+
+echo -e "\e[93m\e[1mTest 7\e[0m"
+tree-puzzle -randseed1001 tests/qp-pure-prot.prot < tests/qp-pure-prot.param
+echo -e "\e[92m\e[1mPassed\e[0m"
+echo
+
+echo -e "\e[93m\e[1mTest 8\e[0m"
+tree-puzzle -randseed1001 tests/qp-mtrev-prot.prot < tests/qp-mtrev-prot.param
+echo -e "\e[92m\e[1mPassed\e[0m"
+echo
+
+echo -e "\e[93m\e[1mTest 9\e[0m"
+tree-puzzle -randseed1001 tests/qp-vt-prot.prot < tests/qp-vt-prot.param
+echo -e "\e[92m\e[1mPassed\e[0m"
+echo
+
+echo -e "\e[93m\e[1mTest 10\e[0m"
+tree-puzzle -randseed1001 tests/qp-wag-prot.prot < tests/qp-wag-prot.param
+echo -e "\e[92m\e[1mPassed\e[0m"
+echo
+
+echo -e "\e[93m\e[1mTest 11\e[0m"
+tree-puzzle -randseed1001 tests/qp-clock.nucl < tests/qp-clock.param
+echo -e "\e[92m\e[1mPassed\e[0m"
+echo
+
+echo -e "\e[93m\e[1mTest 12\e[0m"
+tree-puzzle -randseed1001 tests/qp-jtt-prot.prot < tests/qp-jtt-prot.param
+echo -e "\e[92m\e[1mPassed\e[0m"
+echo
+
+echo -e "\e[93m\e[1mTest 13\e[0m"
+tree-puzzle -randseed1001 tests/qp-jtt-rhet-prot.prot < tests/qp-jtt-rhet-prot.param
+echo -e "\e[92m\e[1mPassed\e[0m"
+echo
+
+echo -e "\e[93m\e[1mTest 14\e[0m"
+tree-puzzle -randseed1001 tests/qp-jtt-rhet-clock-prot.prot < tests/qp-jtt-rhet-clock-prot.param
+echo -e "\e[92m\e[1mPassed\e[0m"
+echo
+
+echo -e "\e[93m\e[1mTest 15\e[0m"
+tree-puzzle -randseed1001 tests/lm-pure-prot.prot < tests/lm-pure-prot.param
+echo -e "\e[92m\e[1mPassed\e[0m"
+echo
+
+echo -e "\e[93m\e[1mTest 16\e[0m"
+tree-puzzle -randseed1001 tests/ut-pure-prot.prot tests/ut-pure-prot.trees < tests/ut-pure-prot.param
+echo -e "\e[92m\e[1mPassed\e[0m"
+echo



View it on GitLab: https://salsa.debian.org/med-team/tree-puzzle/-/compare/6ffcc71f0146afb3a554a22d693fd2ea4d3d69c6...34208490366bd486c4eacd45e4317fd3cd586f1e

-- 
View it on GitLab: https://salsa.debian.org/med-team/tree-puzzle/-/compare/6ffcc71f0146afb3a554a22d693fd2ea4d3d69c6...34208490366bd486c4eacd45e4317fd3cd586f1e
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20200513/d3532703/attachment-0001.html>


More information about the debian-med-commit mailing list