rearrange tests and make more robust

This commit is contained in:
Konstantin Käfer
2015-01-22 12:24:00 +01:00
parent 8a1fce547e
commit aa09aa321b
37 changed files with 347 additions and 359 deletions

13
test/storage/storage.cpp Normal file
View File

@@ -0,0 +1,13 @@
#include "storage.hpp"
pid_t Storage::pid = 0;
void Storage::SetUpTestCase() {
const auto server = mbgl::test::getBaseDirectory() + "/storage/server.js";
fprintf(stderr, "server: %s\n", server.c_str());
pid = mbgl::test::startServer(server.c_str());
}
void Storage::TearDownTestCase() {
mbgl::test::stopServer(pid);
}