Run tests from parent directory

- somehow cpp-testfiles are not compiled when calling make in the test directory
- make install is required to be executed before make test, because we need access to man pages (help.t)

Signed-off-by: Thomas Lauf <thomas.lauf@tngtech.com>
This commit is contained in:
Thomas Lauf 2019-09-06 11:27:40 +02:00
parent cf41d2f80c
commit 629a3ffe58
4 changed files with 8 additions and 8 deletions

View file

@ -19,10 +19,10 @@ RUN git submodule update
RUN cmake -DCMAKE_BUILD_TYPE=debug .
RUN make -j2
RUN make install
RUN make -j2 test || true
RUN timew --version
# Setup tests
WORKDIR /root/code/test/
RUN make
CMD ["bash", "-c", "./run_all -v ; cat all.log | grep 'not ok' ; ./problems"]
CMD ["bash", "-c", "cat all.log | grep 'not ok' ; ./problems"]

View file

@ -20,10 +20,10 @@ RUN git submodule update
RUN cmake -DCMAKE_BUILD_TYPE=debug .
RUN make -j2
RUN make install
RUN make -j2 test
RUN timew --version
# Setup tests
WORKDIR /root/code/test/
RUN make
CMD ["bash", "-c", "./run_all -v ; cat all.log | grep 'not ok' ; ./problems"]
CMD ["bash", "-c", "cat all.log | grep 'not ok' ; ./problems"]

View file

@ -20,10 +20,10 @@ RUN git submodule update
RUN cmake -DCMAKE_BUILD_TYPE=debug .
RUN make -j2
RUN make install
RUN make -j2 test
RUN timew --version
# Setup tests
WORKDIR /root/code/test/
RUN make
CMD ["bash", "-c", "./run_all -v ; cat all.log | grep 'not ok' ; ./problems"]
CMD ["bash", "-c", "cat all.log | grep 'not ok' ; ./problems"]

View file

@ -20,10 +20,10 @@ RUN git submodule update
RUN cmake -DCMAKE_BUILD_TYPE=debug .
RUN make -j2
RUN make install
RUN make -j2 test
RUN timew --version
# Setup tests
WORKDIR /root/code/test/
RUN make
CMD ["bash", "-c", "./run_all -v ; cat all.log | grep 'not ok' ; ./problems"]
CMD ["bash", "-c", "cat all.log | grep 'not ok' ; ./problems"]