27#include <boost/test/unit_test.hpp>
28#include <seastar/core/future.hh>
29#include <seastar/testing/entry_point.hh>
31#define SEASTAR_TEST_INVOKE(func, ...) func(__VA_ARGS__)
38 const std::string _test_file;
40 seastar_test(
const char* test_name,
const char* test_file,
int test_line);
41 seastar_test(
const char* test_name,
const char* test_file,
int test_line,
42 boost::unit_test::decorator::collector_t& decorators);
44 const std::string& get_test_file()
const {
47 static const std::string& get_name();
48 virtual future<> run_test_case()
const = 0;
53namespace exception_predicate {
55std::function<bool(
const std::exception&)> message_equals(std::string_view expected_message);
56std::function<bool(
const std::exception&)> message_contains(std::string_view expected_message);
64#ifdef SEASTAR_TESTING_MAIN
66int main(
int argc,
char** argv) {
67 return seastar::testing::entry_point(argc, argv);
A representation of a possibly not-yet-computed value.
Definition: future.hh:1240
Definition: seastar_test.hh:37
Seastar API namespace.
Definition: abort_on_ebadf.hh:26