mirror of
https://github.com/containers/skopeo.git
synced 2026-02-21 14:42:42 +00:00
Default to running integration tests using /var/tmp as scratch space, since it's more likely to support proper SELinux labeling than /tmp, which is more likely to be on a tmpfs. Signed-off-by: Nalin Dahyabhai <nalin@redhat.com> Closes: #320 Approved by: nalind
23 lines
420 B
Bash
Executable File
23 lines
420 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -e
|
|
|
|
cd "$(dirname "$(readlink -f "$BASH_SOURCE")")"
|
|
|
|
# Default to using /var/tmp for test space, since it's more likely to support
|
|
# labels than /tmp, which is often on tmpfs.
|
|
export TMPDIR=${TMPDIR:-/var/tmp}
|
|
|
|
# Load the helpers.
|
|
. helpers.bash
|
|
|
|
function execute() {
|
|
>&2 echo "++ $@"
|
|
eval "$@"
|
|
}
|
|
|
|
# Tests to run. Defaults to all.
|
|
TESTS=${@:-.}
|
|
|
|
# Run the tests.
|
|
execute time bats --tap $TESTS
|