Skip to content

Commit

Permalink
update docker images to use new targets and runner
Browse files Browse the repository at this point in the history
  • Loading branch information
felixschurk committed May 7, 2024
1 parent 8f6a0d5 commit cb6c742
Show file tree
Hide file tree
Showing 8 changed files with 56 additions and 24 deletions.
10 changes: 7 additions & 3 deletions test/docker/arch
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ RUN cmake --install build
RUN task --version

# Setup tests
WORKDIR /root/code/build/test/
RUN make -j8
WORKDIR /root/code/
RUN cmake --build build --target build_tests

## runs all tests in parallel
RUN ctest --test-dir build/test -j 8

CMD ["bash", "-c", "./run_all -v ; cat all.log | grep 'not ok' ; ./problems"]
## if there are failed tests they now are run in serial with verbose output
RUN ctest --test-dir build/test --rerun-failed --output-on-failure
10 changes: 7 additions & 3 deletions test/docker/debianstable
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ RUN cmake --install build
RUN task --version

# Setup tests
WORKDIR /root/code/build/test
RUN make -j8
WORKDIR /root/code/
RUN cmake --build build --target build_tests

## runs all tests in parallel
RUN ctest --test-dir build/test -j 8

CMD ["bash", "-c", "./run_all -v ; cat all.log | grep 'not ok' ; ./problems"]
## if there are failed tests they now are run in serial with verbose output
RUN ctest --test-dir build/test --rerun-failed --output-on-failure
10 changes: 7 additions & 3 deletions test/docker/debiantesting
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ RUN cmake --install build
RUN task --version

# Setup tests
WORKDIR /root/code/build/test
RUN make -j8
WORKDIR /root/code/
RUN cmake --build build --target build_tests

## runs all tests in parallel
RUN ctest --test-dir build/test -j 8

CMD ["bash", "-c", "./run_all -v ; cat all.log | grep 'not ok' ; ./problems"]
## if there are failed tests they now are run in serial with verbose output
RUN ctest --test-dir build/test --rerun-failed --output-on-failure
10 changes: 7 additions & 3 deletions test/docker/fedora39
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ RUN cmake --install build
RUN task --version

# Setup tests
WORKDIR /root/code/build/test
RUN make -j8
WORKDIR /root/code/
RUN cmake --build build --target build_tests

## runs all tests in parallel
RUN ctest --test-dir build/test -j 8

CMD ["bash", "-c", "./run_all -v ; cat all.log | grep 'not ok' ; ./problems"]
## if there are failed tests they now are run in serial with verbose output
RUN ctest --test-dir build/test --rerun-failed --output-on-failure
10 changes: 7 additions & 3 deletions test/docker/fedora40
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ RUN cmake --install build
RUN task --version

# Setup tests
WORKDIR /root/code/build/test
RUN make -j8
WORKDIR /root/code/
RUN cmake --build build --target build_tests

## runs all tests in parallel
RUN ctest --test-dir build/test -j 8

CMD ["bash", "-c", "./run_all -v ; cat all.log | grep 'not ok' ; ./problems"]
## if there are failed tests they now are run in serial with verbose output
RUN ctest --test-dir build/test --rerun-failed --output-on-failure
10 changes: 7 additions & 3 deletions test/docker/opensuse
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,11 @@ RUN cmake --install build
RUN task --version

# Setup tests
WORKDIR /root/code/build/test
RUN make -j8
WORKDIR /root/code/
RUN cmake --build build --target build_tests

## runs all tests in parallel
RUN ctest --test-dir build/test -j 8

CMD ["bash", "-c", "./run_all -v ; cat all.log | grep 'not ok' ; ./problems"]
## if there are failed tests they now are run in serial with verbose output
RUN ctest --test-dir build/test --rerun-failed --output-on-failure
10 changes: 7 additions & 3 deletions test/docker/ubuntu2004
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ RUN cmake --install build
RUN task --version

# Setup tests
WORKDIR /root/code/build/test
RUN make -j8
WORKDIR /root/code/
RUN cmake --build build --target build_tests

## runs all tests in parallel
RUN ctest --test-dir build/test -j 8

CMD ["bash", "-c", "./run_all -v ; cat all.log | grep 'not ok' ; ./problems"]
## if there are failed tests they now are run in serial with verbose output
RUN ctest --test-dir build/test --rerun-failed --output-on-failure
10 changes: 7 additions & 3 deletions test/docker/ubuntu2204
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ RUN cmake --install build
RUN task --version

# Setup tests
WORKDIR /root/code/build/test
RUN make -j8
WORKDIR /root/code/
RUN cmake --build build --target build_tests

## runs all tests in parallel
RUN ctest --test-dir build/test -j 8

CMD ["bash", "-c", "./run_all -v ; cat all.log | grep 'not ok' ; ./problems"]
## if there are failed tests they now are run in serial with verbose output
RUN ctest --test-dir build/test --rerun-failed --output-on-failure

0 comments on commit cb6c742

Please sign in to comment.