]> git.siccegge.de Git - frida/frida.git/blob - src/test.cxx
Allow setting loglevel from commandline
[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
7 char* TEST_DATA_DIRECTORY;
8
9 int main(int argc, char **argv) {
10 testing::InitGoogleTest(&argc, argv);
11 log4cxx::BasicConfigurator::configure();
12
13 QApplication::addLibraryPath(CONFIG_LIBDIR);
14 if (argc > 1)
15 TEST_DATA_DIRECTORY = argv[1];
16 else
17 TEST_DATA_DIRECTORY = "./";
18
19 return RUN_ALL_TESTS();
20 }