Ignore:
Timestamp:
Jan 4, 2013, 7:38:38 AM (9 years ago)
Author:
Peter
Message:

merge release 0.10 into trunk

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk

  • trunk/test/bam_pair_analyse.cc

    r2902 r2943  
    2020#include "Suite.h"
    2121
     22using namespace theplu::yat;
     23
     24#if HAVE_LIBBAM
    2225#include "yat/omic/algorithm.h"
    2326#include "yat/omic/BamRead.h"
    2427#include "yat/omic/BamReadIterator.h"
     28#endif
    2529
    26 using namespace theplu::yat;
     30void test1(test::Suite& suite);
     31
     32int main(int argc, char* argv[])
     33{
     34  test::Suite suite(argc, argv);
     35#ifndef HAVE_LIBBAM
     36  suite.out() << "no libbam\n";
     37  return EXIT_SKIP;
     38#endif
     39#ifndef HAVE_SAMTOOLS
     40  suite.out() << "no samtools available\n";
     41  return EXIT_SKIP;
     42#endif
     43
     44#ifdef HAVE_LIBBAM
     45  test1(suite);
     46#endif
     47  return suite.return_value();
     48}
     49
     50
     51#ifdef HAVE_LIBBAM
    2752using namespace omic;
    2853
     
    3964};
    4065
    41 
    42 int main(int argc, char* argv[])
     66void test1(test::Suite& suite)
    4367{
    44 #ifndef HAVE_SAMTOOLS
    45   return EXIT_SKIP;
    46 #endif
    47   test::Suite suite(argc, argv);
    48 
    4968  std::string file = "../../data/foo.sorted.bam";
    5069
     
    5473  Counter counter;
    5574  bam_pair_analyse(iter, end, counter);
    56 
    5775  suite.out() << counter.n_ << "\n";
    58 
    5976  suite.add(counter.n_==395);
    60 
    6177  is.close();
    62   return suite.return_value();
    6378}
     79#endif
Note: See TracChangeset for help on using the changeset viewer.