kfr

Fast, modern C++ DSP framework, FFT, Sample Rate Conversion, FIR/IIR/Biquad Filters (SSE, AVX, AVX-512, ARM NEON)
Log | Files | Refs | README

all_tests.cpp (824B)


      1 /**
      2  * KFR (https://www.kfrlib.com)
      3  * Copyright (C) 2016-2023 Dan Cazarin
      4  * See LICENSE.txt for details
      5  */
      6 
      7 #include <kfr/io/tostring.hpp>
      8 #include <kfr/testo/testo.hpp>
      9 #include <kfr/version.hpp>
     10 #ifdef HAVE_MPFR
     11 #include "mpfr/mpfrplus.hpp"
     12 #endif
     13 
     14 using namespace kfr;
     15 
     16 int main()
     17 {
     18     println(library_version(), " running on ", cpu_runtime());
     19     try
     20     {
     21 #ifdef HAVE_MPFR
     22         mpfr::scoped_precision p(64);
     23 #endif
     24         return testo::run_all("");
     25     }
     26     catch (const std::exception& e)
     27     {
     28         errorln("****************************************");
     29         errorln("***** Exception: ", typeid(e).name(), ": ", e.what());
     30         return -1;
     31     }
     32     catch (...)
     33     {
     34         errorln("****************************************");
     35         errorln("***** Exception: unknown");
     36         return -1;
     37     }
     38 }