/* * Copyright (c) 2021 Cyrille Rossant and contributors. All rights reserved. * Licensed under the MIT license. See LICENSE file in the project root for details. * SPDX-License-Identifier: MIT */ /*************************************************************************************************/ /* Datoviz controller test runner */ /*************************************************************************************************/ /*************************************************************************************************/ /* Includes */ /*************************************************************************************************/ #include "_log.h" #include "../../src/controller/tests/test_controller.h" #include "datoviz_testing.h" #include "testing.h" /*************************************************************************************************/ /* Entry-point */ /*************************************************************************************************/ /** * Run controller-module tests. * * @param argc command-line argument count * @param argv command-line arguments * @return process exit code */ int main(int argc, char** argv) { log_set_level_env(); TstSuite suite = tst_suite(); dvz_testing_install_log_adapter(&suite); test_controller(&suite); int res = tst_suite_run(&suite, argc, argv); tst_suite_destroy(&suite); return res; }