mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-10 01:01:33 +00:00
fix test using test specific build
This commit is contained in:
parent
b3edb657c2
commit
3e65e1a029
@ -7,7 +7,7 @@ on:
|
|||||||
branches: [stable, dev]
|
branches: [stable, dev]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
codeql:
|
analyze:
|
||||||
name: Analyze
|
name: Analyze
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container: # We use a previous image as it's expected to have all the dependencies
|
container: # We use a previous image as it's expected to have all the dependencies
|
@ -23,11 +23,18 @@ jobs:
|
|||||||
uses: docker/build-push-action@v3
|
uses: docker/build-push-action@v3
|
||||||
with:
|
with:
|
||||||
context: .
|
context: .
|
||||||
tags: aflplusplus:amd64
|
tags: aflplusplus:test-amd64
|
||||||
load: true
|
load: true
|
||||||
cache-to: type=gha,mode=max
|
cache-to: type=gha,mode=max
|
||||||
|
build-args: |
|
||||||
|
TEST_BUILD=1
|
||||||
- name: Test amd64
|
- name: Test amd64
|
||||||
run: docker run --rm aflplusplus:amd64 bash -c "apt-get update && apt-get install -y libcmocka-dev && make -i tests"
|
run: >
|
||||||
|
docker run --rm aflplusplus:test-amd64 bash -c "
|
||||||
|
apt-get update &&
|
||||||
|
apt-get install -y libcmocka-dev &&
|
||||||
|
make -i tests
|
||||||
|
"
|
||||||
|
|
||||||
push:
|
push:
|
||||||
name: Push amd64 and arm64 images
|
name: Push amd64 and arm64 images
|
12
Dockerfile
12
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
|
(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
|
# 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
|
# Build currently broken
|
||||||
ARG NO_CORESIGHT=1
|
ENV NO_CORESIGHT=1
|
||||||
ARG NO_UNICORN_ARM64=1
|
ENV NO_UNICORN_ARM64=1
|
||||||
|
|
||||||
WORKDIR /AFLplusplus
|
WORKDIR /AFLplusplus
|
||||||
COPY . .
|
COPY . .
|
||||||
@ -75,8 +75,12 @@ COPY . .
|
|||||||
ARG CC=gcc-$GCC_VERSION
|
ARG CC=gcc-$GCC_VERSION
|
||||||
ARG CXX=g++-$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 && \
|
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
|
mv GNUmakefile.bak GNUmakefile
|
||||||
|
|
||||||
RUN echo "set encoding=utf-8" > /root/.vimrc && \
|
RUN echo "set encoding=utf-8" > /root/.vimrc && \
|
||||||
|
Loading…
x
Reference in New Issue
Block a user