-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile.test
More file actions
28 lines (23 loc) · 1 KB
/
Dockerfile.test
File metadata and controls
28 lines (23 loc) · 1 KB
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
# syntax=docker/dockerfile:1.4
# Test runner — excludes pap-wasm (wasm32), pap-python (PyO3), papillon (Tauri)
FROM rust:latest
RUN apt-get update && apt-get install -y --no-install-recommends \
pkg-config libssl-dev ca-certificates \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /workspace
# Copy everything in one shot (buildx cache mount keeps registry warm between builds)
COPY . .
RUN --mount=type=cache,target=/usr/local/cargo/registry \
--mount=type=cache,target=/usr/local/cargo/git \
--mount=type=cache,target=/workspace/target \
cargo test --workspace \
--exclude pap-wasm \
--exclude pap-python \
--exclude papillon \
--exclude pap-bluefield \
2>&1
# pap-bluefield mock tests (no libibverbs / RDMA hardware required)
RUN --mount=type=cache,target=/usr/local/cargo/registry \
--mount=type=cache,target=/usr/local/cargo/git \
--mount=type=cache,target=/workspace/target \
cargo test -p pap-bluefield --no-default-features --features mock 2>&1