Blame tests/test.cpp

Packit Bot 052d53
/*
Packit Bot 052d53
 * Copyright (C) 2020 Jan Grulich <jgrulich@redhat.com>
Packit Bot 052d53
 *
Packit Bot 052d53
 * This program is free software; you can redistribute it and/or modify
Packit Bot 052d53
 * it under the terms of the GNU General Public License as published by
Packit Bot 052d53
 * the Free Software Foundation; either version 2 of the License, or
Packit Bot 052d53
 * (at your option) any later version.
Packit Bot 052d53
 *
Packit Bot 052d53
 * This program is distributed in the hope that it will be useful,
Packit Bot 052d53
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Bot 052d53
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit Bot 052d53
 * GNU General Public License for more details.
Packit Bot 052d53
 *
Packit Bot 052d53
 * You should have received a copy of the GNU General Public License along
Packit Bot 052d53
 * with this program; if not, write to the Free Software Foundation, Inc.,
Packit Bot 052d53
 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
Packit Bot 052d53
 *
Packit Bot 052d53
 */
Packit Bot 052d53
Packit Bot 052d53
#include "test.h"
Packit Bot 052d53
Packit Bot 052d53
#include <QTest>
Packit Bot 052d53
Packit Bot 052d53
#include <AdwaitaQt/adwaita.h>
Packit Bot 052d53
#include <AdwaitaQt/adwaitacolors.h>
Packit Bot 052d53
Packit Bot 052d53
#include <memory>
Packit Bot 052d53
Packit Bot 052d53
QTEST_MAIN(Test)
Packit Bot 052d53
Packit Bot 052d53
void Test::initTestCase()
Packit Bot 052d53
{
Packit Bot 052d53
    // Just simple test whether we can link against the Adwaita library
Packit Bot 052d53
    // and find headers
Packit Bot 052d53
    std::unique_ptr<Adwaita::StyleOptions> options(new Adwaita::StyleOptions(QPalette()));
Packit Bot 052d53
    QVERIFY(options);
Packit Bot 052d53
}