File: run-unit-test

package info (click to toggle)
mptp 0.2.5-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 756 kB
  • sloc: ansic: 4,554; python: 1,274; yacc: 301; lex: 132; makefile: 66; sh: 16
file content (23 lines) | stat: -rw-r--r-- 589 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
#!/bin/bash
set -e

pkg=mptp

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 /usr/share/doc/${pkg}/examples/* -a "${AUTOPKGTEST_TMP}"

cd "${AUTOPKGTEST_TMP}"
gunzip -r *

echo 'Test 1'
mptp --ml --multi --tree_file RAxML_bestTree.Clubiona --minbr 0.0009330519 --output_file out --outgroup A,C --tree_show
echo 'PASS'

echo 'Test 2'
mptp --mcmc 50000000 --multi --mcmc_sample 1000000 --mcmc_burnin 1000000 --tree_file RAxML_bestTree.Clubiona --output_file out
echo 'PASS'