summaryrefslogtreecommitdiff
path: root/run-tests.sh
diff options
context:
space:
mode:
authorjaseg <git@jaseg.de>2022-06-21 11:31:17 +0200
committerjaseg <git@jaseg.de>2022-06-21 11:31:17 +0200
commit6752dab1254e2995e4d8545e2ae95be7be085a40 (patch)
tree3414159751b09d09491bc134d98c4019c9a7aec1 /run-tests.sh
parentacf2747e862be2b5bee370bd5fb4ddbcbb6e478f (diff)
downloadgerbonara-6752dab1254e2995e4d8545e2ae95be7be085a40.tar.gz
gerbonara-6752dab1254e2995e4d8545e2ae95be7be085a40.tar.bz2
gerbonara-6752dab1254e2995e4d8545e2ae95be7be085a40.zip
local tests: add --parallel arg
Diffstat (limited to 'run-tests.sh')
-rwxr-xr-xrun-tests.sh3
1 files changed, 2 insertions, 1 deletions
diff --git a/run-tests.sh b/run-tests.sh
index 50af316..76be006 100755
--- a/run-tests.sh
+++ b/run-tests.sh
@@ -1,6 +1,7 @@
#!/bin/sh
set -e
+CONTAINER_ARGS="$@"
rm -rf podman/testdata/git
git clone --depth 1 . podman/testdata/git
@@ -9,6 +10,6 @@ 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
+ 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