aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorRuben ten Hove <git@rhtenhove.nl>2022-06-28 15:59:56 +0000
committerRuben ten Hove <git@rhtenhove.nl>2022-06-28 15:59:56 +0000
commit3e65e1a029c44b33a77ca04724335ee3ecd30e67 (patch)
tree76b76e4b93816a5eee50b859666939582dca1e1e /Dockerfile
parentb3edb657c2221f7d292931c8df04388c552737dd (diff)
downloadAFLplusplus-3e65e1a029c44b33a77ca04724335ee3ecd30e67.tar.gz
fix test using test specific build
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile12
1 files changed, 8 insertions, 4 deletions
diff --git a/Dockerfile b/Dockerfile
index a9be22de..29ca2a5f 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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 && \