![]() |
Shamrock 2025.10.0
Astrophysical Code
|
#include "shambase/bytestream.hpp"#include "shambase/exception.hpp"#include "shambase/stacktrace.hpp"#include "shambase/string.hpp"#include "shambase/term_colors.hpp"#include "shambase/time.hpp"#include "shamalgs/collective/gather_str.hpp"#include "shambindings/pybindaliases.hpp"#include "shambindings/start_python.hpp"#include "shamcmdopt/ci_env.hpp"#include "shamcmdopt/env.hpp"#include "shamcomm/logs.hpp"#include "shamcomm/worldInfo.hpp"#include "shamrock/version.hpp"#include "shamsys/MpiWrapper.hpp"#include "shamsys/NodeInstance.hpp"#include "shamsys/legacy/log.hpp"#include "shamsys/legacy/sycl_handler.hpp"#include "shamtest.hpp"#include "shamtest/details/TestResult.hpp"#include "shamtest/details/reporters/texTestReport.hpp"#include <pybind11/embed.h>#include <unordered_map>#include <cmath>#include <cstdlib>#include <filesystem>#include <sstream>#include <string>#include <vector>Go to the source code of this file.
Namespaces | |
| namespace | shamtest |
| namespace containing stuff related to the test library | |
Functions | |
| void | shamtest::_start_test_print (details::Test &test, u32 test_num, u32 test_count) |
| print the line in terminal when a test start | |
| void | shamtest::_end_test_print (std::vector< details::TestResult > &rank_results, shambase::Timer &timer) |
| print the line in terminal when a test ends | |
| bool | shamtest::is_test_failed (details::TestResult &res) |
| check is a test is failed | |
| std::string | shamtest::gen_fail_log (details::TestResult &res) |
| Generate a failure log at the end of the tests. | |
| void | shamtest::_print_summary (std::vector< details::TestResult > &results) |
| Print summary of the test run. | |
| std::vector< details::TestResult > | shamtest::gather_tests (std::vector< details::TestResult > rank_result, usize &gather_bytecount) |
| Gather test results from all MPI ranks. | |
| void | shamtest::print_test_list () |
| print all the available tests | |
| void | shamtest::write_json_report (std::vector< details::TestResult > &results, std::string outfile) |
| Write the JSON report. | |
| void | shamtest::write_tex_report (std::vector< details::TestResult > &results, bool mark_fail) |
| Write the tex report. | |
| std::vector< u32 > | shamtest::select_print_tests (TestConfig cfg) |
| int | shamtest::run_all_tests (int argc, char *argv[], TestConfig cfg) |
| run all the tests | |
| void | shamtest::gen_test_list (std::string_view outfile) |
| output test list to a file | |
Variables | |
| bool | shamtest::is_run_only = false |
| Is in run only mode. | |
| bool | shamtest::is_full_output_mode = false |
| Is in full output mode. | |
Definition in file shamtest.cpp.