summaryrefslogtreecommitdiff
path: root/run-tests.sh
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2022-06-21 11:02:07 +0200
committerjaseg <git@jaseg.de>2022-06-21 11:02:07 +0200
commit3aeea67f373fde8a05cd8a72367a48f1d3a4288d (patch)
treefd898488f6107191e4ebb51cd6041679099b8667 /run-tests.sh
parent95d0b6049033289900d70bd10397a2b043dc0347 (diff)
downloadgerbonara-3aeea67f373fde8a05cd8a72367a48f1d3a4288d.tar.gz
gerbonara-3aeea67f373fde8a05cd8a72367a48f1d3a4288d.tar.bz2
gerbonara-3aeea67f373fde8a05cd8a72367a48f1d3a4288d.zip
Add podman local test runner
Diffstat (limited to 'run-tests.sh')
-rwxr-xr-xrun-tests.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/run-tests.sh b/run-tests.sh
new file mode 100755
index 0000000..50af316
--- /dev/null
+++ b/run-tests.sh
@@ -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
+