aboutgitcodelistschat:MatrixIRC
path: root/containerfiles
diff options
context:
space:
mode:
authorAlice Frosi <afrosi@redhat.com>2022-12-21 15:22:37 +0100
committerAlice Frosi <afrosi@redhat.com>2023-02-15 11:31:46 +0100
commita5ab34509d8a52c37ab6c9c5d5f3501b61bd8d0e (patch)
treef18d38b812a7c263a35d18c22c983019af0374c3 /containerfiles
parentb47cde4553f31b033cd3d096552c0a5646cdc88d (diff)
downloadseitan-a5ab34509d8a52c37ab6c9c5d5f3501b61bd8d0e.tar
seitan-a5ab34509d8a52c37ab6c9c5d5f3501b61bd8d0e.tar.gz
seitan-a5ab34509d8a52c37ab6c9c5d5f3501b61bd8d0e.tar.bz2
seitan-a5ab34509d8a52c37ab6c9c5d5f3501b61bd8d0e.tar.lz
seitan-a5ab34509d8a52c37ab6c9c5d5f3501b61bd8d0e.tar.xz
seitan-a5ab34509d8a52c37ab6c9c5d5f3501b61bd8d0e.tar.zst
seitan-a5ab34509d8a52c37ab6c9c5d5f3501b61bd8d0e.zip
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 <afrosi@redhat.com>
Diffstat (limited to 'containerfiles')
-rw-r--r--containerfiles/tests/eater/Containerfile14
-rw-r--r--containerfiles/tests/seitan/Containerfile4
2 files changed, 18 insertions, 0 deletions
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