Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

26 lines
532 B
C++

// Copyright (c) 2020-now by the Zeek Project. See LICENSE for details.
#include <hilti/rt/init.h>
#define DOCTEST_CONFIG_IMPLEMENT
#include <doctest/doctest.h>
struct RuntimeWrapper {
~RuntimeWrapper() { hilti::rt::done(); }
};
// NOLINTNEXTLINE(bugprone-exception-escape)
int main(int argc, char** argv) {
doctest::Context context;
auto rt = RuntimeWrapper();
context.applyCommandLine(argc, argv);
int result = context.run();
if ( context.shouldExit() )
return result;
return result;
}