summaryrefslogtreecommitdiff
path: root/run-tests.sh
blob: 76be006806f0233dbd6ec351799fbf406d591d3c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

set -e
CONTAINER_ARGS="$@"

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 $CONTAINER_ARGS
done