1292 |
11 May 08 |
peter |
// $Id$ |
1292 |
11 May 08 |
peter |
2 |
|
1292 |
11 May 08 |
peter |
3 |
/* |
2119 |
12 Dec 09 |
peter |
Copyright (C) 2008 Jari Häkkinen, Peter Johansson |
4359 |
23 Aug 23 |
peter |
Copyright (C) 2009, 2011, 2012, 2013, 2023 Peter Johansson |
1292 |
11 May 08 |
peter |
6 |
|
1469 |
02 Sep 08 |
peter |
This file is part of the yat library, http://dev.thep.lu.se/yat |
1292 |
11 May 08 |
peter |
8 |
|
1292 |
11 May 08 |
peter |
The yat library is free software; you can redistribute it and/or |
1292 |
11 May 08 |
peter |
modify it under the terms of the GNU General Public License as |
1486 |
09 Sep 08 |
jari |
published by the Free Software Foundation; either version 3 of the |
1292 |
11 May 08 |
peter |
License, or (at your option) any later version. |
1292 |
11 May 08 |
peter |
13 |
|
1292 |
11 May 08 |
peter |
The yat library is distributed in the hope that it will be useful, |
1292 |
11 May 08 |
peter |
but WITHOUT ANY WARRANTY; without even the implied warranty of |
1292 |
11 May 08 |
peter |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
1292 |
11 May 08 |
peter |
General Public License for more details. |
1292 |
11 May 08 |
peter |
18 |
|
1292 |
11 May 08 |
peter |
You should have received a copy of the GNU General Public License |
1487 |
10 Sep 08 |
jari |
along with yat. If not, see <http://www.gnu.org/licenses/>. |
1292 |
11 May 08 |
peter |
21 |
*/ |
1292 |
11 May 08 |
peter |
22 |
|
2881 |
18 Nov 12 |
peter |
23 |
#include <config.h> |
2881 |
18 Nov 12 |
peter |
24 |
|
1292 |
11 May 08 |
peter |
25 |
#include "Suite.h" |
1292 |
11 May 08 |
peter |
26 |
|
1292 |
11 May 08 |
peter |
27 |
#include "yat/utility/version.h" |
1292 |
11 May 08 |
peter |
28 |
|
1747 |
23 Jan 09 |
peter |
29 |
#include <boost/version.hpp> |
1346 |
19 Jun 08 |
peter |
30 |
#include <gsl/gsl_version.h> |
4270 |
19 Jan 23 |
peter |
31 |
#ifdef YAT_HAVE_HTSLIB_HTS_H |
4270 |
19 Jan 23 |
peter |
32 |
#include <htslib/hts.h> |
4270 |
19 Jan 23 |
peter |
33 |
#endif |
1346 |
19 Jun 08 |
peter |
34 |
|
4271 |
19 Jan 23 |
peter |
35 |
#ifndef HTS_VERSION |
4271 |
19 Jan 23 |
peter |
36 |
#define HTS_VERSION "HTS_VERSION not defined" |
4271 |
19 Jan 23 |
peter |
37 |
#endif |
4271 |
19 Jan 23 |
peter |
38 |
|
1292 |
11 May 08 |
peter |
39 |
int main(int argc, char* argv[]) |
4200 |
19 Aug 22 |
peter |
40 |
{ |
2522 |
15 Jul 11 |
peter |
41 |
#if !(YAT_VERSION_AT_LEAST(0, 7, 11)) |
4200 |
19 Aug 22 |
peter |
42 |
#error "we should not be here!" |
2522 |
15 Jul 11 |
peter |
43 |
#endif |
2522 |
15 Jul 11 |
peter |
44 |
|
1292 |
11 May 08 |
peter |
45 |
using namespace theplu::yat::utility; |
1292 |
11 May 08 |
peter |
46 |
theplu::yat::test::Suite suite(argc, argv); |
1292 |
11 May 08 |
peter |
47 |
|
1346 |
19 Jun 08 |
peter |
48 |
suite.out() << "API version: " << YAT_VERSION << "\n"; |
1346 |
19 Jun 08 |
peter |
49 |
suite.out() << " major: " << YAT_MAJOR_VERSION << "\n"; |
1346 |
19 Jun 08 |
peter |
50 |
suite.out() << " minor: " << YAT_MINOR_VERSION << "\n"; |
1346 |
19 Jun 08 |
peter |
51 |
suite.out() << " patch: " << YAT_PATCH_VERSION << "\n"; |
1292 |
11 May 08 |
peter |
52 |
|
1346 |
19 Jun 08 |
peter |
53 |
suite.out() << "ABI version: " << version() << "\n"; |
1346 |
19 Jun 08 |
peter |
54 |
suite.out() << " major: " << major_version() << "\n"; |
1346 |
19 Jun 08 |
peter |
55 |
suite.out() << " minor: " << minor_version() << "\n"; |
1346 |
19 Jun 08 |
peter |
56 |
suite.out() << " patch: " << patch_version() << "\n"; |
1346 |
19 Jun 08 |
peter |
57 |
|
2943 |
04 Jan 13 |
peter |
58 |
suite.add(YAT_VERSION == version()); |
2943 |
04 Jan 13 |
peter |
59 |
|
1747 |
23 Jan 09 |
peter |
60 |
suite.out() << "Boost API version: " << BOOST_LIB_VERSION << "\n"; |
1346 |
19 Jun 08 |
peter |
61 |
suite.out() << "GSL API version: " << GSL_VERSION << "\n"; |
1346 |
19 Jun 08 |
peter |
62 |
suite.out() << "GSL ABI version: " << gsl_version << "\n"; |
1346 |
19 Jun 08 |
peter |
63 |
|
4270 |
19 Jan 23 |
peter |
64 |
#ifdef YAT_HAVE_HTSLIB |
4270 |
19 Jan 23 |
peter |
65 |
suite.out() << "htslib API version: " << HTS_VERSION << "\n" |
4270 |
19 Jan 23 |
peter |
66 |
<< "htslib ABI version: " << hts_version() << "\n"; |
4270 |
19 Jan 23 |
peter |
67 |
#endif |
1292 |
11 May 08 |
peter |
68 |
return suite.return_value(); |
1292 |
11 May 08 |
peter |
69 |
} |