Commit 7cd6072b authored by Andreas Cord-Landwehr's avatar Andreas Cord-Landwehr
Browse files

Create stub files for unit tests.

parent 80d1b5ad
......@@ -23,6 +23,12 @@ add_subdirectory(src)
#add_subdirectory(images)
#add_subdirectory(icons)
# Build Tests if KDE_TEST is on
if(KDE4_BUILD_TESTS)
enable_testing()
add_subdirectory(autotests)
endif(KDE4_BUILD_TESTS)
# files to install in the artikulate project root directory
install( PROGRAMS artikulate.desktop DESTINATION ${XDG_APPS_INSTALL_DIR} )
......
# ArtiKulate CMakeLists.txt file
#
include_directories(
../
${CMAKE_CURRENT_BINARY_DIR}
)
# basic tests for audio capability
set (TestAudio_SRCS
testaudio.cpp
)
kde4_add_executable(TestAudio ${TestAudio_SRCS} )
target_link_libraries(TestAudio
${QT_QTTEST_LIBRARY}
${KDECLARATIVE_LIBRARIES}
${KDE4_KDEUI_LIBS}
${KDE4_PLASMA_LIBS}
${KDE4_KIO_LIBS}
${KDE4_KCMUTILS_LIBS}
${QT_QTCORE_LIBRARY}
${QT_QTOPENGL_LIBRARY}
${QT_QTSCRIPT_LIBRARY}
${QT_QTDECLARATIVE_LIBRARY}
${QT_QTXMLPATTERNS_LIBRARY}
${QT_QTSQL_LIBRARY}
${PHONON_LIBS}
QtMultimediaKit
)
add_test(TestAudio TestAudio)
/*
* Copyright 2013 Andreas Cord-Landwehr <cordlandwehr@gmail.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License or (at your option) version 3 or any later version
* accepted by the membership of KDE e.V. (or its successor approved
* by the membership of KDE e.V.), which shall act as a proxy
* defined in Section 14 of version 3 of the license.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "testaudio.h"
#include <qtest_kde.h>
#include <qtest_kde.h>
TestAudio::TestAudio()
{
// TODO prepare
}
void TestAudio::init()
{
// TODO initialization of test case
}
void TestAudio::cleanup()
{
// TODO cleanup after test run
}
QTEST_KDEMAIN_CORE(TestAudio)
/*
* Copyright 2013 Andreas Cord-Landwehr <cordlandwehr@gmail.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of
* the License or (at your option) version 3 or any later version
* accepted by the membership of KDE e.V. (or its successor approved
* by the membership of KDE e.V.), which shall act as a proxy
* defined in Section 14 of version 3 of the license.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef TESTAUDIO_H
#define TESTAUDIO_H
#include <QObject>
#include <QVariant>
class TestAudio : public QObject
{
Q_OBJECT
public:
TestAudio();
private slots:
/**
* Called before every test case.
*/
void init();
/**
* Called after every test case.
*/
void cleanup();
};
#endif
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