forked from Mirrors/privacore-open-source-search-engine
31 lines
438 B
C++
31 lines
438 B
C++
#include "gtest/gtest.h"
|
|
|
|
#include "Mem.h"
|
|
#include "Unicode.h"
|
|
#include "hash.h"
|
|
#include "Conf.h"
|
|
|
|
int main(int argc, char **argv) {
|
|
// initialize Gigablast
|
|
g_conf.m_maxMem = 1000000000LL;
|
|
|
|
g_mem.init();
|
|
|
|
g_log.init("/dev/stdout");
|
|
|
|
if ( !ucInit() ) {
|
|
log("Unicode initialization failed!");
|
|
exit(1);
|
|
}
|
|
|
|
hashinit();
|
|
|
|
::testing::InitGoogleTest(&argc, argv);
|
|
|
|
int ret = RUN_ALL_TESTS();
|
|
|
|
resetDecompTables();
|
|
|
|
return ret;
|
|
}
|