File: simple.sh

package info (click to toggle)
phylonium 1.7-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 44,340 kB
  • sloc: cpp: 15,701; ansic: 782; makefile: 139; python: 66; sh: 41
file content (23 lines) | stat: -rwxr-xr-x 468 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/sh -f

ARG1="$1"
PHYLONIUM=${ARG1:-./src/phylonium}
SIMF=./test/simf

# Test if the tools exists, and can be executed
$PHYLONIUM --version > /dev/null || exit 1
$SIMF -h > /dev/null || exit 1

SEED=${RANDOM_SEED:-0}
SEED2=0
SEED3=0
if test $SEED -ne 0; then
    SEED=$((SEED + 1))
    SEED2=$((SEED + 2))
    SEED3=$((SEED + 3))
fi

$SIMF -s $SEED -l 100000 -p simple
$PHYLONIUM simple0.fasta simple1.fasta > /dev/null || exit 1

rm simple0.fasta simple1.fasta