Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Unit test infrastructure with an empty test
- Loading branch information
Showing
5 changed files
with
49 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
add_subdirectory(logic) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
set(streaks_test_SRCS | ||
streaks_test.cpp | ||
) | ||
|
||
include_directories( | ||
${CMAKE_SOURCE_DIR}/src/logic | ||
${CMAKE_SOURCE_DIR} | ||
) | ||
|
||
kde4_add_unit_test(streaks_test | ||
TESTNAME streaks-test | ||
${streaks_test_SRCS} | ||
) | ||
|
||
target_link_libraries(streaks_test | ||
picmi_logic | ||
${QT_QTTEST_LIBRARY} | ||
${QT_LIBRARIES} | ||
) | ||
|
||
# vim:set ts=4 sw=4 et: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#include "streaks_test.h" | ||
|
||
#include <QTest> | ||
|
||
QTEST_MAIN(StreaksTest) | ||
|
||
void StreaksTest::testSanity() | ||
{ | ||
QCOMPARE(1, 1); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
#ifndef __STREAKS_TEST_H | ||
#define __STREAKS_TEST_H | ||
|
||
#include <QObject> | ||
|
||
class StreaksTest : public QObject | ||
{ | ||
Q_OBJECT | ||
|
||
private slots: | ||
void testSanity(); | ||
}; | ||
|
||
#endif /* __STREAKS_TEST_H */ |