main.cpp 550 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 13
#include "repomanagertest.h"

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

  RepoManagerTest repomanagerTest;

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

  return 0;
}