Reverted render-utils and ui tests to be manual tests (not unit tests, and not incorporating QtTest).

This commit is contained in:
Seiji Emery 2015-06-23 17:13:43 -07:00
parent 57b86c0762
commit 1f0d9a250a
6 changed files with 39 additions and 46 deletions

View file

@ -1,12 +1,13 @@
# Declare dependencies
macro (setup_testcase_dependencies)
#include_oglplus()
set(TARGET_NAME render-utils-test)
# This is not a testcase -- just set it up as a regular hifi project
setup_hifi_project(Quick Gui OpenGL)
set_target_properties(${TARGET_NAME} PROPERTIES FOLDER "Tests/manual-tests/")
# link in the shared libraries
link_hifi_libraries(render-utils gpu shared)
#include_oglplus()
copy_dlls_beside_windows_executable()
endmacro ()
# link in the shared libraries
link_hifi_libraries(render-utils gpu shared)
setup_hifi_testcase(Quick Gui OpenGL)
copy_dlls_beside_windows_executable()

View file

@ -1,19 +0,0 @@
//
// RenderUtilsTests.h
// hifi
//
// Created by Seiji Emery on 6/23/15.
//
//
#ifndef hifi_RenderUtilsTests_h
#define hifi_RenderUtilsTests_h
class RenderUtilsTests : public QObject {
Q_OBJECT
private slots:
};
#endif

View file

@ -15,6 +15,8 @@
#include <NumericalConstants.h>
QTEST_MAIN(MovingMinMaxAvgTests)
quint64 MovingMinMaxAvgTests::randQuint64() {
quint64 ret = 0;
for (int i = 0; i < 32; i++) {

View file

@ -16,6 +16,8 @@
#include <qqueue.h>
QTEST_MAIN(MovingPercentileTests)
float MovingPercentileTests::random() {
return rand() / (float)RAND_MAX;
}

View file

@ -12,11 +12,16 @@
#ifndef hifi_MovingPercentileTests_h
#define hifi_MovingPercentileTests_h
namespace MovingPercentileTests {
#include <QtTest/QtTest>
class MovingPercentileTests : public QObject {
Q_OBJECT
private slots:
void runAllTests();
private:
float random();
void runAllTests();
}
};
#endif // hifi_MovingPercentileTests_h

View file

@ -1,17 +1,19 @@
# Declare testcase dependencies
macro (setup_testcase_dependencies)
if (WIN32)
add_dependency_external_projects(glew)
find_package(GLEW REQUIRED)
target_include_directories(${TARGET_NAME} PRIVATE ${GLEW_INCLUDE_DIRS})
target_link_libraries(${TARGET_NAME} ${GLEW_LIBRARIES} wsock32.lib opengl32.lib Winmm.lib)
endif()
# link in the shared libraries
link_hifi_libraries(ui render-utils gpu shared)
copy_dlls_beside_windows_executable()
endmacro()
set(TARGET_NAME "ui-test")
setup_hifi_testcase(Widgets OpenGL Network Qml Quick Script)
# This is not a testcase -- just set it up as a regular hifi project
setup_hifi_project(Widgets OpenGL Network Qml Quick Script)
set_target_properties(${TARGET_NAME} PROPERTIES FOLDER "Tests/manual-tests/")
if (WIN32)
add_dependency_external_projects(glew)
find_package(GLEW REQUIRED)
target_include_directories(${TARGET_NAME} PRIVATE ${GLEW_INCLUDE_DIRS})
target_link_libraries(${TARGET_NAME} ${GLEW_LIBRARIES} wsock32.lib opengl32.lib Winmm.lib)
endif()
# link in the shared libraries
link_hifi_libraries(ui render-utils gpu shared)
copy_dlls_beside_windows_executable()