X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/2b0c2af741efdad01cf749a903c9552c5107fb3d..6a04725375d75975fd853eaf36d4a5d40c5a3ec2:/src/xbt/unit-tests_main.cpp diff --git a/src/xbt/unit-tests_main.cpp b/src/xbt/unit-tests_main.cpp new file mode 100644 index 0000000000..390099964d --- /dev/null +++ b/src/xbt/unit-tests_main.cpp @@ -0,0 +1,16 @@ +/* Copyright (c) 2019. The SimGrid Team. All rights reserved. */ + +/* This program is free software; you can redistribute it and/or modify it + * under the terms of the license (GNU LGPL) which comes with this package. */ + +#define CATCH_CONFIG_RUNNER // we supply our own main() + +#include "catch.hpp" + +#include "xbt/log.h" + +int main(int argc, char* argv[]) +{ + xbt_log_init(&argc, argv); + return Catch::Session().run(argc, argv); +}