Skip to content

Commit 69fb048

Browse files
committed
Move test environment sources to a separate folder.
1 parent d85221f commit 69fb048

19 files changed

+44
-33
lines changed

CMakeLists.txt

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,10 @@ install (FILES ${LocalizationFiles} DESTINATION localization)
9999
# NodeEngineTest
100100

101101
set (TestFrameworkSourcesFolder Sources/TestFramework)
102+
set (TestEnvironmentSourcesFolder Sources/NodeEngineTest/TestEnvironment)
102103
set (NodeEngineTestSourcesFolder Sources/NodeEngineTest)
103104
file (GLOB TestFrameworkFiles ${TestFrameworkSourcesFolder}/*.hpp ${TestFrameworkSourcesFolder}/*.cpp)
105+
file (GLOB TestEnvironmentFiles ${TestEnvironmentSourcesFolder}/*.hpp ${TestEnvironmentSourcesFolder}/*.cpp)
104106
file (GLOB NodeEngineTestHeaderFiles ${NodeEngineTestSourcesFolder}/*.hpp)
105107
file (GLOB NodeEngineTestSourceFiles ${NodeEngineTestSourcesFolder}/*.cpp)
106108
set (
@@ -111,13 +113,22 @@ set (
111113
set (
112114
NodeEngineTestFiles
113115
${TestFrameworkFiles}
116+
${TestEnvironmentFiles}
114117
${NodeEngineTestTestFiles}
115118
)
116119
source_group ("Framework" FILES ${TestFrameworkFiles})
120+
source_group ("Environment" FILES ${TestEnvironmentFiles})
117121
source_group ("Sources" FILES ${NodeEngineTestTestFiles})
118122
add_executable (NodeEngineTest ${NodeEngineTestFiles})
119123
set_target_properties (NodeEngineTest PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/$<CONFIG>")
120-
target_include_directories (NodeEngineTest PUBLIC ${NodeEngineSourcesFolder} ${NodeUIEngineSourcesFolder} ${BuiltInNodesSourcesFolder} ${TestFrameworkSourcesFolder})
124+
target_include_directories (
125+
NodeEngineTest PUBLIC
126+
${NodeEngineSourcesFolder}
127+
${NodeUIEngineSourcesFolder}
128+
${BuiltInNodesSourcesFolder}
129+
${TestFrameworkSourcesFolder}
130+
${TestEnvironmentSourcesFolder}
131+
)
121132
target_link_libraries (NodeEngineTest NodeEngine NodeUIEngine BuiltInNodes)
122133
get_filename_component (NodeEngineTestSourcesFolderAbsolute "${CMAKE_CURRENT_LIST_DIR}/${NodeEngineTestSourcesFolder}" ABSOLUTE)
123134
add_custom_command (TARGET NodeEngineTest POST_BUILD

Sources/NodeEngineTest/CompatibitilityTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include "BI_InputUINodes.hpp"
55
#include "BI_BinaryOperationNodes.hpp"
66
#include "BI_ViewerUINodes.hpp"
7-
#include "VisualTestFramework.hpp"
7+
#include "TestEnvironment.hpp"
88
#include "TestReference.hpp"
99

1010
#include <fstream>

Sources/NodeEngineTest/NodeEditorTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include "NE_MemoryStream.hpp"
33
#include "NUIE_NodeEditor.hpp"
44
#include "BI_BuiltInNodes.hpp"
5-
#include "VisualTestFramework.hpp"
5+
#include "TestEnvironment.hpp"
66

77
using namespace NE;
88
using namespace NUIE;

Sources/NodeEngineTest/NodeEditorVisualTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include "NUIE_FeatureToggle.hpp"
55
#include "BI_InputUINodes.hpp"
66
#include "BI_ViewerUINodes.hpp"
7-
#include "VisualTestFramework.hpp"
7+
#include "TestEnvironment.hpp"
88

99
using namespace NE;
1010
using namespace NUIE;

Sources/NodeEngineTest/NodeEditorVisualTestConnection.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include "NUIE_NodeEditor.hpp"
33
#include "BI_InputUINodes.hpp"
44
#include "BI_ViewerUINodes.hpp"
5-
#include "VisualTestFramework.hpp"
5+
#include "TestEnvironment.hpp"
66

77
using namespace NE;
88
using namespace NUIE;

Sources/NodeEngineTest/NodeEditorVisualTestGrouping.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include "NUIE_NodeEditor.hpp"
33
#include "BI_InputUINodes.hpp"
44
#include "BI_ViewerUINodes.hpp"
5-
#include "VisualTestFramework.hpp"
5+
#include "TestEnvironment.hpp"
66

77
using namespace NE;
88
using namespace NUIE;

Sources/NodeEngineTest/NodeEditorVisualTestNavigation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include "NUIE_NodeEditor.hpp"
33
#include "BI_InputUINodes.hpp"
44
#include "BI_ViewerUINodes.hpp"
5-
#include "VisualTestFramework.hpp"
5+
#include "TestEnvironment.hpp"
66

77
using namespace NE;
88
using namespace NUIE;

Sources/NodeEngineTest/NodeEditorVisualTestRecalculation.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include "NUIE_NodeEditor.hpp"
33
#include "BI_InputUINodes.hpp"
44
#include "BI_ViewerUINodes.hpp"
5-
#include "VisualTestFramework.hpp"
5+
#include "TestEnvironment.hpp"
66

77
using namespace NE;
88
using namespace NUIE;

Sources/NodeEngineTest/NodeEditorVisualTestSlotMarkers.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include "NUIE_FeatureToggle.hpp"
55
#include "BI_InputUINodes.hpp"
66
#include "BI_ViewerUINodes.hpp"
7-
#include "VisualTestFramework.hpp"
7+
#include "TestEnvironment.hpp"
88

99
using namespace NE;
1010
using namespace NUIE;

Sources/NodeEngineTest/NodeEditorVisualTestWorkflow.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
#include "NUIE_NodeEditor.hpp"
33
#include "BI_BuiltInNodes.hpp"
44
#include "BI_ViewerUINodes.hpp"
5-
#include "VisualTestFramework.hpp"
5+
#include "TestEnvironment.hpp"
66

77
using namespace NE;
88
using namespace NUIE;

0 commit comments

Comments
 (0)