Skip to content

Commit

Permalink
Add Dockerfile.test to run tests from docker (#165)
Browse files Browse the repository at this point in the history
  • Loading branch information
f-skold authored and fredrik-sk committed Jul 7, 2020
1 parent be60153 commit 50e3141
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Dockerfile.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# docker build . -f Dockerfile.test -t test_builder

FROM ubuntu

RUN apt update -y && apt install -y cmake gcc g++ make
COPY . /tmp
RUN cd /tmp && \
mkdir build && \
cd build && \
cmake .. -DLIBMBUS_BUILD_EXAMPLES=ON -DLIBMBUS_BUILD_TESTS=ON -DLIBMBUS_ENABLE_COVERAGE=ON && \
cmake --build . -j && \
cd .. && \
./test/generate-xml.sh test/test-frames

RUN cd /tmp && \
./test/generate-xml.sh test/error-frames && \
./test/generate-xml.sh test/unsupported-frames

0 comments on commit 50e3141

Please sign in to comment.