-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile.test
More file actions
33 lines (28 loc) · 916 Bytes
/
Dockerfile.test
File metadata and controls
33 lines (28 loc) · 916 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
FROM ubuntu:22.04
# Install dependencies
RUN apt-get update && apt-get install -y \
cmake \
build-essential \
libcmocka-dev \
clang-format \
cppcheck \
pkg-config \
git \
python3 \
python3-pip \
doxygen \
graphviz \
&& rm -rf /var/lib/apt/lists/*
# Install Python Virtual Master dependencies
COPY tools/virtual_master/requirements.txt /tmp/
RUN pip3 install -r /tmp/requirements.txt
WORKDIR /workspace
# Copy source code
COPY . .
# Build and test
CMD ["bash", "-c", "rm -rf build && cmake -B build -DIOLINK_PLATFORM=LINUX && cmake --build build && \
cd build && ctest --output-on-failure && cd .. && \
export IOLINK_DEVICE_PATH=/workspace/build/examples/host_demo/host_demo && \
python3 tools/virtual_master/test_automated_mandatory.py && \
python3 tools/virtual_master/test_pd_variable.py && \
python3 tools/virtual_master/test_baudrate.py"]