Merge pull request #356 from kiwix/fix_test_httplib

This commit is contained in:
Matthieu Gautier 2020-05-18 14:44:18 +02:00 committed by GitHub
commit 48cc277468
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -12,9 +12,13 @@ tests = [
'kiwixserve', 'kiwixserve',
'book', 'book',
'manager', 'manager',
'server'
] ]
if build_machine.system() != 'windows'
tests += ['server']
endif
gtest_dep = dependency('gtest', gtest_dep = dependency('gtest',
main:true, main:true,

View File

@ -1,10 +1,11 @@
#include "./httplib.h"
#include "gtest/gtest.h" #include "gtest/gtest.h"
#include "../include/manager.h" #include "../include/manager.h"
#include "../include/server.h" #include "../include/server.h"
#include "../include/name_mapper.h" #include "../include/name_mapper.h"
#include "./httplib.h"
using TestContextImpl = std::vector<std::pair<std::string, std::string> >; using TestContextImpl = std::vector<std::pair<std::string, std::string> >;
struct TestContext : TestContextImpl { struct TestContext : TestContextImpl {