Last change
on this file was
19170,
checked in by westram, 2 years ago
|
- sina source
- unpack + remove tarball
- no longer ignore sina builddir.
|
-
Property svn:executable set to
*
|
File size:
901 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | source tests/test_helper.sh |
---|
3 | |
---|
4 | TEST_ARB=$TEST_ARGS |
---|
5 | maketmpdir T |
---|
6 | |
---|
7 | cp $TEST_ARB $T/ref.arb |
---|
8 | |
---|
9 | SINA="./src/sina" |
---|
10 | |
---|
11 | begin_test "PREP" |
---|
12 | capture_stdouterr "$SINA -i $T/ref.arb -o $T/extracted.fasta --select-step 1000 --prealigned" |
---|
13 | assert_exit_success |
---|
14 | assert_output_contains "align 12 sequences" |
---|
15 | capture_stdouterr "$SINA -i $T/ref.arb -o $T/extracted.arb --select-step 1000 --prealigned" |
---|
16 | assert_exit_success |
---|
17 | assert_output_contains "align 12 sequences" |
---|
18 | end_test |
---|
19 | |
---|
20 | begin_test "Search" |
---|
21 | capture_stdouterr "$SINA -i $T/extracted.fasta -o $T/results.fasta --db $T/ref.arb --prealigned --search -v" |
---|
22 | assert_output_count "nearest_slv: \w" -eq 12 |
---|
23 | end_test |
---|
24 | |
---|
25 | begin_test "Search - add relatives" |
---|
26 | capture_stdouterr "$SINA -i $T/extracted.fasta -o $T/results.fasta --db $T/ref.arb --prealigned --search -v --add-relatives 2" |
---|
27 | assert_output_count "nearest_slv: \w" -eq 12 |
---|
28 | assert_output_contains "24 relatives" |
---|
29 | end_test |
---|
30 | |
---|
Note: See
TracBrowser
for help on using the repository browser.