1
0
Fork 0
mirror of https://git.rwth-aachen.de/acs/public/villas/node/ synced 2025-03-09 00:00:00 +01:00

add custom main() for criterion tests in order to initiatize huge pages

This commit is contained in:
Steffen Vogel 2016-11-20 02:50:49 -05:00
parent 0f7bd02e41
commit b8a8476a92

26
tests/main.c Normal file
View file

@ -0,0 +1,26 @@
/** 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>
int main(int argc, char *argv[]) {
struct criterion_test_set *tests = criterion_initialize();
info("Initialize memory system");
memory_init();
int result = 0;
if (criterion_handle_args(argc, argv, true))
result = !criterion_run_all_tests(tests);
criterion_finalize(tests);
return result;
}