source: trunk/GDE/SINA/builddir/tests/align.test

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: 1.9 KB
Line 
1#!/bin/bash
2source tests/test_helper.sh
3
4TEST_ARB=$TEST_ARGS
5maketmpdir T
6
7cp $TEST_ARB $T/ref.arb
8
9SINA="./src/sina"
10
11begin_test "PREP"
12capture_stdouterr "$SINA -i $T/ref.arb -o $T/extracted.fasta --select-step 1000 --prealigned"
13assert_exit_success
14assert_output_contains "align 12 sequences"
15capture_stdouterr "$SINA -i $T/ref.arb -o $T/extracted.arb --select-step 1000 --prealigned"
16assert_exit_success
17assert_output_contains "align 12 sequences"
18end_test
19
20begin_test "Align from FASTA->FASTA"
21capture_stdouterr "$SINA -i $T/extracted.fasta -o $T/aligned.fasta --preserve-order --realign --db $T/extracted.arb"
22assert_output_contains "align 12 sequences"
23assert_exit_success
24end_test
25
26begin_test "Align from FASTA->FASTA(stdout)"
27capture_stdouterr "$SINA -i $T/extracted.fasta --preserve-order --realign --db $T/extracted.arb >$T/aligned.2.fasta"
28assert_output_contains "align 12 sequences"
29assert_exit_success
30capture_stdouterr "cmp $T/aligned.fasta $T/aligned.2.fasta"
31assert_exit_success
32end_test
33
34begin_test "Align from FASTA->ARB"
35capture_stdouterr "$SINA -i $T/extracted.fasta -o $T/aligned.arb --realign --db $T/extracted.arb"
36assert_output_contains "align 12 sequences"
37assert_exit_success
38end_test
39
40begin_test "Align from ARB->ARB"
41capture_stdouterr "$SINA -i $T/extracted.arb -o $T/aligned.arb --realign --db $T/extracted.arb"
42assert_output_contains "align 12 sequences"
43assert_exit_success
44end_test
45
46begin_test "Add relatives FASTA->FASTA"
47capture_stdouterr "$SINA -i $T/extracted.fasta -o $T/aligned.fasta --add-relatives 2 --db $T/ref.arb -v"
48assert_output_contains "align 12 sequences"
49assert_output_contains "wrote 36 sequences (0 excluded, 24 relatives)"
50end_test
51
52begin_test "Add relatives FASTA->ARB"
53capture_stdouterr "$SINA -i $T/extracted.fasta -o $T/aligned.arb --add-relatives 2 --db $T/ref.arb -v"
54assert_output_contains "align 12 sequences"
55assert_output_contains "wrote 36 sequences (0 excluded, 24 relatives)"
56end_test
57
Note: See TracBrowser for help on using the repository browser.