Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 22 additions & 5 deletions tests/kata-containerized-test-tool/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,28 @@ WORKDIR /app
COPY kata-containerized-test-tool .
RUN chmod +x /app/kata-containerized-test-tool

RUN tdnf update -y && tdnf install -y \
util-linux \
procps-ng \
iproute \
&& tdnf clean all
# Install dependencies
RUN tdnf update -y
RUN tdnf install -y util-linux procps-ng iproute dotnet-sdk-9.0 aspnetcore-runtime-9.0 zlib icu bash curl rust cargo build-essential protobuf-compiler protobuf-devel expect openssl-devel clang-devel libseccomp-devel btrfs-progs-devel device-mapper-devel cmake fuse-devel

# Install BinSkim
RUN dotnet new console -n TempConsoleApp && \
cd TempConsoleApp && \
dotnet add package Microsoft.CodeAnalysis.BinSkim --version 1.9.5
RUN ln -sf ~/.nuget/packages/microsoft.codeanalysis.binskim/1.9.5/tools/netcoreapp3.1/linux-x64/BinSkim /usr/local/bin/binskim

# Install Go tools
RUN curl -L https://go.dev/dl/go1.21.1.linux-amd64.tar.gz | tar -C /usr/local -xzf -
ENV PATH="/usr/local/go/bin:${PATH}"
RUN go install github.com/sonatype-nexus-community/nancy@latest
RUN go install golang.org/x/vuln/cmd/govulncheck@latest

ENV PATH="/root/go/bin:${PATH}"
RUN tdnf clean all

RUN mkdir -p /results
ENV DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1


ENTRYPOINT ["/app/kata-containerized-test-tool"]
CMD ["--output", "/results"]
3 changes: 3 additions & 0 deletions tests/kata-containerized-test-tool/cmd/katatest/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"github.com/kata-containers/tests/kata-containerized-test-tool/internal/core"
"github.com/kata-containers/tests/kata-containerized-test-tool/internal/tests/cpu"
"github.com/kata-containers/tests/kata-containerized-test-tool/internal/tests/memory"
"github.com/kata-containers/tests/kata-containerized-test-tool/internal/tests/sdl"
)

func main() {
Expand All @@ -28,6 +29,8 @@ func main() {
// Register all available tests
framework.RegisterTest(cpu.New())
framework.RegisterTest(memory.New())
framework.RegisterTest(sdl.New())


// Get tests to run from environment
testsToRun := getTestsToRun(framework.GetAvailableTests())
Expand Down
Loading
Loading