mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2024-11-14 03:37:16 +01:00
4a6bfc086c
Switched to POCO library for unified platform/library interface. Deprecated the external module API. It was creating more problems than solving. Removed most built-in libraries in favor of system libraries for easier maintenance. Cleaned and secured code with help from static analyzers.
31 lines
654 B
C++
31 lines
654 B
C++
//
|
|
// WinCEDriver.cpp
|
|
//
|
|
// Console-based test driver for Windows CE.
|
|
//
|
|
// Copyright (c) 2004-2010, Applied Informatics Software Engineering GmbH.
|
|
// and Contributors.
|
|
//
|
|
// SPDX-License-Identifier: BSL-1.0
|
|
//
|
|
|
|
|
|
#include "CppUnit/TestRunner.h"
|
|
#include "FoundationTestSuite.h"
|
|
#include <cstdlib>
|
|
|
|
|
|
int wmain(int argc, wchar_t* argv[])
|
|
{
|
|
std::vector<std::string> args;
|
|
for (int i = 0; i < argc; ++i)
|
|
{
|
|
char buffer[1024];
|
|
std::wcstombs(buffer, argv[i], sizeof(buffer));
|
|
args.push_back(std::string(buffer));
|
|
}
|
|
CppUnit::TestRunner runner;
|
|
runner.addTest("FoundationTestSuite", FoundationTestSuite::suite());
|
|
return runner.run(args) ? 0 : 1;
|
|
}
|