legacy-imlib2/test/test.cpp

33 lines
521 B
C++

#include <gtest/gtest.h>
#include "test.h"
int debug = 0;
int
main(int argc, char **argv)
{
const char *s;
::testing::InitGoogleTest(&argc, argv);
for (argc--, argv++; argc > 0; argc--, argv++)
{
s = argv[0];
if (*s++ != '-')
break;
again:
switch (*s++)
{
case 'd':
debug++;
goto again;
}
}
// Required by some tests
mkdir(IMG_GEN, 0755);
return RUN_ALL_TESTS();
}