2010-05-21 03:13:36 +02:00
|
|
|
// Copyright (c) 2010, Amar Takhar <verm@aegisub.org>
|
|
|
|
//
|
|
|
|
// Permission to use, copy, modify, and distribute this software for any
|
|
|
|
// purpose with or without fee is hereby granted, provided that the above
|
|
|
|
// copyright notice and this permission notice appear in all copies.
|
|
|
|
//
|
|
|
|
// THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
|
|
// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
|
|
// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
|
|
// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
|
|
// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
|
|
// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
|
|
// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
|
|
|
|
|
|
#include <gtest/gtest.h>
|
|
|
|
|
2013-01-04 16:01:50 +01:00
|
|
|
#include <libaegisub/dispatch.h>
|
|
|
|
#include <libaegisub/fs.h>
|
2011-02-10 00:37:18 +01:00
|
|
|
#include <libaegisub/log.h>
|
2014-04-25 17:44:11 +02:00
|
|
|
#include <libaegisub/make_unique.h>
|
2011-02-10 00:37:18 +01:00
|
|
|
|
2013-01-30 16:26:16 +01:00
|
|
|
#include <boost/locale/generator.hpp>
|
2013-02-02 15:44:13 +01:00
|
|
|
#include <cstdlib>
|
|
|
|
#include <ctime>
|
2013-01-30 16:26:16 +01:00
|
|
|
|
2010-05-21 03:13:36 +02:00
|
|
|
int main(int argc, char **argv) {
|
2013-01-04 16:01:50 +01:00
|
|
|
agi::dispatch::Init([](agi::dispatch::Thunk f) { });
|
2013-01-30 16:26:16 +01:00
|
|
|
std::locale::global(boost::locale::generator().generate(""));
|
2013-01-04 16:01:50 +01:00
|
|
|
|
2011-02-10 00:37:18 +01:00
|
|
|
int retval;
|
2012-01-08 02:36:23 +01:00
|
|
|
agi::log::log = new agi::log::LogSink;
|
2014-04-25 17:44:11 +02:00
|
|
|
agi::log::log->Subscribe(agi::make_unique<agi::log::JsonEmitter>("./"));
|
2011-02-10 00:37:18 +01:00
|
|
|
::testing::InitGoogleTest(&argc, argv);
|
|
|
|
|
2013-02-02 15:44:13 +01:00
|
|
|
srand(time(nullptr));
|
|
|
|
|
2011-02-10 00:37:18 +01:00
|
|
|
retval = RUN_ALL_TESTS();
|
|
|
|
|
|
|
|
delete agi::log::log;
|
|
|
|
|
|
|
|
return retval;
|
2010-05-21 03:13:36 +02:00
|
|
|
}
|
|
|
|
|