aboutsummaryrefslogtreecommitdiff
path: root/toolsrc/src/vcpkg-test/catch.cpp
blob: fb62c5d06e22269024e2eced63941eff339107a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#define CATCH_CONFIG_RUNNER
#include <catch2/catch.hpp>

#include <vcpkg/base/system.debug.h>
#include <vcpkg/base/system.h>

int main(int argc, char** argv)
{
    if (vcpkg::System::get_environment_variable("VCPKG_DEBUG").value_or("") == "1") vcpkg::Debug::g_debugging = true;

    return Catch::Session().run(argc, argv);
}