aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2021-03-19 16:06:06 +0100
committervanhauser-thc <vh@thc.org>2021-03-19 16:06:06 +0100
commit2102264acf5c271b7560a82771b3af8136af9354 (patch)
tree56cce5a15206634bd1877c428a5b15c064d7fa53 /test
parente73c7c59c14d0bff1c1b25aa264fe18b7cdcddaf (diff)
downloadAFLplusplus-2102264acf5c271b7560a82771b3af8136af9354.tar.gz
fix for new llvm 13 change
Diffstat (limited to 'test')
-rw-r--r--test/test-dlopen.c16
-rw-r--r--test/travis/bionic/Dockerfile45
-rw-r--r--test/travis/focal/Dockerfile45
-rw-r--r--test/travis/trusty/Dockerfile49
-rw-r--r--test/travis/xenial/Dockerfile46
5 files changed, 9 insertions, 192 deletions
diff --git a/test/test-dlopen.c b/test/test-dlopen.c
index 3db6adba..d08d9092 100644
--- a/test/test-dlopen.c
+++ b/test/test-dlopen.c
@@ -5,17 +5,19 @@
int main(int argc, char **argv) {
- if (!getenv("TEST_DLOPEN_TARGET"))
- return 1;
- void* lib = dlopen(getenv("TEST_DLOPEN_TARGET"), RTLD_LAZY);
+ if (!getenv("TEST_DLOPEN_TARGET")) return 1;
+ void *lib = dlopen(getenv("TEST_DLOPEN_TARGET"), RTLD_LAZY);
if (!lib) {
+
perror(dlerror());
return 2;
+
}
- int (*func)(int, char**) = dlsym(lib, "main_exported");
- if (!func)
- return 3;
-
+
+ int (*func)(int, char **) = dlsym(lib, "main_exported");
+ if (!func) return 3;
+
return func(argc, argv);
}
+
diff --git a/test/travis/bionic/Dockerfile b/test/travis/bionic/Dockerfile
deleted file mode 100644
index 00ab96f9..00000000
--- a/test/travis/bionic/Dockerfile
+++ /dev/null
@@ -1,45 +0,0 @@
-# This is the Dockerfile for testing problems in Travis build
-# configuration #1.
-# This needs not to be rebuild everytime, most of the time it needs just to
-# be build once and then started when debugging issues and execute:
-# cd /AFLplusplus/
-# git pull
-# make distrib
-#
-FROM ubuntu:bionic
-LABEL "about"="travis image 1"
-RUN apt-get update && apt-get -y install \
- automake \
- bison \
- build-essential \
- clang \
- flex \
- git \
- python3.7 python3.7-dev \
- python3-setuptools \
- libtool libtool-bin \
- libglib2.0-dev \
- python-setuptools \
- wget \
- ca-certificates \
- libpixman-1-dev \
- gcc-7 gcc-7-plugin-dev libc++-7-dev \
- findutils \
- libcmocka-dev \
- joe nano vim locate \
- && rm -rf /var/lib/apt/lists/*
-
-ENV AFL_NO_UI=1
-ENV AFL_I_DONT_CARE_ABOUT_MISSING_CRASHES=1
-ENV LLVM_CONFIG=llvm-config-6.0
-
-RUN cd / && \
- git clone https://github.com/AFLplusplus/AFLplusplus && \
- cd AFLplusplus && \
- git checkout dev && \
- cd qemu_mode && wget http://download.qemu-project.org/qemu-3.1.1.tar.xz && \
- cd ../unicorn_mode && git submodule init && git submodule update || true && \
- cd /AFLplusplus && ASAN_BUILD=1 make source-only || true
-
-WORKDIR /AFLplusplus
-CMD ["/bin/bash"]
diff --git a/test/travis/focal/Dockerfile b/test/travis/focal/Dockerfile
deleted file mode 100644
index 27d994f2..00000000
--- a/test/travis/focal/Dockerfile
+++ /dev/null
@@ -1,45 +0,0 @@
-# This is the Dockerfile for testing problems in Travis build
-# configuration #1.
-# This needs not to be rebuild everytime, most of the time it needs just to
-# be build once and then started when debugging issues and execute:
-# cd /AFLplusplus/
-# git pull
-# make distrib
-#
-FROM ubuntu:focal
-LABEL "about"="travis image 4"
-ARG DEBIAN_FRONTEND=noninteractive
-RUN apt-get update && apt-get -y install \
- automake \
- bison \
- build-essential \
- clang \
- flex \
- git \
- python3 python3-dev \
- python3-setuptools \
- libtool libtool-bin \
- libglib2.0-dev \
- python-setuptools \
- wget \
- ca-certificates \
- libpixman-1-dev \
- gcc-9 gcc-9-plugin-dev libc++-9-dev \
- findutils \
- libcmocka-dev \
- joe nano vim locate \
- && rm -rf /var/lib/apt/lists/*
-
-ENV AFL_NO_UI=1
-ENV AFL_I_DONT_CARE_ABOUT_MISSING_CRASHES=1
-
-RUN cd / && \
- git clone https://github.com/AFLplusplus/AFLplusplus && \
- cd AFLplusplus && \
- git checkout dev && \
- cd qemu_mode && wget http://download.qemu-project.org/qemu-3.1.1.tar.xz && \
- cd ../unicorn_mode && git submodule init && git submodule update || true && \
- cd /AFLplusplus && ASAN_BUILD=1 make source-only || true
-
-WORKDIR /AFLplusplus
-CMD ["/bin/bash"]
diff --git a/test/travis/trusty/Dockerfile b/test/travis/trusty/Dockerfile
deleted file mode 100644
index 0a6f1804..00000000
--- a/test/travis/trusty/Dockerfile
+++ /dev/null
@@ -1,49 +0,0 @@
-# This is the Dockerfile for testing problems in Travis builds
-# configuration #3.
-# This needs not to be rebuild everytime, most of the time it needs just to
-# be build once and then started when debugging issues and execute:
-# cd /AFLplusplus/
-# git pull
-# make distrib
-#
-FROM ubuntu:trusty
-LABEL "about"="travis image 3"
-RUN apt-get update && apt-get -y install \
- automake \
- bison \
- build-essential \
- clang \
- flex \
- git \
- python2.7 python2.7-dev \
- python3-setuptools \
- libtool \
- libglib2.0-dev \
- python-setuptools \
- wget \
- ca-certificates \
- libpixman-1-dev \
- gcc-4.8 gcc-4.8-plugin-dev \
- libc++-dev \
- findutils \
- libcmocka-dev \
- joe nano vim locate \
- && rm -rf /var/lib/apt/lists/*
-
-ENV TERM linux
-ENV DEBIAN_FRONTEND noninteractive
-ENV LLVM_CONFIG=llvm-config-3.4
-ENV AFL_NO_UI=1
-ENV AFL_I_DONT_CARE_ABOUT_MISSING_CRASHES=1
-
-RUN cd / && \
- git clone https://github.com/AFLplusplus/AFLplusplus && \
- cd AFLplusplus && \
- git checkout dev && \
- cd qemu_mode && wget http://download.qemu-project.org/qemu-3.1.1.tar.xz && \
- cd ../unicorn_mode && git submodule init && git submodule update || true && \
- cd /AFLplusplus && ASAN_BUILD=1 make source-only || true
-
-WORKDIR /AFLplusplus
-CMD ["/bin/bash"]
-
diff --git a/test/travis/xenial/Dockerfile b/test/travis/xenial/Dockerfile
deleted file mode 100644
index 6aa4b1d1..00000000
--- a/test/travis/xenial/Dockerfile
+++ /dev/null
@@ -1,46 +0,0 @@
-# This is the Dockerfile for testing problems in Travis builds
-# configuration #2.
-# This needs not to be rebuild everytime, most of the time it needs just to
-# be build once and then started when debugging issues and execute:
-# cd /AFLplusplus/
-# git pull
-# make distrib
-#
-FROM ubuntu:xenial
-LABEL "about"="travis image 2"
-RUN apt-get update && apt-get -y install \
- automake \
- bison \
- build-essential \
- clang-6.0 \
- flex \
- git \
- python3 python3-dev \
- python3-setuptools \
- libtool libtool-bin \
- libglib2.0-dev \
- python-setuptools \
- wget \
- ca-certificates \
- libpixman-1-dev \
- gcc-5 gcc-5-plugin-dev \
- libc++-dev \
- findutils \
- libcmocka-dev \
- joe nano vim locate \
- && rm -rf /var/lib/apt/lists/*
-
-ENV LLVM_CONFIG=llvm-config-6.0
-ENV AFL_NO_UI=1
-ENV AFL_I_DONT_CARE_ABOUT_MISSING_CRASHES=1
-
-RUN cd / && \
- git clone https://github.com/AFLplusplus/AFLplusplus && \
- cd AFLplusplus && \
- git checkout dev && \
- cd qemu_mode && wget http://download.qemu-project.org/qemu-3.1.1.tar.xz && \
- cd ../unicorn_mode && git submodule init && git submodule update || true && \
- cd /AFLplusplus && ASAN_BUILD=1 make source-only || true
-
-WORKDIR /AFLplusplus
-CMD ["/bin/bash"]