File: test.sh

package info (click to toggle)
python-treetime 0.11.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 21,316 kB
  • sloc: python: 8,437; sh: 124; makefile: 49
file content (28 lines) | stat: -rw-r--r-- 486 bytes parent folder | download
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
26
27
28
#!/usr/bin/env bash

set -euo pipefail

cd test

# Remove treetime_examples in case it exists to not fail
rm -rf treetime_examples
git clone https://github.com/neherlab/treetime_examples.git

bash command_line_tests.sh
OUT=$?
if [ "$OUT" != 0 ]; then
  exit 1
fi

pytest test_treetime.py
if [ "$OUT" != 0 ]; then
  exit 1
fi

pytest test_vcf.py
if [ "$OUT" != 0 ]; then
  exit 1
fi

# Clean up, the 202* is to remove auto-generated output dirs
rm -rf treetime_examples __pycache__ 202*