Files
MapLibreParticleLab/test/src/main.cpp
Konstantin Käfer 692fe1f3ff [build] switch to CMake
This is very much a work in progress.
2016-08-05 11:42:22 +02:00

21 lines
430 B
C++

#include <mbgl/test.hpp>
#include <unistd.h>
#include <cstring>
#include <cerrno>
#include <cstdio>
#define xstr(s) str(s)
#define str(s) #s
int main(int argc, char *argv[]) {
#ifdef WORK_DIRECTORY
const int result = chdir(xstr(WORK_DIRECTORY));
if (result != 0) {
fprintf(stderr, "failed to change directory: %s\n", strerror(errno));
return errno;
}
#endif
return mbgl::runTests(argc, argv);
}