2012-06-10 16:50:54 +00:00
|
|
|
/*
|
|
|
|
|
* synergy -- mouse and keyboard sharing utility
|
2024-07-22 16:48:02 +00:00
|
|
|
* Copyright (C) 2012 Symless Ltd.
|
2012-09-04 02:09:56 +00:00
|
|
|
* Copyright (C) 2011 Nick Bolton
|
2024-07-02 19:07:06 +00:00
|
|
|
*
|
2012-06-10 16:50:54 +00:00
|
|
|
* This package is free software; you can redistribute it and/or
|
|
|
|
|
* modify it under the terms of the GNU General Public License
|
2015-05-03 02:33:52 +00:00
|
|
|
* found in the file LICENSE that should have accompanied this file.
|
2024-07-02 19:07:06 +00:00
|
|
|
*
|
2012-06-10 16:50:54 +00:00
|
|
|
* This package is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
*/
|
|
|
|
|
|
2014-02-28 12:36:45 +00:00
|
|
|
#include "arch/Arch.h"
|
|
|
|
|
#include "base/Log.h"
|
2024-07-22 16:48:02 +00:00
|
|
|
#include "shared/ExitTimeout.h"
|
2012-06-10 16:50:54 +00:00
|
|
|
|
|
|
|
|
#if SYSAPI_WIN32
|
2014-02-28 12:36:45 +00:00
|
|
|
#include "arch/win32/ArchMiscWindows.h"
|
2012-06-10 16:50:54 +00:00
|
|
|
#endif
|
|
|
|
|
|
2024-07-16 08:30:35 +00:00
|
|
|
#include <gtest/gtest.h>
|
2014-02-28 12:36:45 +00:00
|
|
|
|
2024-07-22 16:48:02 +00:00
|
|
|
using synergy::test::ExitTimeout;
|
2012-06-10 16:50:54 +00:00
|
|
|
|
2024-07-02 19:07:06 +00:00
|
|
|
int main(int argc, char **argv) {
|
2024-07-22 16:48:02 +00:00
|
|
|
ExitTimeout exitTimeout(1, "Integration tests");
|
|
|
|
|
|
2012-06-10 16:50:54 +00:00
|
|
|
#if SYSAPI_WIN32
|
2024-07-02 19:07:06 +00:00
|
|
|
// record window instance for tray icon, etc
|
|
|
|
|
ArchMiscWindows::setInstanceWin32(GetModuleHandle(NULL));
|
2012-06-10 16:50:54 +00:00
|
|
|
#endif
|
|
|
|
|
|
2024-07-02 19:07:06 +00:00
|
|
|
Arch arch;
|
|
|
|
|
arch.init();
|
2012-06-10 16:50:54 +00:00
|
|
|
|
2024-07-02 19:07:06 +00:00
|
|
|
Log log;
|
|
|
|
|
log.setFilter(kDEBUG2);
|
|
|
|
|
|
2024-07-16 08:30:35 +00:00
|
|
|
::testing::GTEST_FLAG(throw_on_failure) = true;
|
2024-07-02 19:07:06 +00:00
|
|
|
testing::InitGoogleTest(&argc, argv);
|
2012-06-10 16:50:54 +00:00
|
|
|
|
2024-07-18 16:51:06 +00:00
|
|
|
// return code 1 means the test failed.
|
|
|
|
|
// any other non-zero code is probably a memory error.
|
2024-07-22 16:48:02 +00:00
|
|
|
return RUN_ALL_TESTS();
|
2012-06-10 16:50:54 +00:00
|
|
|
}
|