diff options
author | Ruben ten Hove <git@rhtenhove.nl> | 2022-06-28 15:59:56 +0000 |
---|---|---|
committer | Ruben ten Hove <git@rhtenhove.nl> | 2022-06-28 15:59:56 +0000 |
commit | 3e65e1a029c44b33a77ca04724335ee3ecd30e67 (patch) | |
tree | 76b76e4b93816a5eee50b859666939582dca1e1e /Dockerfile | |
parent | b3edb657c2221f7d292931c8df04388c552737dd (diff) | |
download | AFLplusplus-3e65e1a029c44b33a77ca04724335ee3ecd30e67.tar.gz |
fix test using test specific build
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -63,11 +63,11 @@ RUN git clone --depth=1 https://github.com/vanhauser-thc/afl-cov && \ (cd afl-cov && make install) && rm -rf afl-cov # Until gcc v12.1 is released for ubuntu https://bugs.launchpad.net/ubuntu/+source/gcc-11/+bug/1940029 -ARG NO_NYX=1 +ENV NO_NYX=1 # Build currently broken -ARG NO_CORESIGHT=1 -ARG NO_UNICORN_ARM64=1 +ENV NO_CORESIGHT=1 +ENV NO_UNICORN_ARM64=1 WORKDIR /AFLplusplus COPY . . @@ -75,8 +75,12 @@ COPY . . ARG CC=gcc-$GCC_VERSION ARG CXX=g++-$GCC_VERSION +# Used in CI to prevent a 'make clean' which would remove the binaries to be tested +ARG TEST_BUILD + RUN sed -i.bak 's/^ -/ /g' GNUmakefile && \ - make clean && make distrib && make install && make clean && \ + make clean && make distrib && \ + ([ "${TEST_BUILD}" ] || (make install && make clean)) && \ mv GNUmakefile.bak GNUmakefile RUN echo "set encoding=utf-8" > /root/.vimrc && \ |