source: trunk/GDE/SINA/builddir/tests/search.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: 901 bytes
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 "Search"
21capture_stdouterr "$SINA -i $T/extracted.fasta -o $T/results.fasta --db $T/ref.arb --prealigned --search -v"
22assert_output_count "nearest_slv: \w" -eq 12
23end_test
24
25begin_test "Search - add relatives"
26capture_stdouterr "$SINA -i $T/extracted.fasta -o $T/results.fasta --db $T/ref.arb --prealigned --search -v --add-relatives 2"
27assert_output_count "nearest_slv: \w" -eq 12
28assert_output_contains "24 relatives"
29end_test
30
Note: See TracBrowser for help on using the repository browser.