Source

gpalign-cpp / src / tests / runTests.cpp

//--------------------------------------------------------------------------//
// runTests.cpp
// Lars Yencken <lars.yencken@gmail.com>
// vim: ts=4 sw=4 sts=4 expandtab:
// Mon Oct  8 11:17:22 EST 2007
//--------------------------------------------------------------------------//

#include <cppunit/ui/text/TestRunner.h>
#include "testGenerator.hpp"
#include "testScripts.hpp"
#include "testJapanese.hpp"
#include "testUnicode.hpp"
#include "../platform.hpp"
#include <iostream>
#include <locale>

using namespace std;

//--------------------------------------------------------------------------//

int main(int argc, char *argv[])
{
    ios::sync_with_stdio(false);
#ifdef BSD
    setlocale(LC_CTYPE, "g_locale");
    // if (!setlocale(LC_CTYPE, "en_US.UTF8")) {
    //     wcerr << "Error: couldn't set the C locale to use utf8" << endl;
    //     exit(1);
    // }
#else
    locale utf8(g_locale);
    wcout.imbue(utf8);
    wcerr.imbue(utf8);
#endif

    CppUnit::TextUi::TestRunner runner;
    runner.addTest(TestUnicode::suite());
    runner.addTest(GeneratorTest::suite());
    runner.addTest(ScriptsTest::suite());
    runner.addTest(TestJapanese::suite());
    runner.run();
    return 0;
}
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.