1#!/usr/bin/env bash 2 3# shellcheck disable=SC1091 # The relative paths in this file only become valid at runtime. 4# shellcheck disable=SC2034 # Variables are used in scripts called from here 5# shellcheck disable=SC2086 # we want word splitting 6 7# Install fluster in /usr/local. 8 9FLUSTER_REVISION="e997402978f62428fffc8e5a4a709690d9ca9bc5" 10 11git clone https://github.com/fluendo/fluster.git --single-branch --no-checkout 12 13pushd fluster || exit 14git checkout ${FLUSTER_REVISION} 15popd || exit 16 17if [ "${SKIP_UPDATE_FLUSTER_VECTORS}" != 1 ]; then 18 # Download the necessary vectors: H264, H265 and VP9 19 # When updating FLUSTER_REVISION, make sure to update the vectors if necessary or 20 # fluster-runner will report Missing results. 21 fluster/fluster.py download \ 22 JVT-AVC_V1 JVT-FR-EXT JVT-MVC JVT-SVC_V1 \ 23 JCT-VC-3D-HEVC JCT-VC-HEVC_V1 JCT-VC-MV-HEVC JCT-VC-RExt JCT-VC-SCC JCT-VC-SHVC \ 24 VP9-TEST-VECTORS-HIGH VP9-TEST-VECTORS 25 26 # Build fluster vectors archive and upload it 27 tar --zstd -cf "vectors.tar.zst" fluster/resources/ 28 ci-fairy s3cp --token-file "${S3_JWT_FILE}" "vectors.tar.zst" \ 29 "https://${S3_PATH_FLUSTER}/vectors.tar.zst" 30 31 touch /lava-files/done 32 ci-fairy s3cp --token-file "${S3_JWT_FILE}" /lava-files/done "https://${S3_PATH_FLUSTER}/done" 33 34 # Don't include the vectors in the rootfs 35 rm -fr fluster/resources/* 36fi 37 38mkdir -p "${ROOTFS}/usr/local/" 39mv fluster "${ROOTFS}/usr/local/" 40 41