feat: add test for desktopentry and jobmanager

Log:
This commit is contained in:
heyuming
2023-07-19 17:56:45 +08:00
committed by black-desk
parent d288752fb3
commit 5fed3ed9f0
19 changed files with 451 additions and 92 deletions

22
tests/main.cpp Normal file
View File

@ -0,0 +1,22 @@
// SPDX-FileCopyrightText: 2023 UnionTech Software Technology Co., Ltd.
//
// SPDX-License-Identifier: LGPL-3.0-or-later
#include <QCoreApplication>
#include <gtest/gtest.h>
#include <QTimer>
#include <sanitizer/asan_interface.h>
int main(int argc, char **argv)
{
QCoreApplication app(argc, argv);
::testing::InitGoogleTest(&argc, argv);
int ret{0};
QTimer::singleShot(0, &app, [&ret] {
ret = RUN_ALL_TESTS();
QCoreApplication::quit();
});
__sanitizer_set_report_path("asan_am.log");
QCoreApplication::exec();
return ret;
}