poco/Data/ODBC/testsuite/src/Driver.cpp

29 lines
608 B
C++
Raw Normal View History

2012-04-29 18:52:25 +00:00
//
// Driver.cpp
//
// Console-based test driver for Poco SQLite.
//
// Copyright (c) 2006, Applied Informatics Software Engineering GmbH.
// and Contributors.
//
// SPDX-License-Identifier: BSL-1.0
2012-04-29 18:52:25 +00:00
//
#include "CppUnit/TestRunner.h"
#include "ODBCTestSuite.h"
#include "Poco/Data/ODBC/Connector.h"
2012-04-29 18:52:25 +00:00
int main(int ac, char **av)
{
Poco::Data::ODBC::Connector::registerConnector();
std::vector<std::string> args;
for (int i = 0; i < ac; ++i)
args.push_back(std::string(av[i]));
CppUnit::TestRunner runner;
2016-03-04 12:26:24 +01:00
runner.addTest("ODBCTestSuite", ODBCTestSuite::suite());
return runner.run(args) ? 0 : 1;
}