1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-30 00:00:11 +01:00
VILLASnode/tests/main.c

30 lines
No EOL
869 B
C

/** Custom main() for Criterion
*
* @author Steffen Vogel <stvogel@eonerc.rwth-aachen.de>
* @copyright 2014-2016, Institute for Automation of Complex Power Systems, EONERC
* This file is part of VILLASnode. All Rights Reserved. Proprietary and confidential.
* Unauthorized copying of this file, via any medium is strictly prohibited.
*********************************************************************************/
#include <criterion/criterion.h>
#include <villas/log.h>
#include <villas/memory.h>
#include "config.h"
int main(int argc, char *argv[]) {
struct criterion_test_set *tests = criterion_initialize();
struct log log;
log_init(&log, V, LOG_ALL);
memory_init(DEFAULT_NR_HUGEPAGES);
int result = 0;
if (criterion_handle_args(argc, argv, true))
result = !criterion_run_all_tests(tests);
criterion_finalize(tests);
return result;
}