Commit 6aaa5deb authored by Laszlo Agocs's avatar Laszlo Agocs
Browse files

add an autotest skeleton

parent 8cea3528
TEMPLATE = subdirs
SUBDIRS =
SUBDIRS = \
qshaderbaker
#version 440
layout(location = 0) in vec3 v_color;
layout(location = 0) out vec4 fragColor;
void main()
{
fragColor = vec4(v_color, 1.0);
}
#version 440
layout(location = 0) in vec4 position;
layout(location = 1) in vec3 color;
layout(location = 0) out vec3 v_color;
layout(std140, binding = 0) uniform buf {
mat4 mvp;
} ubuf;
out gl_PerVertex { vec4 gl_Position; };
void main()
{
v_color = color;
gl_Position = ubuf.mvp * position;
}
TARGET = tst_qshaderbaker
CONFIG += testcase
QT += testlib shadertools
SOURCES += tst_qshaderbaker.cpp
RESOURCES += qshaderbaker.qrc
<RCC>
<qresource prefix="/">
<file>data</file>
</qresource>
</RCC>
/****************************************************************************
**
** Copyright (C) 2019 The Qt Company Ltd.
** Contact: https://www.qt.io/licensing/
**
** This file is part of the test suite of the Qt Toolkit.
**
** $QT_BEGIN_LICENSE:GPL-EXCEPT$
** Commercial License Usage
** Licensees holding valid commercial Qt licenses may use this file in
** accordance with the commercial license agreement provided with the
** Software or, alternatively, in accordance with the terms contained in
** a written agreement between you and The Qt Company. For licensing terms
** and conditions see https://www.qt.io/terms-conditions. For further
** information use the contact form at https://www.qt.io/contact-us.
**
** GNU General Public License Usage
** Alternatively, this file may be used under the terms of the GNU
** General Public License version 3 as published by the Free Software
** Foundation with exceptions as appearing in the file LICENSE.GPL3-EXCEPT
** included in the packaging of this file. Please review the following
** information to ensure the GNU General Public License requirements will
** be met: https://www.gnu.org/licenses/gpl-3.0.html.
**
** $QT_END_LICENSE$
**
****************************************************************************/
#include <QtTest/QtTest>
#include <QtShaderTools/QShaderBaker>
class tst_QShaderBaker : public QObject
{
Q_OBJECT
private slots:
void initTestCase();
void cleanup();
};
void tst_QShaderBaker::initTestCase()
{
}
void tst_QShaderBaker::cleanup()
{
}
#include <tst_qshaderbaker.moc>
QTEST_MAIN(tst_QShaderBaker)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment