88 lines
2.9 KiB
C
88 lines
2.9 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 integration test runner */
|
|
/*************************************************************************************************/
|
|
|
|
|
|
|
|
/*************************************************************************************************/
|
|
/* Includes */
|
|
/*************************************************************************************************/
|
|
|
|
#include <stddef.h>
|
|
|
|
#include "_log.h"
|
|
#include "../../src/canvas/tests/test_canvas.h"
|
|
#include "../../src/common/tests/test_common.h"
|
|
#if defined(DVZ_HAS_DRP2) && DVZ_HAS_DRP2
|
|
#include "../../src/drp2/tests/test_drp2.h"
|
|
#endif
|
|
#include "../../src/fileio/tests/test_fileio.h"
|
|
#include "../../src/geom/tests/test_geom.h"
|
|
#include "../../src/input/tests/test_input.h"
|
|
#include "../../src/math/tests/test_math.h"
|
|
#if defined(DVZ_HAS_SCENE) && DVZ_HAS_SCENE
|
|
#include "../../src/scene/tests/test_scene.h"
|
|
#endif
|
|
#include "../../src/stream/tests/test_stream.h"
|
|
#include "../../src/thread/tests/test_thread.h"
|
|
#include "../../src/window/tests/test_window.h"
|
|
#if (defined(DVZ_HAS_CUDA) && DVZ_HAS_CUDA) || (defined(DVZ_HAS_KVZ) && DVZ_HAS_KVZ)
|
|
#include "../../src/video/tests/test_video.h"
|
|
#endif
|
|
#include "../../src/vk/tests/test_vk.h"
|
|
#include "../../src/vklite/tests/test_vklite.h"
|
|
#include "datoviz_testing.h"
|
|
#include "testing.h"
|
|
|
|
|
|
|
|
/*************************************************************************************************/
|
|
/* Entry-point */
|
|
/*************************************************************************************************/
|
|
|
|
/**
|
|
* Run all active-module tests in a single integration runner.
|
|
*
|
|
* @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_common(&suite);
|
|
#if defined(DVZ_HAS_DRP2) && DVZ_HAS_DRP2
|
|
test_drp2(&suite);
|
|
#endif
|
|
test_fileio(&suite);
|
|
test_geom(&suite);
|
|
test_math(&suite);
|
|
#if defined(DVZ_HAS_SCENE) && DVZ_HAS_SCENE
|
|
test_scene(&suite);
|
|
#endif
|
|
test_stream(&suite);
|
|
test_thread(&suite);
|
|
test_input(&suite);
|
|
test_window(&suite);
|
|
test_canvas(&suite);
|
|
#if (defined(DVZ_HAS_CUDA) && DVZ_HAS_CUDA) || (defined(DVZ_HAS_KVZ) && DVZ_HAS_KVZ)
|
|
test_video(&suite);
|
|
#endif
|
|
test_vk(&suite);
|
|
test_vklite(&suite);
|
|
|
|
int res = tst_suite_run(&suite, argc, argv);
|
|
tst_suite_destroy(&suite);
|
|
return res;
|
|
}
|