github.com/dmaizel/tests@v0.0.0-20210728163746-cae6a2d9cee8/conformance/posixfs/fstests.sh (about)

     1  #!/bin/bash
     2  #
     3  # Copyright (c) 2018 Intel Corporation
     4  #
     5  # SPDX-License-Identifier: Apache-2.0
     6  
     7  set -e
     8  
     9  # General env
    10  SCRIPT_PATH=$(dirname "$(readlink -f "$0")")
    11  source "${SCRIPT_PATH}/../../metrics/lib/common.bash"
    12  source "${SCRIPT_PATH}/../../lib/common.bash"
    13  
    14  # Env variables
    15  IMAGE="docker.io/library/local-fstest:latest"
    16  DOCKERFILE="${SCRIPT_PATH}/Dockerfile"
    17  CONT_NAME="${CONT_NAME:-fstest}"
    18  RUNTIME="${RUNTIME:-kata-runtime}"
    19  PAYLOAD_ARGS="${PAYLOAD_ARGS:-tail -f /dev/null}"
    20  
    21  function main() {
    22  	check_ctr_images "$IMAGE" "$DOCKERFILE"
    23  	ctr run --rm --runtime=${CTR_RUNTIME} $IMAGE fstest bash -c "cd /pjdfstest && prove -r"
    24  }
    25  
    26  main "$@"