Skip to content

Commit fffe371

Browse files
committed
Unit tests
1 parent c8159c4 commit fffe371

File tree

2 files changed

+28
-0
lines changed

2 files changed

+28
-0
lines changed

build-linux/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,8 @@ RUN rm -Rf opencv-${opencv_version}* \
291291
## Copy entry point
292292
#############################################################
293293
COPY entrypoint_docker.sh /
294+
COPY entrypoint_docker_tests.sh /
294295
WORKDIR /
295296
RUN chmod +x /entrypoint_docker.sh
297+
RUN chmod +x /entrypoint_docker_tests.sh
296298
ENTRYPOINT ["/entrypoint_docker.sh"]
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
#!/bin/bash
2+
set -e
3+
4+
cd /work/tests/unit
5+
6+
echo "Create makefile"
7+
cmake -S sources \
8+
-B projects-Linux \
9+
-DDEBUG_WITH_GCC=OFF \
10+
-DCMAKE_BUILD_WITH_INSTALL_RPATH=ON \
11+
-DCMAKE_BUILD_TYPE="Release" \
12+
-DBOOST_ROOT="$YADOMS_DEPS/boost" \
13+
-DPOCO_ROOT="$YADOMS_DEPS/poco" \
14+
-DPROTOBUF_ROOT="$YADOMS_DEPS/protobuf" \
15+
-DOPENSSL_ROOT="$YADOMS_DEPS/openssl" \
16+
-DPython3_ManualSetup=ON \
17+
-DPython3_INCLUDE_DIRS="$YADOMS_DEPS/python-lib/include/python3.11" \
18+
-DPython3_LIBRARIES="$YADOMS_DEPS/python-lib/lib/python3.11/config-3.11-x86_64-linux-gnu/libpython3.11.a" \
19+
-DPython3_EXECUTABLE="/usr/bin/python3" \
20+
-DOPENCV_ROOT="$YADOMS_DEPS/opencv" \
21+
-DGAMMU_ROOT="$YADOMS_DEPS/gammu" \
22+
-DLIBUDEV_ROOT="$YADOMS_DEPS/libudev"
23+
24+
echo "Build Yadoms Unit Tests"
25+
cmake --build projects-Linux \
26+
-j$(nproc)

0 commit comments

Comments
 (0)