main.cpp 586 Bytes
Newer Older
1 2 3 4 5 6 7 8 9
/**
 * @file main.cpp
 * @copyright 2012 Jolla Ltd.
 * @author Martin Kampas <martin.kampas@tieto.com>
 * @date 2012
 */

#include <QtTest/QtTest>

10
#include "libssu/sandbox_p.h"
11 12
#include "repomanagertest.h"

13 14 15 16 17 18 19
int main(int argc, char **argv)
{
    Sandbox sandbox(QString("%1/configroot").arg(LOCATE_DATA_PATH),
                    Sandbox::UseAsSkeleton, Sandbox::ThisProcess);
    if (!sandbox.activate()) {
        qFatal("Failed to activate sandbox");
    }
20

21
    RepoManagerTest repomanagerTest;
22

23 24
    if (QTest::qExec(&repomanagerTest, argc, argv))
        return 1;
25

26
    return 0;
27
}