Debian Codegraph @

auxprogs/utrrnaseq/integration_test/test.sh

raw symbols SCIP
1 #! /bin/shscip-shell filesystem . . `/bin/sh`.
2 # Test running utrrnaseq via command line call
3 # Ingo Bulla
4 # 19 Jan 2018
5
6 oneTimeSetUpscip-shell shell augustus 3.5.0+dfsg-5 oneTimeSetUp().() {
7 prog=../utrrnaseq
8 test_data_dir=../for-test-cases
9 }
10
11
12 oneTimeTearDownscip-shell shell augustus 3.5.0+dfsg-5 oneTimeTearDown().() {
13 rmscip-shell system . . rm. utrs.gff
14 }
15
16
17 # Test standard scenario
18 testStandardscip-shell shell augustus 3.5.0+dfsg-5 testStandard().() {
19 dir=${test_data_dir}/standard-test-set
20 eval $prog --in-scaffold-file $dir/test.fa \
21 --in-coding-region-file $dir/test-start-stop.gtf \
22 --in-intron-file $dir/test-introns.hints \
23 --in-repeat-file $dir/test-repeat.hints \
24 --in-wiggle-file $dir/test.wig
25 assertEquals $? 0
26 }
27
28 # Test softmasking scenario, i.e. no repeat file is provided
29 testSoftmasingscip-shell shell augustus 3.5.0+dfsg-5 testSoftmasing().() {
30 dir=${test_data_dir}/softmasking-test-set
31 eval $prog --in-scaffold-file $dir/test.fa \
32 --in-coding-region-file $dir/test-start-stop.gtf \
33 --in-intron-file $dir/test-introns.hints \
34 --in-wiggle-file $dir/test.wig
35 assertEquals $? 0
36 }
37
38 # Test invalid input, i.e. a filename passed by command line does not refer to an existing file
39 testInvalidFilenamescip-shell shell augustus 3.5.0+dfsg-5 testInvalidFilename().() {
40 dir=${test_data_dir}/standard-test-set
41 eval $prog --in-scaffold-file $dir/test.fa \
42 --in-coding-region-file $dir/test-start-stop.gtf \
43 --in-intron-file $dir/test-introns.hints \
44 --in-repeat-file $dir/test-repeat.hints \
45 --in-wiggle-file $dir/file_does_not_exist.wig
46 assertNotEquals $? 0
47 }
48
49
50 # Load shUnit2.
51 . shunit2scip-shell source . . shunit2.
52
53
54
55