Skip to content

Commit

Permalink
Move test files into same tree as source
Browse files Browse the repository at this point in the history
It was getting easy to forget about tests or forget
to keep the tree structure in sync with the source tree.

We adopt a new structure here to put the tests closer to the sources
so that it is more likely they will be considered when working
on the source.

To avoid any possible file name clashes we change the suffix
to .test.cpp rather than _test.cpp.
  • Loading branch information
MHeasell committed Oct 4, 2020
1 parent faf2061 commit 44dbb09
Show file tree
Hide file tree
Showing 42 changed files with 41 additions and 41 deletions.
82 changes: 41 additions & 41 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -720,49 +720,49 @@ if(WIN32)
endif()

set(TEST_FILES
test/rwe/BoxTreeSplit_test.cpp
test/rwe/DiscreteRect_test.cpp
test/rwe/EightWayDirection_test.cpp
test/rwe/FeatureDefinition_test.cpp
test/rwe/GameHash_util_test.cpp
test/rwe/Grid_test.cpp
test/rwe/ListTdfAdapter_test.cpp
test/rwe/MinHeap_test.cpp
test/rwe/Point_test.cpp
test/rwe/Result_test.cpp
test/rwe/SideData_test.cpp
test/rwe/SimAngle_test.cpp
test/rwe/SimVector_test.cpp
test/rwe/SimpleTdfAdapter_test.cpp
test/rwe/TdfBlock_test.cpp
test/rwe/VectorMap_test.cpp
test/rwe/ViewportService_test.cpp
test/rwe/camera/CabinetCamera_test.cpp
test/rwe/cob/cob_util_test.cpp
test/rwe/dump_util_test.cpp
test/rwe/geometry/BoundingBox3f_test.cpp
test/rwe/geometry/Circle2f_test.cpp
test/rwe/geometry/CollisionMesh_test.cpp
test/rwe/geometry/Plane3f_test.cpp
test/rwe/geometry/Ray3f_test.cpp
test/rwe/geometry/Rectangle2f_test.cpp
test/rwe/geometry/Triangle3f_test.cpp
test/rwe/gui_test.cpp
test/rwe/ip_util_test.cpp
test/rwe/math/Matrix4f_test.cpp
test/rwe/math/Vector2f_test.cpp
test/rwe/math/Vector3f_test.cpp
test/rwe/math/rwe_math_test.cpp
test/rwe/network_util_test.cpp
test/rwe/ota_test.cpp
test/rwe/pathfinding/pathfinding_utils_test.cpp
test/rwe/rc_gen_optional.h
test/rwe/rwe_string_test.cpp
test/rwe/unit_util_test.cpp
test/rwe/util_test.cpp
src/rwe/BoxTreeSplit.test.cpp
src/rwe/GameHash_util.test.cpp
src/rwe/MinHeap.test.cpp
src/rwe/Result.test.cpp
src/rwe/SideData.test.cpp
src/rwe/VectorMap.test.cpp
src/rwe/ViewportService.test.cpp
src/rwe/camera/CabinetCamera.test.cpp
src/rwe/cob/cob_util.test.cpp
src/rwe/dump_util.test.cpp
src/rwe/geometry/BoundingBox3f.test.cpp
src/rwe/geometry/Circle2f.test.cpp
src/rwe/geometry/CollisionMesh.test.cpp
src/rwe/geometry/Plane3f.test.cpp
src/rwe/geometry/Ray3f.test.cpp
src/rwe/geometry/Rectangle2f.test.cpp
src/rwe/geometry/Triangle3f.test.cpp
src/rwe/grid/DiscreteRect.test.cpp
src/rwe/grid/EightWayDirection.test.cpp
src/rwe/grid/Grid.test.cpp
src/rwe/grid/Point.test.cpp
src/rwe/io/featuretdf/FeatureDefinition.test.cpp
src/rwe/io/gui/gui.test.cpp
src/rwe/io/ota/ota.test.cpp
src/rwe/io/tdf/ListTdfAdapter.test.cpp
src/rwe/io/tdf/SimpleTdfAdapter.test.cpp
src/rwe/io/tdf/TdfBlock.test.cpp
src/rwe/ip_util.test.cpp
src/rwe/math/Matrix4f.test.cpp
src/rwe/math/Vector2f.test.cpp
src/rwe/math/Vector3f.test.cpp
src/rwe/math/rwe_math.test.cpp
src/rwe/network_util.test.cpp
src/rwe/pathfinding/pathfinding_utils.test.cpp
src/rwe/rc_gen_optional.h
src/rwe/rwe_string.test.cpp
src/rwe/sim/SimAngle.test.cpp
src/rwe/sim/SimVector.test.cpp
src/rwe/sim/unit_util.test.cpp
src/rwe/util.test.cpp
)

add_executable(rwe_test test/main.cpp ${TEST_FILES})
add_executable(rwe_test src/test.cpp ${TEST_FILES})
target_link_libraries(rwe_test Catch2::Catch2)
target_link_libraries(rwe_test rapidcheck_catch)
target_link_libraries(rwe_test rapidcheck_boost)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 44dbb09

Please sign in to comment.