ssu
Loading...
Searching...
No Matches
main.cpp
Go to the documentation of this file.
1
7
8#include <QtTest/QtTest>
9
10#include "libssu/sandbox_p.h"
11#include "repomanagertest.h"
12
13int main(int argc, char **argv)
14{
15 Sandbox sandbox(QString("%1/configroot").arg(LOCATE_DATA_PATH),
16 Sandbox::UseAsSkeleton, Sandbox::ThisProcess);
17 if (!sandbox.activate()) {
18 qFatal("Failed to activate sandbox");
19 }
20
21 RepoManagerTest repomanagerTest;
22
23 if (QTest::qExec(&repomanagerTest, argc, argv))
24 return 1;
25
26 return 0;
27}
Helps to redirect file operations into sandbox directory.
Definition sandbox_p.h:22