Skip to content

Commit ce90e0f

Browse files
committed
Unit tests: move tests into subfolders
1 parent a368d42 commit ce90e0f

20 files changed

+26
-26
lines changed

testing/CMakeLists.txt

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -36,25 +36,25 @@ target_include_directories(common PUBLIC
3636

3737

3838
add_executable(lsl_test_exported
39-
test_ext_DataType.cpp
40-
test_ext_discovery.cpp
41-
test_ext_move.cpp
42-
test_ext_streaminfo.cpp
43-
test_ext_time.cpp
39+
ext/DataType.cpp
40+
ext/discovery.cpp
41+
ext/move.cpp
42+
ext/streaminfo.cpp
43+
ext/time.cpp
4444
)
4545
target_link_libraries(lsl_test_exported PRIVATE lsl common catch_main)
4646

4747

4848
add_executable(lsl_test_internal
49-
test_int_inireader.cpp
50-
test_int_loguruthreadnames.cpp
51-
test_int_network.cpp
52-
test_int_stringfuncs.cpp
53-
test_int_streaminfo.cpp
54-
test_int_samples.cpp
55-
internal/postproc.cpp
56-
internal/serialization_v100.cpp
57-
internal/tcpserver.cpp
49+
int/inireader.cpp
50+
int/loguruthreadnames.cpp
51+
int/network.cpp
52+
int/stringfuncs.cpp
53+
int/streaminfo.cpp
54+
int/samples.cpp
55+
int/postproc.cpp
56+
int/serialization_v100.cpp
57+
int/tcpserver.cpp
5858
)
5959
target_link_libraries(lsl_test_internal PRIVATE lslobj lslboost common catch_main)
6060

@@ -63,13 +63,13 @@ if(LSL_BENCHMARKS)
6363
# /usr/bin/time -v testing/lsl_test_exported --benchmark-samples 100 bounce
6464
# [unix only] | binary | nr. of samples | test name
6565
target_sources(lsl_test_exported PRIVATE
66-
bench_ext_bounce.cpp
67-
bench_ext_common.cpp
68-
bench_ext_pushpull.cpp
66+
ext/bench_bounce.cpp
67+
ext/bench_common.cpp
68+
ext/bench_pushpull.cpp
6969
)
7070
target_sources(lsl_test_internal PRIVATE
71-
bench_int_sleep.cpp
72-
bench_int_timesync.cpp
71+
int/bench_sleep.cpp
72+
int/bench_timesync.cpp
7373
)
7474
endif()
7575

testing/test_ext_DataType.cpp renamed to testing/ext/DataType.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#include "common/create_streampair.hpp"
2-
#include "common/lsltypes.hpp"
1+
#include "../common/create_streampair.hpp"
2+
#include "../common/lsltypes.hpp"
33
#include <catch2/catch.hpp>
44
#include <cstdint>
55
#include <lsl_cpp.h>

testing/bench_ext_bounce.cpp renamed to testing/ext/bench_bounce.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#include "common/create_streampair.hpp"
2-
#include "common/lsltypes.hpp"
1+
#include "../common/create_streampair.hpp"
2+
#include "../common/lsltypes.hpp"
33
#include <catch2/catch.hpp>
44
#include <lsl_cpp.h>
55

File renamed without changes.

testing/bench_ext_pushpull.cpp renamed to testing/ext/bench_pushpull.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#include "common/create_streampair.hpp"
2-
#include "common/lsltypes.hpp"
1+
#include "../common/create_streampair.hpp"
2+
#include "../common/lsltypes.hpp"
33
#include <atomic>
44
#include <catch2/catch.hpp>
55
#include <list>
File renamed without changes.
File renamed without changes.
File renamed without changes.

testing/test_ext_time.cpp renamed to testing/ext/time.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#include "common/create_streampair.hpp"
1+
#include "../common/create_streampair.hpp"
22
#include <atomic>
33
#include <catch2/catch.hpp>
44
#include <lsl_cpp.h>
File renamed without changes.

0 commit comments

Comments
 (0)