-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
27 lines (23 loc) · 800 Bytes
/
Copy pathDockerfile
File metadata and controls
27 lines (23 loc) · 800 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt install -y --no-install-recommends \
build-essential cmake vim openssl curl ca-certificates \
llvm clang valgrind libedit-dev
# Set the working directory to root (ie $HOME)
WORKDIR root
COPY test test
COPY fuzz fuzz
COPY CMakeLists.txt CMakeLists.txt
COPY scripts scripts
COPY cli-test-cases cli-test-cases
COPY src src
RUN cmake -B build -DCMAKE_BUILD_TYPE=Release \
-DCMAKE_CXX_FLAGS="-coverage" -DCMAKE_C_COMPILER=clang \
-DCMAKE_CXX_COMPILER=clang++ -DBUILD_FUZZER=true -DBuildTest=TRUE
RUN make -C./build
#
RUN ./build/test/WarfLang_TEST
#
#RUN ./build/fuzz/WarfLang_FUZZ
RUN valgrind --tool=memcheck --leak-check=full --track-origins=yes --log-file=valgrind.log ./build/test/WarfLang_TEST