From a5ab34509d8a52c37ab6c9c5d5f3501b61bd8d0e Mon Sep 17 00:00:00 2001
From: Alice Frosi <afrosi@redhat.com>
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 <afrosi@redhat.com>
---
 Makefile | 9 +++++++++
 1 file changed, 9 insertions(+)

(limited to 'Makefile')

diff --git a/Makefile b/Makefile
index 4a1b444..526e407 100644
--- a/Makefile
+++ b/Makefile
@@ -33,6 +33,15 @@ numbers.h:
 test-unit:
 	$(MAKE) -C tests/unit
 
+build-test-images: build seitan seitan-eater
+	$(MAKE) -C tests-utils
+	./build test.bpf
+	sudo podman build -t test-seitan -f containerfiles/tests/seitan/Containerfile .
+	sudo podman build -t test-eater -f containerfiles/tests/eater/Containerfile .
+
+test-integration:
+	python -m pytest tests/integration/seitan_containers.py
+
 transform.h: qemu_filter
 	./transform.sh qemu_filter
 
-- 
cgit v1.2.3