blob: 4138d7d3f3cc5111b1239acb5c228f738a96c5e7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
#!/bin/sh
set -e
while [ $# -gt 0 ]; do
case $1 in
--parallel)
CONTAINER_ARGS="--workers auto $CONTAINER_ARGS"
shift;;
-x)
CONTAINER_ARGS="-x $CONTAINER_ARGS"
shift;;
--no-cache)
NO_CACHE=--no-cache
shift;;
*)
echo "Unknown argument \"$1\""
exit 1
shift;;
esac
done
make -C svg-flatten -j build/svg-flatten.wasm
rm -rf podman/testdata/git
mkdir -p podman/testdata/git
git clone --depth 1 . podman/testdata/git
git ls-tree --full-tree -r HEAD --name-only | rsync -lptgoD --delete . --files-from - podman/testdata/git/
rsync -a --delete svg-flatten/build/svg-flatten.wasm podman/testdata/git/svg-flatten/build/
for distro in ubuntu-old ubuntu arch
do
podman build $NO_CACHE -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
|