source: filezilla/trunk/fuentes/tests/test.cpp @ 3185

Last change on this file since 3185 was 3185, checked in by jrpelegrina, 2 years ago

Update new version: 3.15.02

File size: 628 bytes
Line 
1#include <libfilezilla_engine.h>
2#include <iostream>
3#include <string>
4#include <cppunit/extensions/TestFactoryRegistry.h>
5#include <cppunit/ui/text/TestRunner.h>
6#include <locale.h>
7#include <wx/init.h>
8
9int main(int argc, char* argv[])
10{
11        setlocale(LC_ALL, "");
12
13        if (!wxInitialize())
14        {
15                std::cout << "Failed to initialize wxWidgets" << std::endl;
16                return 1;
17        }
18
19        CppUnit::TextUi::TestRunner runner;
20        CppUnit::TestFactoryRegistry &registry = CppUnit::TestFactoryRegistry::getRegistry();
21        runner.addTest(registry.makeTest());
22        bool wasSuccessful = runner.run("", false);
23
24        wxUninitialize();
25        return wasSuccessful ? 0 : 1;
26}
Note: See TracBrowser for help on using the repository browser.