2017-10-22 09:14:25 +02:00
|
|
|
/*!
|
|
|
|
* \file test_flags.h
|
|
|
|
* \brief Helper file for unit testing
|
|
|
|
* \author Carles Fernandez-Prades, 2017. cfernandez(at)cttc.es
|
|
|
|
*
|
2020-07-28 16:57:15 +02:00
|
|
|
* -----------------------------------------------------------------------------
|
2017-10-22 09:14:25 +02:00
|
|
|
*
|
2020-12-30 13:35:06 +01:00
|
|
|
* GNSS-SDR is a Global Navigation Satellite System software-defined receiver.
|
2017-10-22 09:14:25 +02:00
|
|
|
* This file is part of GNSS-SDR.
|
|
|
|
*
|
2020-12-30 13:35:06 +01:00
|
|
|
* Copyright (C) 2010-2020 (see AUTHORS file for a list of contributors)
|
2020-02-08 01:20:02 +01:00
|
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
2017-10-22 09:14:25 +02:00
|
|
|
*
|
2020-07-28 16:57:15 +02:00
|
|
|
* -----------------------------------------------------------------------------
|
2017-10-22 09:14:25 +02:00
|
|
|
*/
|
|
|
|
|
2020-02-08 10:10:46 +01:00
|
|
|
#ifndef GNSS_SDR_TEST_FLAGS_H
|
|
|
|
#define GNSS_SDR_TEST_FLAGS_H
|
2017-10-22 09:14:25 +02:00
|
|
|
|
2024-04-29 08:27:33 +02:00
|
|
|
|
|
|
|
#include <cstdint>
|
2019-08-17 13:56:54 +02:00
|
|
|
#include <string>
|
2017-10-22 09:14:25 +02:00
|
|
|
|
2024-04-29 08:27:33 +02:00
|
|
|
|
|
|
|
#if USE_GLOG_AND_GFLAGS
|
|
|
|
#include <gflags/gflags.h>
|
2017-10-22 09:14:25 +02:00
|
|
|
#if defined GNUPLOT_EXECUTABLE
|
2018-03-03 02:03:39 +01:00
|
|
|
DEFINE_string(gnuplot_executable, std::string(GNUPLOT_EXECUTABLE), "Gnuplot binary path");
|
2017-10-22 09:14:25 +02:00
|
|
|
#elif !defined GNUPLOT_EXECUTABLE
|
2018-03-03 02:03:39 +01:00
|
|
|
DEFINE_string(gnuplot_executable, "", "Gnuplot binary path");
|
2017-10-22 09:14:25 +02:00
|
|
|
#endif
|
2017-10-28 20:17:51 +02:00
|
|
|
DEFINE_bool(plot_acq_grid, false, "Plots acquisition grid with gnuplot");
|
2017-10-24 14:23:59 +02:00
|
|
|
DEFINE_int32(plot_decimate, 1, "Decimate plots");
|
2024-04-29 08:27:33 +02:00
|
|
|
#else
|
|
|
|
#include <absl/flags/flag.h>
|
|
|
|
#if defined GNUPLOT_EXECUTABLE
|
2024-05-01 08:39:22 +02:00
|
|
|
ABSL_FLAG(std::string, gnuplot_executable, std::string(GNUPLOT_EXECUTABLE), "Gnuplot binary path");
|
2024-04-29 08:27:33 +02:00
|
|
|
#elif !defined GNUPLOT_EXECUTABLE
|
|
|
|
ABSL_FLAG(std::string, gnuplot_executable, "", "Gnuplot binary path");
|
|
|
|
#endif
|
|
|
|
ABSL_FLAG(bool, plot_acq_grid, false, "Plots acquisition grid with gnuplot");
|
|
|
|
ABSL_FLAG(int32_t, plot_decimate, 1, "Decimate plots");
|
|
|
|
#endif
|
2017-10-22 09:14:25 +02:00
|
|
|
#endif
|