File tree Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Expand file tree Collapse file tree 2 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -4,16 +4,18 @@ COPY --chown=vscode episodes/1-into-to-unit-tests /home/vscode/1-into-to-unit-te
44
55WORKDIR /home/vscode/1-into-to-unit-tests/challenge
66
7- # test challenge with CMake
8- RUN cmake -B build
9- RUN cmake --build build
7+ # Build challenge's tests with cmake
8+ RUN cmake -B build && \
9+ cmake --build build
10+ # Run test with ctest
1011RUN ctest --test-dir build --output-on-failure
1112
1213# clean build
1314RUN rm -rf build
1415
15- # Test solution with CMake
16- RUN mv ../solution/test_maths_solution.f90 test/test_maths.f90
17- RUN cmake -B build
18- RUN cmake --build build
16+ # Build solution's tests with cmake
17+ RUN mv ../solution/test_maths_solution.f90 test/test_maths.f90 && \
18+ cmake -B build && \
19+ cmake --build build
20+ # Run test with ctest
1921RUN ctest --test-dir build --output-on-failure
Original file line number Diff line number Diff line change @@ -9,5 +9,5 @@ RUN cmake -B build -DCMAKE_PREFIX_PATH=/home/vscode/pfunit/build/installed && \
99 cmake --build build
1010
1111# test pfunit with ctest
12- RUN ctest --test-dir build-cmake --output-on-failure
12+ RUN ctest --test-dir build --output-on-failure
1313
You can’t perform that action at this time.
0 commit comments