[med-svn] [Git][med-team/cluster3][master] 3 commits: Add reference files for autopkgtests
Pranav Ballaney
gitlab at salsa.debian.org
Fri Jun 12 06:10:04 BST 2020
Pranav Ballaney pushed to branch master at Debian Med / cluster3
Commits:
8c9a0a95 by Pranav Ballaney at 2020-06-12T10:38:42+05:30
Add reference files for autopkgtests
- - - - -
f0f41505 by Pranav Ballaney at 2020-06-12T10:39:13+05:30
Add autopkgtests
- - - - -
2024cce2 by Pranav Ballaney at 2020-06-12T10:39:37+05:30
Add docs
- - - - -
9 changed files:
- + debian/README.test
- debian/changelog
- debian/cluster3.docs
- debian/cluster3.examples
- + debian/tests/control
- + debian/tests/ref/README.test_data
- + debian/tests/ref/ref-cyano.nrm
- + debian/tests/ref/ref-demo.nrm
- + debian/tests/run-unit-test
Changes:
=====================================
debian/README.test
=====================================
@@ -0,0 +1,8 @@
+Notes on how this package can be tested.
+────────────────────────────────────────
+
+This package can be tested by running the provided test:
+
+ sh run-unit-test
+
+in order to confirm its integrity.
=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+cluster3 (1.59+ds-2) UNRELEASED; urgency=medium
+
+ * Add reference files for autopkgtests
+ * Add autopkgtests
+ * Add docs
+
+ -- Pranav Ballaney <ballaneypranav at gmail.com> Fri, 12 Jun 2020 10:39:19 +0530
+
cluster3 (1.59+ds-1) unstable; urgency=medium
[ Steffen Moeller ]
=====================================
debian/cluster3.docs
=====================================
@@ -1,3 +1,5 @@
NEWS
README
html/
+debian/README*
+debian/tests/ref/README*
=====================================
debian/cluster3.examples
=====================================
@@ -1 +1,3 @@
example/*
+data/*
+debian/tests/ref/*
\ No newline at end of file
=====================================
debian/tests/control
=====================================
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @
+Restrictions: allow-stderr
=====================================
debian/tests/ref/README.test_data
=====================================
@@ -0,0 +1,3 @@
+Reference files used for testing were obtained by running cluster3 as follows
+ cluster3 -f [infile]
+on the files provided in the data folder along with the package.
\ No newline at end of file
=====================================
debian/tests/ref/ref-cyano.nrm
=====================================
@@ -0,0 +1,92 @@
+gene NAME GWEIGHT 0 15min 1hour 6hours 15hours
+EWEIGHT 1.000000 1.000000 1.000000 1.000000 1.000000
+sll0617 sll0617 1.000000 0.000000 -0.141164 -0.564656 -0.219394 -0.582970
+slr0452 slr0452 1.000000 0.000000 -0.124989 -0.499954 0.195680 0.078148
+slr1513 slr1513 1.000000 0.000000 0.788547 0.228595 0.255819 0.304824
+sll1471 sll1471 1.000000 0.000000 -0.770355 -1.101153 -1.006074 -0.834932
+sll1694 sll1694 1.000000 0.000000 -0.328240 -2.160371 -1.184544 -1.367600
+sll0430 sll0430 1.000000 0.000000 2.576118 0.920297 0.331897 0.353985
+sll0851 sll0851 1.000000 0.000000 -0.260489 -1.041954 -0.870952 -0.563147
+sll1260 sll1260 1.000000 0.000000 0.488375 1.033368 1.058085 1.102575
+sll1031 sll1031 1.000000 0.000000 2.226361 1.273771 1.224410 1.135562
+sll1097 sll1097 1.000000 0.000000 0.623624 1.509866 1.398580 1.198267
+slr1853 slr1853 1.000000 0.000000 -0.625111 -0.579159 -0.272813 0.278610
+slr1856 slr1856 1.000000 0.000000 -1.486479 -1.154829 -0.788491 -0.129083
+sll1807 sll1807 1.000000 0.000000 -0.003519 1.622006 1.210317 1.406639
+slr1280 slr1280 1.000000 0.000000 1.683636 0.570483 0.452252 0.239436
+sll1578 sll1578 1.000000 0.000000 -2.086461 -4.166189 -2.953712 -0.771254
+sll0927 sll0927 1.000000 0.000000 1.535404 0.994485 1.065582 1.193558
+sll1028 sll1028 1.000000 0.000000 2.662310 1.020531 1.072913 1.167200
+sll0170 sll0170 1.000000 0.000000 2.493133 0.836379 -0.181001 -0.068602
+sll0020 sll0020 1.000000 0.000000 0.622961 0.107769 0.008233 -0.170933
+slr1128 slr1128 1.000000 0.000000 -0.586091 -0.971231 -0.334896 -0.721673
+slr1687 slr1687 1.000000 0.000000 1.535316 0.508365 0.226540 -0.280744
+slr1986 slr1986 1.000000 0.000000 -2.461809 -3.320642 -1.632299 -0.376250
+sll1091 sll1091 1.000000 0.000000 -2.220182 -2.108823 -1.366425 -0.030110
+slr0011 slr0011 1.000000 0.000000 1.737154 0.482870 0.589477 0.781369
+sll1816 sll1816 1.000000 0.000000 0.142823 1.371386 1.047158 1.227764
+slr1655 slr1655 1.000000 0.000000 -2.297083 -2.799991 -2.200325 -1.120926
+slr0839 slr0839 1.000000 0.000000 0.367579 0.316678 -0.022664 -0.633479
+sll0262 sll0262 1.000000 0.000000 0.792040 0.692818 0.031338 0.309367
+slr1641 slr1641 1.000000 0.000000 2.894231 0.551560 -0.150705 -0.214428
+sll0854 sll0854 1.000000 0.000000 0.609090 0.545338 0.120324 0.223174
+slr0151 slr0151 1.000000 0.000000 -0.989350 -0.964207 -0.796588 -0.494873
+slr0476 slr0476 1.000000 0.000000 1.512153 0.082112 0.040081 -0.035574
+sll1614 sll1614 1.000000 0.000000 0.702657 0.065978 0.121246 0.220729
+slr0374 slr0374 1.000000 0.000000 -0.735627 -1.185381 -1.384376 -1.742566
+slr0737 slr0737 1.000000 0.000000 -1.958288 -3.255107 -2.254139 -1.643701
+slr1718 slr1718 1.000000 0.000000 0.271487 0.266555 0.233677 0.174496
+slr1604 slr1604 1.000000 0.000000 2.157254 0.725639 0.422501 -0.123148
+sll1002 sll1002 1.000000 0.000000 0.508060 0.082473 -0.088221 -0.395471
+sll0814 sll0814 1.000000 0.000000 1.878324 1.056791 0.703833 0.068508
+sll0521 sll0521 1.000000 0.000000 1.247365 0.245331 -0.260998 0.203911
+slr2051 slr2051 1.000000 0.000000 -2.304449 -2.882550 -2.198778 -0.967987
+sll1802 sll1802 1.000000 0.000000 0.654023 1.528460 1.322495 1.589607
+sll0519 sll0519 1.000000 0.000000 0.711448 0.130604 -0.169447 0.227932
+sll1799 sll1799 1.000000 0.000000 0.772807 1.261482 1.367025 1.557003
+sll0416 sll0416 1.000000 0.000000 2.174931 1.837736 1.003163 0.899588
+slr1459 slr1459 1.000000 0.000000 -1.846837 -1.767066 -1.235257 -0.278000
+sll0414 sll0414 1.000000 0.000000 0.509743 0.051370 0.097224 0.179762
+sll1580 sll1580 1.000000 0.000000 -2.665683 -4.750385 -3.055430 -1.509099
+sll1214 sll1214 1.000000 0.000000 -1.770895 -1.699094 -1.220422 -0.358810
+sll1096 sll1096 1.000000 0.000000 1.114639 1.768082 1.689802 1.548898
+sll1809 sll1809 1.000000 0.000000 -0.308925 1.252150 0.755537 0.934592
+slr1793 slr1793 1.000000 0.000000 -0.188658 -0.754634 -0.551734 -0.652770
+sll0185 sll0185 1.000000 0.000000 0.475724 1.173858 0.255800 -0.398253
+ssl3093 ssl3093 1.000000 0.000000 -1.741569 -1.689995 -1.346174 -0.727295
+sll1577 sll1577 1.000000 0.000000 -2.693075 -4.016525 -2.101655 -0.913596
+sll1801 sll1801 1.000000 0.000000 0.424986 1.699946 1.176762 1.420755
+sll1626 sll1626 1.000000 0.000000 -1.297471 -1.428163 0.229661 0.402910
+sll0587 sll0587 1.000000 0.000000 0.101731 0.406924 0.293220 0.088553
+sll1745 sll1745 1.000000 0.000000 -0.481145 1.545244 1.088854 1.328071
+slr1557 slr1557 1.000000 0.000000 -0.233124 0.382073 0.251423 0.016253
+sll0144 sll0144 1.000000 0.000000 0.126488 0.505951 0.577428 0.706086
+ssr2554 ssr2554 1.000000 0.000000 0.136152 0.544609 0.510697 0.449657
+ssl1533 ssl1533 1.000000 0.000000 -0.976223 -1.791210 -1.509785 -1.003219
+sll1029 sll1029 1.000000 0.000000 2.158856 1.434362 1.399602 1.337034
+slr1834 slr1834 1.000000 0.000000 -1.228148 -4.912591 -2.296250 -1.386106
+slr1963 slr1963 1.000000 0.000000 2.742426 2.035643 1.181772 0.708083
+slr0642 slr0642 1.000000 0.000000 0.515147 0.216658 0.175698 0.101971
+slr1469 slr1469 1.000000 0.000000 0.159890 0.639562 0.651815 0.673872
+slr1348 slr1348 1.000000 0.000000 -0.341260 -1.365040 -1.483602 -0.771118
+sll0680 sll0680 1.000000 0.000000 0.468062 0.478933 0.551406 0.681858
+slr1350 slr1350 1.000000 0.000000 1.407486 0.243442 0.297824 0.395713
+slr2067 slr2067 1.000000 0.000000 -2.329522 -3.007376 -1.210529 -0.165887
+sll0901 sll0901 1.000000 0.000000 -0.580637 -0.550768 -0.351635 0.006803
+sll1327 sll1327 1.000000 0.000000 -0.244114 0.309924 0.433469 0.655849
+slr1237 slr1237 1.000000 0.000000 0.170112 0.680449 0.452827 0.819425
+slr0208 slr0208 1.000000 0.000000 0.989182 0.552782 0.494996 0.390983
+sll0258 sll0258 1.000000 0.000000 -1.500769 -1.799819 -0.640454 -0.249419
+slr2075 slr2075 1.000000 0.000000 2.428214 2.307133 1.499924 1.476400
+sll0819 sll0819 1.000000 0.000000 -2.378090 -3.524132 -1.844340 -1.099488
+sll1306 sll1306 1.000000 0.000000 -1.420037 -1.376164 -1.083676 -0.557197
+sll1712 sll1712 1.000000 0.000000 -0.866155 -0.909859 0.101616 0.276541
+sll1743 sll1743 1.000000 0.000000 -0.064159 1.747577 1.279415 1.531670
+sll1579 sll1579 1.000000 0.000000 -3.243846 -4.799093 -2.534820 -1.307388
+slr0329 slr0329 1.000000 0.000000 -1.215185 -1.187961 -1.006467 -0.679778
+slr1545 slr1545 1.000000 0.000000 -1.375968 -1.207184 -0.081955 -0.311132
+sll0322 sll0322 1.000000 0.000000 1.318713 1.310430 1.255208 1.155809
+sll1810 sll1810 1.000000 0.000000 -1.075776 1.367214 1.271545 1.099339
+sll1804 sll1804 1.000000 0.000000 -0.355404 1.823911 1.665694 1.380904
+slr1835 slr1835 1.000000 0.000000 -0.852040 -3.408159 -1.871369 -1.142317
+slr1855 slr1855 1.000000 0.000000 -2.945127 -2.665571 -0.801867 -0.264638
=====================================
debian/tests/ref/ref-demo.nrm
=====================================
The diff for this file was not included because it is too large.
=====================================
debian/tests/run-unit-test
=====================================
@@ -0,0 +1,43 @@
+#!/bin/bash
+set -e
+
+pkg=cluster3
+
+export LC_ALL=C.UTF-8
+if [ "${AUTOPKGTEST_TMP}" = "" ] ; then
+ AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
+ # Double quote below to expand the temporary directory variable now versus
+ # later is on purpose.
+ # shellcheck disable=SC2064
+ trap "rm -rf ${AUTOPKGTEST_TMP}" 0 INT QUIT ABRT PIPE TERM
+fi
+
+cp -a /usr/share/doc/${pkg}/examples/* "${AUTOPKGTEST_TMP}"
+
+cd "${AUTOPKGTEST_TMP}"
+
+gunzip -r *
+
+run_test() {
+ # $1: test number
+ # $2: infile
+ # $3: outfile
+ # $4: reference
+ echo -e "Test $1"
+ cluster3 -f $2 > /dev/null 2>&1
+ if [ "$?" -ne "0" ]; then
+ echo -e "\e[31m\e[1mTest $1 could not be run.\e[0m"
+ exit 1
+ fi
+ diff $3 $4 --suppress-common-lines
+ if [ "$?" -ne "0" ]; then
+ echo -e "\e[31m\e[1m$3 did not match the reference.\e[0m"
+ exit 1
+ fi
+ echo -e "\e[92m\e[1mPassed\e[0m"
+ echo
+}
+
+run_test 1 cyano.txt cyano.nrm ref-cyano.nrm
+run_test 2 demo.txt demo.nrm ref-demo.nrm
+
View it on GitLab: https://salsa.debian.org/med-team/cluster3/-/compare/1658d2b159581582c4184b272a7eaf1578bfa7fb...2024cce291fb3dbe581ade8ae0b847d7c44e0d46
--
View it on GitLab: https://salsa.debian.org/med-team/cluster3/-/compare/1658d2b159581582c4184b272a7eaf1578bfa7fb...2024cce291fb3dbe581ade8ae0b847d7c44e0d46
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/20200612/6b69bef6/attachment-0001.html>
More information about the debian-med-commit
mailing list