Files
flatpak/tests/test-wrapper.sh
Alexander Larsson 9ec61ae328 tests: Add tests for oci registries using labels instead of annotations
Closes: #2978
Approved by: alexlarsson
2019-09-06 12:49:40 +00:00

43 lines
1.1 KiB
Bash
Executable File

#!/bin/bash
for feature in $(echo $1 | sed "s/^.*@\(.*\).wrap/\1/" | tr "," "\n"); do
case $feature in
system)
export USE_SYSTEMDIR=yes
;;
system-norevokefs)
export USE_SYSTEMDIR=yes
export FLATPAK_DISABLE_REVOKEFS=yes
;;
user)
export USE_SYSTEMDIR=no
;;
deltas)
export USE_DELTAS=yes
;;
nodeltas)
export USE_DELTAS=no
;;
collections)
export USE_COLLECTIONS_IN_SERVER=yes
export USE_COLLECTIONS_IN_CLIENT=yes
;;
collections-server-only)
export USE_COLLECTIONS_IN_SERVER=yes
export USE_COLLECTIONS_IN_CLIENT=no
;;
labels)
export USE_OCI_LABELS=yes
;;
annotations)
export USE_OCI_ANNOTATIONS=yes
;;
*)
echo unsupported test feature $feature
exit 1
esac
done
WRAPPED=$(echo $1 | sed "s/@.*/\.sh/")
. $WRAPPED "$@"