26 #ifdef USE_TESTMANAGER_AUTOREGISTER
39 namespace Test_IO_GaugeConfig {
42 const std::string filename_input =
"test_IO_GaugeConfig_Binary.yaml";
43 const std::string filename_output =
"stdout";
45 class Parameters_Test_IO_GaugeConfig :
public Parameters {
47 Parameters_Test_IO_GaugeConfig()
49 Register_string(
"gauge_config_type_input",
"NULL");
50 Register_string(
"config_filename_input",
"NULL");
51 Register_string(
"config_filename_output",
"NULL");
53 Register_string(
"verbose_level",
"NULL");
55 Register_double(
"expected_result", 0.0);
63 #ifdef USE_TESTMANAGER_AUTOREGISTER
66 "IO.GaugeConfig.Binary",
79 Parameters_Test_IO_GaugeConfig params_test;
86 params_manager.
read_params(filename_input, ¶ms_all);
88 const string str_gconf_read = params_test.get_string(
"gauge_config_type_input");
89 const string readfile = params_test.get_string(
"config_filename_input");
90 const string testfile = params_test.get_string(
"config_filename_output");
91 const string str_vlevel = params_test.get_string(
"verbose_level");
93 const double expected_result = params_test.get_double(
"expected_result");
99 vout.
general(vl,
" gconf_read = %s\n", str_gconf_read.c_str());
100 vout.
general(vl,
" readfile = %s\n", readfile.c_str());
101 vout.
general(vl,
" testfile = %s\n", testfile.c_str());
102 vout.
general(vl,
" vlevel = %s\n", str_vlevel.c_str());
111 vout.
crucial(vl,
"Test_IO_GaugeConfig: Input parameters have not been set.\n");
135 bool is_equal = (*Utest == *U);
136 if (!is_equal) ++err;
138 vout.
general(vl,
"Test_IO_GaugeConfig_binary:\t%s\n", is_equal ?
"ok" :
"failed");