From a5ab34509d8a52c37ab6c9c5d5f3501b61bd8d0e Mon Sep 17 00:00:00 2001 From: Alice Frosi Date: Wed, 21 Dec 2022 15:22:37 +0100 Subject: integration: create integration tests Create initial pytest suite for testing seitan and seitan-eater setup. The test suite includes: - 'test_simple' verifies the basic functionalities and the synchronization between seitan and the eater - 'test_restart_seitan' verifies when steitan needs to restart Seitan and eater are deployed in a container to control the environment where they run. Signed-off-by: Alice Frosi --- containerfiles/tests/eater/Containerfile | 14 ++++++++++++++ containerfiles/tests/seitan/Containerfile | 4 ++++ 2 files changed, 18 insertions(+) create mode 100644 containerfiles/tests/eater/Containerfile create mode 100644 containerfiles/tests/seitan/Containerfile (limited to 'containerfiles') diff --git a/containerfiles/tests/eater/Containerfile b/containerfiles/tests/eater/Containerfile new file mode 100644 index 0000000..53e5b1c --- /dev/null +++ b/containerfiles/tests/eater/Containerfile @@ -0,0 +1,14 @@ +FROM fedora:37 + +RUN mkdir -p /var/run/test-filters + +COPY ./seitan-eater /usr/bin/seitan-eater +COPY ./tests-utils/test-syscalls /usr/local/bin/test-syscalls +# Filter without syscalls +COPY ./test.bpf /var/run/test-filters/test.bpf + +# Make all test filter files reable by all users +RUN chmod -R 0777 /var/run/test-filters && \ + chmod 0777 /var/run/test-filters/* + +ENTRYPOINT ["/usr/bin/seitan-eater"] diff --git a/containerfiles/tests/seitan/Containerfile b/containerfiles/tests/seitan/Containerfile new file mode 100644 index 0000000..e185388 --- /dev/null +++ b/containerfiles/tests/seitan/Containerfile @@ -0,0 +1,4 @@ +FROM fedora:37 + +COPY ./seitan /usr/bin/seitan +COPY ./tests-utils/test-server /usr/local/bin/test-server -- cgit v1.2.3