File: test1

package info (click to toggle)
seqtools 4.44.1%2Bdfsg-7
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 28,492 kB
  • sloc: cpp: 53,636; sh: 12,232; makefile: 386
file content (30 lines) | stat: -rwxr-xr-x 728 bytes parent folder | download | duplicates (4)
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
#!/bin/sh
#
#
# Description:
#   Test Dotter in batch mode: export the dot-matrix.
#
# Results:
#   The output file 'output.dot' should be the same as the file 'test1_result.dot'
#

RC=0

test_name=`basename $0`
test_dir=`dirname $0`
data_dir=$test_dir/../../../data
results_file="$test_dir/$test_name""_results"
output_file="$test_dir"/"output.dot"

# Run belvu and check if there are any differences to the saved results
dotter -b $output_file -q 246634 -f $data_dir/chr4_dna_align.gff $data_dir/chr4_ref_seq_short.fasta $data_dir/DA730641.fasta
diffs=`diff $results_file $output_file`

# If there were any problems or differences, set RC
if [ $? -ne 0 -o "$diffs" != "" ]
then
  print "$test_name FAILED"
  RC=1
fi

exit $RC