2012-12-28 15:40:03 +00:00
|
|
|
/*!
|
|
|
|
* \file single_test_main.cc
|
|
|
|
* \brief This file contains the main function for tests (used with CTest).
|
|
|
|
* \author Carles Fernandez-Prades, 2012. cfernandez(at)cttc.es
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* -------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* Copyright (C) 2010-2013 (see AUTHORS file for a list of contributors)
|
|
|
|
*
|
|
|
|
* GNSS-SDR is a software defined Global Navigation
|
|
|
|
* Satellite Systems receiver
|
|
|
|
*
|
|
|
|
* This file is part of GNSS-SDR.
|
|
|
|
*
|
|
|
|
* GNSS-SDR is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* at your option) any later version.
|
|
|
|
*
|
|
|
|
* GNSS-SDR is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with GNSS-SDR. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
*
|
|
|
|
* -------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
#include <queue>
|
|
|
|
#include <boost/thread/mutex.hpp>
|
|
|
|
#include <boost/thread/thread.hpp>
|
|
|
|
#include <boost/filesystem.hpp>
|
2014-03-16 19:58:29 +00:00
|
|
|
#include <gflags/gflags.h>
|
|
|
|
#include <glog/logging.h>
|
|
|
|
#include <gtest/gtest.h>
|
|
|
|
#include <gnuradio/msg_queue.h>
|
2012-12-28 15:40:03 +00:00
|
|
|
#include "concurrent_queue.h"
|
2014-03-16 19:58:29 +00:00
|
|
|
#include "concurrent_map.h"
|
2012-12-28 15:40:03 +00:00
|
|
|
#include "gps_navigation_message.h"
|
|
|
|
|
2013-03-15 18:05:37 +00:00
|
|
|
|
|
|
|
concurrent_queue<Gps_Ephemeris> global_gps_ephemeris_queue2;
|
2013-03-11 18:29:33 +00:00
|
|
|
concurrent_queue<Gps_Ephemeris> global_gps_ephemeris_queue;
|
|
|
|
concurrent_queue<Gps_Iono> global_gps_iono_queue;
|
|
|
|
concurrent_queue<Gps_Utc_Model> global_gps_utc_model_queue;
|
|
|
|
concurrent_queue<Gps_Almanac> global_gps_almanac_queue;
|
2012-12-28 15:40:03 +00:00
|
|
|
|
2013-03-15 18:05:37 +00:00
|
|
|
concurrent_map<Gps_Ephemeris> global_gps_ephemeris_map;
|
|
|
|
concurrent_map<Gps_Iono> global_gps_iono_map;
|
|
|
|
concurrent_map<Gps_Utc_Model> global_gps_utc_model_map;
|
|
|
|
|
2013-11-15 17:45:24 +00:00
|
|
|
|
|
|
|
concurrent_queue<Galileo_Ephemeris> global_galileo_ephemeris_queue;
|
|
|
|
concurrent_queue<Galileo_Iono> global_galileo_iono_queue;
|
|
|
|
concurrent_queue<Galileo_Utc_Model> global_galileo_utc_model_queue;
|
|
|
|
concurrent_queue<Galileo_Almanac> global_galileo_almanac_queue;
|
|
|
|
|
|
|
|
concurrent_map<Galileo_Ephemeris> global_galileo_ephemeris_map;
|
|
|
|
concurrent_map<Galileo_Iono> global_galileo_iono_map;
|
|
|
|
concurrent_map<Galileo_Utc_Model> global_galileo_utc_model_map;
|
|
|
|
concurrent_map<Galileo_Almanac> global_galileo_almanac_map;
|
|
|
|
|
|
|
|
concurrent_queue<Sbas_Raw_Msg> global_sbas_raw_msg_queue;
|
|
|
|
concurrent_queue<Sbas_Ionosphere_Correction> global_sbas_iono_queue;
|
|
|
|
concurrent_queue<Sbas_Satellite_Correction> global_sbas_sat_corr_queue;
|
|
|
|
concurrent_queue<Sbas_Ephemeris> global_sbas_ephemeris_queue;
|
|
|
|
|
|
|
|
concurrent_map<Sbas_Ionosphere_Correction> global_sbas_iono_map;
|
|
|
|
concurrent_map<Sbas_Satellite_Correction> global_sbas_sat_corr_map;
|
|
|
|
concurrent_map<Sbas_Ephemeris> global_sbas_ephemeris_map;
|
|
|
|
|
|
|
|
|
2012-12-28 15:40:03 +00:00
|
|
|
int main(int argc, char **argv)
|
|
|
|
{
|
2013-07-04 13:47:40 +00:00
|
|
|
google::ParseCommandLineFlags(&argc, &argv, true);
|
|
|
|
testing::InitGoogleTest(&argc, argv);
|
2012-12-28 15:40:03 +00:00
|
|
|
google::InitGoogleLogging(argv[0]);
|
|
|
|
return RUN_ALL_TESTS();
|
|
|
|
}
|