Skip the ambiguity process unit test if the input file cannot be found

This commit is contained in:
Daniel Gustainis 2023-12-24 05:42:15 +00:00
parent b2c787330c
commit df66c29590

View file

@ -10,8 +10,10 @@
#include <catch2/generators/catch_generators.hpp>
#include "process/ambiguity/Ambiguity.h"
#include <random>
#include <iostream>
#include <filesystem>
/// @brief Use random_device as RNG.
std::random_device g_rd;
@ -147,6 +149,12 @@ TEST_CASE("Process_Simple", "[process]")
/// @brief Test processing from a file.
TEST_CASE("Process_File", "[process]")
{
std::filesystem::path test_input_file("20231214-230611.rspduo");
// Bail if the test file doesn't exist
if (!std::filesystem::exists(test_input_file)) {
SKIP("Input test file does not exist.");
}
auto round_hamming = GENERATE(true, false);
int32_t delayMin{-10};