]> git.siccegge.de Git - frida/frida.git/blob - src/test.cxx
Add freebsd names for llvm-config
[frida/frida.git] / src / test.cxx
1 #include <gtest/gtest.h>
2 #include "log4cxx/logger.h"
3 #include "log4cxx/basicconfigurator.h"
4 #include <QApplication>
5 #include "Config.hxx"
6 #include "core/Settings.hxx"
7
8 const char* TEST_DATA_DIRECTORY;
9
10 int main(int argc, char **argv) {
11 testing::InitGoogleTest(&argc, argv);
12 log4cxx::BasicConfigurator::configure();
13
14 log4cxx::LevelPtr level = log4cxx::Level::getError();
15 log4cxx::Logger::getRootLogger()->setLevel(level);
16
17 QApplication::addLibraryPath(CONFIG_LIBDIR);
18 Settings settings;
19 if (argc > 1)
20 TEST_DATA_DIRECTORY = argv[1];
21 else
22 TEST_DATA_DIRECTORY = "./testdata";
23
24 return RUN_ALL_TESTS();
25 }