Add a valgind test

pull/1/head
Thomas Orozco 10 years ago
parent 3af90f3ba8
commit 5b7d66bfe3
  1. 6
      Dockerfile
  2. 3
      test/test.py

@ -1,8 +1,8 @@
FROM ubuntu
RUN apt-get update && apt-get install --no-install-recommends -y build-essential gdb && rm -rf /var/lib/apt/lists/*
RUN apt-get update
RUN apt-get install --no-install-recommends -y git
RUN apt-get update \
&& apt-get install --no-install-recommends --yes build-essential git gdb valgrind \
&& rm -rf /var/lib/apt/lists/*
ADD . /tini
RUN cd /tini && make clean && make

@ -89,3 +89,6 @@ if __name__ == "__main__":
Command(base_cmd + ["-z"], fail_cmd).run(retcode=1)
Command(base_cmd + ["--", "zzzz"], fail_cmd).run(retcode=1)
Command(base_cmd + ["-h"], fail_cmd).run(retcode=0)
# Valgrind test
Command(base_cmd + ["--", "valgrind", "--leak-check=full", "--error-exitcode=1", "/tini/tini", "-v", "--", "ls"], fail_cmd).run()

Loading…
Cancel
Save