Source

Magnum / source / libs / magnum_net / unittest / main.cpp

/* 
  Magnum 
  Copyright (C) 2002-2012 Kaya Kupferschmidt. All Rights Reserved.

  This software is provided 'as-is', without any express or implied
  warranty.  In no event will the authors be held liable for any damages
  arising from the use of this software.

  Permission is granted to anyone to use this software for any purpose,
  including commercial applications, and to alter it and redistribute it
  freely, under the terms in LICENSE.TXT.

  Kaya Kupferschmidt  (k.kupferschmidt@dimajix.de)
*/

#include "magnum/base.h"
#include "magnum/system.h"

#include "Test_Address.h"
#include "Test_MediaType.h"
#include "Test_Subnet.h"
#include "Test_IdnEncoding.h"
#include "Test_Resolver.h"
#include "Test_URL.h"
#include "Test_HeaderOptionParser.h"
#include "Test_TcpSocket.h"
#include "Test_Proxy.h"
#include "Test_Ssl.h"

using magnum::test::StdRunner;


int main(int argc, char* argv[])
{
    magnum::system::Runtime::init(argc, argv);

    StdRunner runner;
    runner.insertTestSuite(new Test_URL());
    runner.insertTestSuite(new Test_IdnEncoding());
    runner.insertTestSuite(new Test_Address());
    runner.insertTestSuite(new Test_Subnet());
    runner.insertTestSuite(new Test_Resolver());
    runner.insertTestSuite(new Test_HeaderOptionParser());
    runner.insertTestSuite(new Test_TcpSocket());
    runner.insertTestSuite(new Test_Proxy());
    runner.insertTestSuite(new Test_Ssl());
    runner.run();

    magnum::system::Runtime::shutdown();

    return 0;
}