Debian Codegraph @

debian/tests/run-example

raw
1 #!/bin/sh
2 # autopkgtest check: Run test data through Gubbins
3 # Author: Sascha Steinbiss <[email protected]>
4 # Reviewed-By: Étienne Mollier <[email protected]>
5 set -e
6 # This is expected to run in autopkgtest context.
7 CURDIR="$(pwd)"
8 WORKDIR="$(mktemp -d)"
9 HOME="$WORKDIR"
10 export HOME
11 trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
12 cd "$WORKDIR"
13
14 # Note several pathological datasets will trigger gubbins to return
15 # error without being symptomatic of an actual crash.
16 cp "$CURDIR/python/gubbins/tests/data/bootstrapping_test.aln" .
17 cp "$CURDIR/python/gubbins/tests/data/masking_multiple.aln" .
18 cp "$CURDIR/python/gubbins/tests/data/mislabelled.multiple_recombinations.aln" .
19 cp "$CURDIR/tests/data/no_recombinations.aln" .
20 cp "$CURDIR/tests/data/one_recombination.aln" .
21 cp "$CURDIR/tests/data/recombination_at_root/recombination_at_root.aln" .
22 cp "$CURDIR/tests/data/small_phylip_file.aln" .
23
24 for f in *.aln
25 do
26 echo "##### $f #####"
27 # See Github issue #442 for the iqtree tree builder.
28 # [1]: https://github.com/nickjcroucher/gubbins/issues/442
29 run_gubbins --tree-builder iqtree $f
30 done