-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
33 lines (22 loc) · 1.09 KB
/
Dockerfile
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
28
29
30
31
32
33
FROM ubuntu:20.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \
&& apt install -y --no-install-recommends \
git build-essential cmake vim openssl curl ca-certificates \
libglib2.0-dev mingw-w64 nasm python3 pkg-config wget \
unzip zip libcapstone-dev libedit-dev libglfw3-dev libglm-dev
# Set the working directory to root (ie $HOME)
WORKDIR root
COPY . .
RUN cmake -B build -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_FLAGS="-coverage" -DBUILD_INT_TESTS=true
RUN make -C./build
RUN ./build/src/test/Disassembler_TEST
ENV XED_LIB_PATH /root/packages/xed/lib
RUN export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$XED_LIB_PATH \
&& ./build/plugins/xedPlugin/test/XED_TEST \
&& ./build/src/cli/disasm --raw -a x86_64 -i 0x55488b05b8130000 -d build/plugins/xedPlugin/libxedPlugin.so
RUN ./build/src/cli/disasm --binary -f build/int-tests/linux/hello.linux.out
RUN export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$XED_LIB_PATH \
&& ./build/src/cli/disasm --binary -f build/int-tests/linux/hello.linux.out -d build/plugins/xedPlugin/libxedPlugin.so
RUN ./configs/tempTest.sh
#RUN scripts/runGcov.sh