48 lines
1.6 KiB
C
48 lines
1.6 KiB
C
/*
|
|
* 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 thread test runner */
|
|
/*************************************************************************************************/
|
|
|
|
|
|
|
|
/*************************************************************************************************/
|
|
/* Includes */
|
|
/*************************************************************************************************/
|
|
|
|
#include "_log.h"
|
|
#include "../../src/thread/tests/test_thread.h"
|
|
#include "datoviz_testing.h"
|
|
#include "testing.h"
|
|
|
|
|
|
|
|
/*************************************************************************************************/
|
|
/* Entry-point */
|
|
/*************************************************************************************************/
|
|
|
|
/**
|
|
* Run thread-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_thread(&suite);
|
|
|
|
int res = tst_suite_run(&suite, argc, argv);
|
|
tst_suite_destroy(&suite);
|
|
return res;
|
|
}
|