source: trunk/test/version.cc @ 2943

Last change on this file since 2943 was 2943, checked in by Peter, 9 years ago

merge release 0.10 into trunk

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1// $Id: version.cc 2943 2013-01-04 06:38:38Z peter $
2
3/*
4  Copyright (C) 2008 Jari Häkkinen, Peter Johansson
5  Copyright (C) 2009, 2011, 2012 Peter Johansson
6
7  This file is part of the yat library, http://dev.thep.lu.se/yat
8
9  The yat library is free software; you can redistribute it and/or
10  modify it under the terms of the GNU General Public License as
11  published by the Free Software Foundation; either version 3 of the
12  License, or (at your option) any later version.
13
14  The yat library is distributed in the hope that it will be useful,
15  but WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
17  General Public License for more details.
18
19  You should have received a copy of the GNU General Public License
20  along with yat. If not, see <http://www.gnu.org/licenses/>.
21*/
22
23#include <config.h>
24
25#include "Suite.h"
26
27#include "yat/utility/version.h"
28
29#include <boost/version.hpp>
30#include <gsl/gsl_version.h>
31
32int main(int argc, char* argv[])
33{ 
34#if !(YAT_VERSION_AT_LEAST(0, 7, 11))
35#error "we should not be here!"
36#endif
37
38  using namespace theplu::yat::utility;
39  theplu::yat::test::Suite suite(argc, argv);
40
41  suite.out() << "API version: " << YAT_VERSION << "\n";
42  suite.out() << "    major:   " << YAT_MAJOR_VERSION << "\n";
43  suite.out() << "    minor:   " << YAT_MINOR_VERSION << "\n";
44  suite.out() << "    patch:   " << YAT_PATCH_VERSION << "\n";
45
46  suite.out() << "ABI version: " << version() << "\n";
47  suite.out() << "    major:   " << major_version() << "\n";
48  suite.out() << "    minor:   " << minor_version() << "\n";
49  suite.out() << "    patch:   " << patch_version() << "\n";
50
51  suite.add(YAT_VERSION == version());
52
53  suite.out() << "Boost API version: " << BOOST_LIB_VERSION << "\n";
54  suite.out() << "GSL API version: " << GSL_VERSION << "\n";
55  suite.out() << "GSL ABI version: " << gsl_version << "\n";
56
57  return suite.return_value();
58}
Note: See TracBrowser for help on using the repository browser.