Skip to content

Commit b0033ad

Browse files
committed
add the relevant rosbag recordings to cmake
1 parent 9737284 commit b0033ad

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

unit-tests/live/CMakeLists.txt

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,25 @@ dl_file( ${PP_Rosbag_Recordings_URL} recordings recording_deadlock.bag OFF )
88
# for rec-play/test-playback-stress.py
99
dl_file( ${PP_Rosbag_Recordings_URL} recordings all_combinations_depth_color.bag OFF )
1010

11+
if(TESTDATA_LOCATION)
12+
set(Deployment_Location ${TESTDATA_LOCATION})
13+
else()
14+
#Windows OS will host the files under %TEMP% location
15+
#Unix-like machines will host the tests files under /tmp/ directory
16+
if (WIN32)
17+
set(Deployment_Location "$ENV{TEMP}\\")
18+
else() # Data shall be preserved between reboots. For Linux distributions/ ANDROID_NDK_TOOLCHAIN_INCLUDED/APPLE
19+
#set(Deployment_Location /var/tmp/) The standard configuration currently fails on CI
20+
set(Deployment_Location /tmp/)
21+
endif()
22+
endif()
23+
24+
list(APPEND PP_Rosbag_Recordings_List
25+
[aligned_2c]_all_combinations_depth_color.bag
26+
[aligned_2d]_all_combinations_depth_color.bag
27+
all_combinations_depth_color.bag
28+
)
29+
30+
foreach(i ${PP_Rosbag_Recordings_List})
31+
dl_file( ${PP_Rosbag_Recordings_URL} ${Deployment_Location} ${i} OFF )
32+
endforeach(i)

0 commit comments

Comments
 (0)