File: random_bowtie_tests.sh

package info (click to toggle)
bowtie 1.2.2%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 16,704 kB
  • sloc: cpp: 35,614; perl: 5,903; ansic: 1,247; sh: 1,128; python: 483; makefile: 426
file content (40 lines) | stat: -rwxr-xr-x 1,209 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
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash

PREFIX=${0%/*}

SEED="$1"
if [ -z "$SEED" ] ; then
	SEED=77
else
	shift
fi

if [ "$1" == "-c" ] ; then
	make clean
	shift
fi

make allall

# Args: seed, outer, inner, tbase, trand, pbase, prand

echo "Long test emphasizing building..."
perl $PREFIX/random_bowtie_tests.pl $SEED 6000 10 300 200 8 30
if [ "$?" != "0" ] ; then echo "Error!" ; exit 1 ; fi
echo "Short test emphasizing searching..."
perl $PREFIX/random_bowtie_tests.pl $SEED 1000 200 300 200 8 30
if [ "$?" != "0" ] ; then echo "Error!" ; exit 1 ; fi
echo "Short test emphasizing searching with short patterns..."
perl $PREFIX/random_bowtie_tests.pl $SEED 1000 200 300 200 6 6
if [ "$?" != "0" ] ; then echo "Error!" ; exit 1 ; fi
echo "Short test emphasizing searching with long patterns..."
perl $PREFIX/random_bowtie_tests.pl $SEED 1000 200 300 200 30 20
if [ "$?" != "0" ] ; then echo "Error!" ; exit 1 ; fi
echo "Short test emphasizing building..."
perl $PREFIX/random_bowtie_tests.pl $SEED 1200 10 300 200 8 30
if [ "$?" != "0" ] ; then echo "Error!" ; exit 1 ; fi

echo "Long test emphasizing searching..."
perl $PREFIX/random_bowtie_tests.pl $SEED 5000 200 300 200 8 30
if [ "$?" != "0" ] ; then echo "Error!" ; exit 1 ; fi