File: run-unit-test

package info (click to toggle)
python-dendropy 4.6.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 73,656 kB
  • sloc: python: 28,589; xml: 1,400; sh: 17; makefile: 11
file content (25 lines) | stat: -rw-r--r-- 673 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
set -e

pkg=sumtrees

export LC_ALL=C.UTF-8
if [ "${AUTOPKGTEST_TMP}" = "" ] ; then
  AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
  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 *

# Obtained from `sumtrees --usage-examples`
sumtrees --summary-target consensus \
         --min-clade-freq=0.95 \
         --edges mean-length \
         --burnin=200 \
         --support-as-labels \
         --output=pythonidae_result.tre \
         pythonidae.mlboots.newick.tre  pythonidae.random.bd0301.midpoint-rooted.tre  pythonidae.random.bd0301.tre