Add podman local test runner

This commit is contained in:
jaseg 2022-06-21 11:02:07 +02:00
parent 95d0b60490
commit 3aeea67f37
6 changed files with 52 additions and 0 deletions

14
run-tests.sh Executable file
View file

@ -0,0 +1,14 @@
#!/bin/sh
set -e
rm -rf podman/testdata/git
git clone --depth 1 . podman/testdata/git
for distro in arch ubuntu
do
podman build -t gerbonara-$distro-testenv -f podman/$distro-testenv
mkdir -p /tmp/gerbonara-test-out
podman run --mount type=bind,src=podman/testdata,dst=/data,ro --mount type=bind,src=/tmp/gerbonara-test-out,dst=/out gerbonara-$distro-testenv /data/testscript.sh
done