mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-13 23:36:48 +00:00
Add LTP syscall test to docker image
This commit is contained in:
parent
ecb33ca98d
commit
6b1f8aab39
@ -291,6 +291,32 @@ WORKDIR /root/syscall_test
|
|||||||
RUN export BUILD_DIR=build && \
|
RUN export BUILD_DIR=build && \
|
||||||
make ${BUILD_DIR}/syscall_test_bins
|
make ${BUILD_DIR}/syscall_test_bins
|
||||||
|
|
||||||
|
#= Build syscall test of Linux Test Project====================================
|
||||||
|
|
||||||
|
FROM build-base AS build-ltp
|
||||||
|
|
||||||
|
WORKDIR /root
|
||||||
|
RUN apt update && apt-get install -y --no-install-recommends \
|
||||||
|
autoconf \
|
||||||
|
automake \
|
||||||
|
pkg-config
|
||||||
|
RUN git clone --single-branch -b v20250130 https://github.com/asterinas/ltp.git
|
||||||
|
WORKDIR /root/ltp
|
||||||
|
RUN make autotools \
|
||||||
|
&& ./configure --prefix=/opt/ltp \
|
||||||
|
&& make -C testcases/kernel/syscalls \
|
||||||
|
&& make -C testcases/lib \
|
||||||
|
&& make -C runtest \
|
||||||
|
&& make -C pan \
|
||||||
|
&& make -C testcases/kernel/syscalls install \
|
||||||
|
&& make -C testcases/lib install \
|
||||||
|
&& make -C runtest install \
|
||||||
|
&& make -C pan install \
|
||||||
|
&& install -m 00755 ./runltp /opt/ltp/runltp \
|
||||||
|
&& install -m 00444 ./VERSION /opt/ltp/Version \
|
||||||
|
&& install -m 00755 ./ver_linux /opt/ltp/ver_linux \
|
||||||
|
&& install -m 00755 ./IDcheck.sh /opt/ltp/IDcheck.sh
|
||||||
|
|
||||||
#= Build busybox ==============================================================
|
#= Build busybox ==============================================================
|
||||||
|
|
||||||
FROM build-base AS build-busybox
|
FROM build-base AS build-busybox
|
||||||
@ -341,6 +367,7 @@ RUN apt update && apt-get install -y --no-install-recommends \
|
|||||||
RUN apt clean && rm -rf /var/lib/apt/lists/*
|
RUN apt clean && rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# Prepare the system call test suite
|
# Prepare the system call test suite
|
||||||
|
COPY --from=build-ltp /opt/ltp /opt/ltp
|
||||||
COPY --from=syscall_test /root/syscall_test/build/syscall_test_bins /root/syscall_test_bins
|
COPY --from=syscall_test /root/syscall_test/build/syscall_test_bins /root/syscall_test_bins
|
||||||
ENV ASTER_PREBUILT_SYSCALL_TEST=/root/syscall_test_bins
|
ENV ASTER_PREBUILT_SYSCALL_TEST=/root/syscall_test_bins
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user