File: test.cpp

package info (click to toggle)
filezilla 3.0.0~beta2-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 8,516 kB
  • ctags: 6,577
  • sloc: cpp: 35,379; ansic: 30,783; sh: 10,721; makefile: 444; xml: 16
file content (22 lines) | stat: -rw-r--r-- 553 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "FileZilla.h"
#include <iostream>
#include <string>
#include <cppunit/extensions/TestFactoryRegistry.h>
#include <cppunit/ui/text/TestRunner.h>
	
int main(int argc, char* argv[])
{
	if (!wxInitialize())
	{
		std::cout << "Failed to initialize wxWidgets" << std::endl;
		return 1;
	}

	CppUnit::TextUi::TestRunner runner;
	CppUnit::TestFactoryRegistry &registry = CppUnit::TestFactoryRegistry::getRegistry();
	runner.addTest(registry.makeTest());
	bool wasSuccessful = runner.run("", false);

	wxUninitialize();
	return wasSuccessful ? 0 : 1;
}