2012-01-23 00:52:05 +00:00
|
|
|
/*!
|
|
|
|
* \file test_main.cc
|
2012-02-13 11:02:53 +00:00
|
|
|
* \brief This file implements all system tests.
|
2012-01-23 00:52:05 +00:00
|
|
|
* \author Carles Fernandez-Prades, 2012. cfernandez(at)cttc.es
|
|
|
|
*
|
|
|
|
*
|
|
|
|
* -------------------------------------------------------------------------
|
|
|
|
*
|
|
|
|
* Copyright (C) 2010-2012 (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/>.
|
|
|
|
*
|
|
|
|
* -------------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2011-10-01 18:45:20 +00:00
|
|
|
#include <iostream>
|
2012-01-23 00:52:05 +00:00
|
|
|
#include <queue>
|
2011-10-01 18:45:20 +00:00
|
|
|
#include <gtest/gtest.h>
|
|
|
|
#include <glog/log_severity.h>
|
|
|
|
#include <glog/logging.h>
|
2013-07-04 13:47:40 +00:00
|
|
|
#include <gnuradio/msg_queue.h>
|
2012-01-23 00:52:05 +00:00
|
|
|
#include <boost/thread/mutex.hpp>
|
|
|
|
#include <boost/thread/thread.hpp>
|
|
|
|
#include <boost/filesystem.hpp>
|
|
|
|
#include "concurrent_queue.h"
|
2013-03-15 18:05:37 +00:00
|
|
|
#include "concurrent_map.h"
|
2012-01-23 00:52:05 +00:00
|
|
|
#include "gps_navigation_message.h"
|
|
|
|
|
2013-07-15 17:07:10 +00:00
|
|
|
#include "gps_ephemeris.h"
|
|
|
|
#include "gps_almanac.h"
|
|
|
|
#include "gps_iono.h"
|
|
|
|
#include "gps_utc_model.h"
|
|
|
|
|
|
|
|
#include "galileo_ephemeris.h"
|
|
|
|
#include "galileo_almanac.h"
|
|
|
|
#include "galileo_iono.h"
|
|
|
|
#include "galileo_utc_model.h"
|
|
|
|
|
2013-11-09 23:11:46 +00:00
|
|
|
#include "sbas_ephemeris.h"
|
|
|
|
#include "sbas_telemetry_data.h"
|
|
|
|
#include "sbas_ionospheric_correction.h"
|
|
|
|
#include "sbas_satellite_correction.h"
|
|
|
|
#include "sbas_time.h"
|
|
|
|
|
2013-07-15 17:07:10 +00:00
|
|
|
#include "control_thread.h"
|
2012-01-23 00:52:05 +00:00
|
|
|
|
2013-07-04 13:47:40 +00:00
|
|
|
//#include "arithmetic/complex_arithmetic_libc.cc"
|
|
|
|
//#include "arithmetic/correlations_libc.cc"
|
|
|
|
//#include "arithmetic/cordic_test.cc"
|
2013-02-17 09:54:41 +00:00
|
|
|
#include "configuration/file_configuration_test.cc"
|
|
|
|
#include "configuration/in_memory_configuration_test.cc"
|
2012-01-25 03:16:08 +00:00
|
|
|
#include "control_thread/control_message_factory_test.cc"
|
2012-01-23 00:52:05 +00:00
|
|
|
//#include "control_thread/control_thread_test.cc"
|
2012-01-25 03:16:08 +00:00
|
|
|
#include "flowgraph/pass_through_test.cc"
|
2013-11-09 23:11:46 +00:00
|
|
|
|
|
|
|
#include "gnss_block/gnss_block_factory_test.cc"
|
|
|
|
#include "gnuradio_block/gnss_sdr_valve_test.cc"
|
|
|
|
#include "gnuradio_block/direct_resampler_conditioner_cc_test.cc"
|
|
|
|
#include "string_converter/string_converter_test.cc"
|
|
|
|
|
2012-01-23 00:52:05 +00:00
|
|
|
//#include "flowgraph/gnss_flowgraph_test.cc"
|
2013-02-17 09:54:41 +00:00
|
|
|
#include "gnss_block/file_output_filter_test.cc"
|
2012-06-22 14:17:28 +00:00
|
|
|
#include "gnss_block/file_signal_source_test.cc"
|
2012-02-24 16:06:14 +00:00
|
|
|
#include "gnss_block/fir_filter_test.cc"
|
2013-08-28 17:17:57 +00:00
|
|
|
|
2013-11-09 23:11:46 +00:00
|
|
|
#include "gnss_block/gps_l1_ca_pcps_acquisition_test.cc"
|
2013-08-28 17:17:57 +00:00
|
|
|
#include "gnss_block/gps_l1_ca_pcps_acquisition_gsoc2013_test.cc"
|
2013-11-09 23:11:46 +00:00
|
|
|
//#include "gnss_block/gps_l1_ca_pcps_multithread_acquisition_gsoc2013_test.cc"
|
2013-10-01 20:32:04 +00:00
|
|
|
#if OPENCL
|
|
|
|
#include "gnss_block/gps_l1_ca_pcps_opencl_acquisition_gsoc2013_test.cc"
|
|
|
|
#endif
|
2013-08-28 17:17:57 +00:00
|
|
|
#include "gnss_block/gps_l1_ca_pcps_tong_acquisition_gsoc2013_test.cc"
|
2013-11-09 23:11:46 +00:00
|
|
|
#include "gnss_block/galileo_e1_pcps_ambiguous_acquisition_test.cc"
|
|
|
|
#include "gnss_block/galileo_e1_pcps_ambiguous_acquisition_gsoc_test.cc"
|
2013-08-28 17:17:57 +00:00
|
|
|
#include "gnss_block/galileo_e1_pcps_ambiguous_acquisition_gsoc2013_test.cc"
|
|
|
|
#include "gnss_block/galileo_e1_pcps_8ms_ambiguous_acquisition_gsoc2013_test.cc"
|
|
|
|
#include "gnss_block/galileo_e1_pcps_tong_ambiguous_acquisition_gsoc2013_test.cc"
|
|
|
|
#include "gnss_block/galileo_e1_pcps_cccwsr_ambiguous_acquisition_gsoc2013_test.cc"
|
|
|
|
|
2013-02-17 09:54:41 +00:00
|
|
|
#include "gnss_block/galileo_e1_dll_pll_veml_tracking_test.cc"
|
2013-08-28 17:17:57 +00:00
|
|
|
|
2013-11-09 23:11:46 +00:00
|
|
|
|
2013-02-17 09:54:41 +00:00
|
|
|
|
2013-04-02 14:02:55 +00:00
|
|
|
|
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;
|
2013-04-02 14:02:55 +00:00
|
|
|
concurrent_queue<Gps_Acq_Assist> global_gps_acq_assist_queue;
|
|
|
|
|
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-04-02 14:02:55 +00:00
|
|
|
concurrent_map<Gps_Almanac> global_gps_almanac_map;
|
|
|
|
concurrent_map<Gps_Acq_Assist> global_gps_acq_assist_map;
|
2012-01-23 00:52:05 +00:00
|
|
|
|
2013-07-15 17:07:10 +00:00
|
|
|
// For GALILEO NAVIGATION
|
|
|
|
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;
|
2011-10-01 18:45:20 +00:00
|
|
|
|
2013-11-09 23:11:46 +00:00
|
|
|
// For SBAS CORRECTIONS
|
|
|
|
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-01-23 00:52:05 +00:00
|
|
|
int main(int argc, char **argv)
|
|
|
|
{
|
|
|
|
std::cout << "Running main() from test_main.cc" << std::endl;
|
|
|
|
testing::InitGoogleTest(&argc, argv);
|
|
|
|
google::InitGoogleLogging(argv[0]);
|
|
|
|
return RUN_ALL_TESTS();
|
|
|
|
}
|