Skip to content

Commit

Permalink
Add integration tests for newly tracked send/recv syscalls
Browse files Browse the repository at this point in the history
  • Loading branch information
Molter73 committed Sep 10, 2024
1 parent 1bd8abd commit 75eae35
Show file tree
Hide file tree
Showing 9 changed files with 1,005 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ trim_trailing_whitespace = true
indent_style = space
indent_size = 2

[integration-tests/**.c]
indent_style = space
indent_size = 2

[*.sh]
indent_style = space
indent_size = 4
Expand Down
2 changes: 1 addition & 1 deletion integration-tests/container/QA_TAG
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.1.3
2.0.0
17 changes: 17 additions & 0 deletions integration-tests/container/udp/Containerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
FROM fedora:40 AS builder

WORKDIR /tmp
COPY udp-server.c .
COPY udp-client.c .

RUN dnf install -y gcc && \
gcc udp-server.c -Wall -Wpedantic -Werror -o udp-server && \
gcc udp-client.c -Wall -Wpedantic -Werror -o udp-client

FROM fedora:40

COPY --from=builder /tmp/udp-server /usr/local/bin
COPY --from=builder /tmp/udp-client /usr/local/bin
EXPOSE 9090

ENTRYPOINT ["udp-server"]
25 changes: 25 additions & 0 deletions integration-tests/container/udp/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
BASE_PATH = .
include ../Makefile-constants.mk

.DEFAULT_GOAL = all

COLLECTOR_QA_UDP_TAG := udp

ifneq ($(COLLECTOR_QA_TAG),)
COLLECTOR_QA_UDP_TAG=udp-$(COLLECTOR_QA_TAG)
endif

.PHONY: all
all: build

.PHONY: build
build:
@docker buildx build --load --platform ${PLATFORM} \
-t quay.io/rhacs-eng/qa-multi-arch:$(COLLECTOR_QA_UDP_TAG) \
-f Containerfile .

.PHONY: build-and-push
build-and-push:
@docker buildx build --push --platform ${PLATFORM} \
-t quay.io/rhacs-eng/qa-multi-arch:$(COLLECTOR_QA_UDP_TAG) \
-f Containerfile .
Loading

0 comments on commit 75eae35

Please sign in to comment.