From 50e3141d7e782ec047e519b6d4b55629a9f7a297 Mon Sep 17 00:00:00 2001 From: Fredrik Skold Date: Thu, 4 Jun 2020 16:11:52 +0200 Subject: [PATCH] Add Dockerfile.test to run tests from docker (#165) --- Dockerfile.test | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Dockerfile.test diff --git a/Dockerfile.test b/Dockerfile.test new file mode 100644 index 00000000..996d4865 --- /dev/null +++ b/Dockerfile.test @@ -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