text: // Many builder specific things set in the config file, ENABLE_WALLET is a good example.  Don't forget to include it this way in your source files.
  #if defined(HAVE_CONFIG_H)
  #include "config/anoncoin-config.h"
  #endif
  
  #ifdef ENABLE_WALLET
  #include "paymentservertests.h"
  #endif
  #include "uritests.h"
  
  #include <QCoreApplication>
  #include <QObject>
  #include <QTest>
  
  #if defined(QT_STATICPLUGIN)
  #include <QtPlugin>
  #if QT_VERSION < 0x050000
  Q_IMPORT_PLUGIN(qcncodecs)
  Q_IMPORT_PLUGIN(qjpcodecs)
  Q_IMPORT_PLUGIN(qtwcodecs)
  Q_IMPORT_PLUGIN(qkrcodecs)
  Q_IMPORT_PLUGIN(qtaccessiblewidgets)
  #else
  Q_IMPORT_PLUGIN(AccessibleFactory)
  #if defined(QT_QPA_PLATFORM_XCB)
  Q_IMPORT_PLUGIN(QXcbIntegrationPlugin);
  #elif defined(QT_QPA_PLATFORM_WINDOWS)
  Q_IMPORT_PLUGIN(QWindowsIntegrationPlugin);
  #elif defined(QT_QPA_PLATFORM_COCOA)
  Q_IMPORT_PLUGIN(QCocoaIntegrationPlugin);
  #endif
  #endif
  #endif
  
  // This is all you need to run all the tests
  int main(int argc, char *argv[])
  {
      bool fInvalid = false;
  
      // Don't remove this, it's needed to access
      // QCoreApplication:: in the tests
      QCoreApplication app(argc, argv);
      app.setApplicationName("Anoncoin-Qt-test");
  
      URITests test1;
      if (QTest::qExec(&test1) != 0)
          fInvalid = true;
  #ifdef ENABLE_WALLET
      PaymentServerTests test2;
      if (QTest::qExec(&test2) != 0)
          fInvalid = true;
  #endif
  
      return fInvalid;
  }
  