mirror of
https://github.com/30hours/blah2.git
synced 2024-11-08 12:25:42 +00:00
Skip the ambiguity process unit test if the input file cannot be found
This commit is contained in:
parent
b2c787330c
commit
df66c29590
1 changed files with 8 additions and 0 deletions
|
@ -10,8 +10,10 @@
|
||||||
#include <catch2/generators/catch_generators.hpp>
|
#include <catch2/generators/catch_generators.hpp>
|
||||||
|
|
||||||
#include "process/ambiguity/Ambiguity.h"
|
#include "process/ambiguity/Ambiguity.h"
|
||||||
|
|
||||||
#include <random>
|
#include <random>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
|
#include <filesystem>
|
||||||
|
|
||||||
/// @brief Use random_device as RNG.
|
/// @brief Use random_device as RNG.
|
||||||
std::random_device g_rd;
|
std::random_device g_rd;
|
||||||
|
@ -147,6 +149,12 @@ TEST_CASE("Process_Simple", "[process]")
|
||||||
/// @brief Test processing from a file.
|
/// @brief Test processing from a file.
|
||||||
TEST_CASE("Process_File", "[process]")
|
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);
|
auto round_hamming = GENERATE(true, false);
|
||||||
|
|
||||||
int32_t delayMin{-10};
|
int32_t delayMin{-10};
|
||||||
|
|
Loading…
Reference in a new issue