rearrange tests and make more robust
This commit is contained in:
13
test/storage/storage.cpp
Normal file
13
test/storage/storage.cpp
Normal 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);
|
||||
}
|
||||
Reference in New Issue
Block a user