Run tests and check expectations in 2 loops
This commit is contained in:
@ -204,6 +204,9 @@ namespace elna::source
|
||||
std::string& identifier() noexcept;
|
||||
};
|
||||
|
||||
/**
|
||||
* Expression defining a composed type like pointer or an array.
|
||||
*/
|
||||
class type_expression : public node
|
||||
{
|
||||
std::string m_base;
|
||||
|
@ -21,13 +21,6 @@ namespace elna
|
||||
expectation_not_found
|
||||
};
|
||||
|
||||
struct test_result final
|
||||
{
|
||||
test_status status{ test_status::successful };
|
||||
int code{ 0 };
|
||||
std::string output;
|
||||
};
|
||||
|
||||
class test_results final
|
||||
{
|
||||
std::uint32_t m_total{ 0 };
|
||||
@ -46,10 +39,10 @@ namespace elna
|
||||
|
||||
boost::process::v2::process_stdio get_output_streams(const std::uint8_t stream_number,
|
||||
boost::asio::readable_pipe& read_pipe);
|
||||
test_result run_for_output(boost::asio::io_context& context, const std::uint8_t stream_number,
|
||||
int run_for_output(boost::asio::io_context& context, const std::uint8_t stream_number,
|
||||
const std::filesystem::path& binary, std::initializer_list<boost::string_view> arguments);
|
||||
std::string find_object(const std::vector<std::filesystem::path>& environment, const std::string& object);
|
||||
test_result build_test(boost::asio::io_context& context, const std::filesystem::directory_entry& test_entry);
|
||||
test_result run_test(boost::asio::io_context& context, const std::filesystem::directory_entry& test_entry);
|
||||
void print_result(const std::filesystem::directory_entry& test_entry, const test_result& result);
|
||||
test_status build_test(boost::asio::io_context& context, const std::filesystem::directory_entry& test_entry);
|
||||
void run_test(boost::asio::io_context& context, const std::filesystem::path& test_entry);
|
||||
void print_result(const std::filesystem::path& test_entry, const test_status& result);
|
||||
}
|
||||
|
Reference in New Issue
Block a user