forked from kfrlib/kfr
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathall_tests.cpp
More file actions
38 lines (35 loc) · 824 Bytes
/
all_tests.cpp
File metadata and controls
38 lines (35 loc) · 824 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/**
* KFR (https://www.kfrlib.com)
* Copyright (C) 2016-2023 Dan Cazarin
* See LICENSE.txt for details
*/
#include <kfr/io/tostring.hpp>
#include <kfr/testo/testo.hpp>
#include <kfr/version.hpp>
#ifdef HAVE_MPFR
#include "mpfr/mpfrplus.hpp"
#endif
using namespace kfr;
int main()
{
println(library_version(), " running on ", cpu_runtime());
try
{
#ifdef HAVE_MPFR
mpfr::scoped_precision p(64);
#endif
return testo::run_all("");
}
catch (const std::exception& e)
{
errorln("****************************************");
errorln("***** Exception: ", typeid(e).name(), ": ", e.what());
return -1;
}
catch (...)
{
errorln("****************************************");
errorln("***** Exception: unknown");
return -1;
}
}