unittest/raster/main.cpp
Go to the documentation of this file.
1 /* Copyright (C) 2008 National Institute For Space Research (INPE) - Brazil.
2 
3  This file is part of the TerraLib - a Framework for building GIS enabled applications.
4 
5  TerraLib is free software: you can redistribute it and/or modify
6  it under the terms of the GNU Lesser General Public License as published by
7  the Free Software Foundation, either version 3 of the License,
8  or (at your option) any later version.
9 
10  TerraLib is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU Lesser General Public License for more details.
14 
15  You should have received a copy of the GNU Lesser General Public License
16  along with TerraLib. See COPYING. If not, write to
17  TerraLib Team at <terralib-team@terralib.org>.
18  */
19 
20 /*!
21  \file terralib/unittest/raster/main.cpp
22 
23  \brief Main file of test suit for the Raster Module.
24 */
25 
26 // TerraLib
27 #include <terralib/raster_fw.h>
28 #include <terralib/common/Module.h>
29 #include <terralib/core/plugin.h>
30 #include "Config.h"
31 #include "LoadModules.h"
32 
33 // STL
34 #include <cstdlib>
35 
36 // Boost
37 #define BOOST_TEST_NO_MAIN
38 #include <boost/test/unit_test.hpp>
39 
41 {
42  return true;
43 }
44 
45 int main(int argc, char *argv[])
46 {
47  /* Initialize Terralib platform */
49 
50  LoadModules();
51 
52  int resultStatus = boost::unit_test::unit_test_main(init_unit_test, argc, argv);
53 
54  /* Finalize TerraLib Plataform */
56 
57  return resultStatus;
58 }
Forward declarations for the Raster module.
bool init_unit_test()
Include files for Core Plugin Library.
void finalize()
It finalizes the TerraLib Platform.
static TerraLib & getInstance()
It returns a reference to the singleton instance.
void initialize()
It initializes the TerraLib Platform.
int main(int argc, char *argv[])
This singleton defines an entry in the Platform for the TerraLib Common Runtime module.
void LoadModules()
Load terralib modules.