Skip to content

Commit

Permalink
Do not create files in TESTDATA_DIR in sh tests (#2415)
Browse files Browse the repository at this point in the history
  • Loading branch information
y-guyon authored Aug 28, 2024
1 parent 4c56ac1 commit 338b35b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/test_cmd_avifgainmaputil.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,12 @@ INPUT_AVIF_GAINMAP_SDR="${TESTDATA_DIR}/seine_sdr_gainmap_srgb.avif"
INPUT_AVIF_GAINMAP_HDR="${TESTDATA_DIR}/seine_hdr_gainmap_srgb.avif"
INPUT_AVIF_GAINMAP_HDR2020="${TESTDATA_DIR}/seine_hdr_rec2020.avif"
INPUT_JPEG_AVIF_GAINMAP_SDR="${TESTDATA_DIR}/seine_sdr_gainmap_srgb.jpg"
AVIF_GAINMAP_SDR_WITH_ICC="${TESTDATA_DIR}/seine_sdr_gainmap_srgb_icc.jpg" # generated below
AVIF_GAINMAP_SDR_WITH_ICC="seine_sdr_gainmap_srgb_icc.jpg" # generated below
# Output file names.
AVIF_OUTPUT="avif_test_cmd_avifgainmaputil_output.avif"
JPEG_OUTPUT="avif_test_cmd_avifgainmaputil_output.jpg"
PNG_OUTPUT="avif_test_cmd_avifgainmaputil_output.png"

# generate another input file used in tests below
"${AVIFENC}" "${INPUT_JPEG_AVIF_GAINMAP_SDR}" "${AVIF_GAINMAP_SDR_WITH_ICC}" --qcolor 90 --qgain-map 90

# Cleanup
cleanup() {
pushd ${TMP_DIR}
Expand All @@ -52,6 +49,9 @@ cleanup() {
trap cleanup EXIT

pushd ${TMP_DIR}
# generate another input file used in tests below
"${AVIFENC}" "${INPUT_JPEG_AVIF_GAINMAP_SDR}" "${AVIF_GAINMAP_SDR_WITH_ICC}" --qcolor 90 --qgain-map 90

"${AVIFGAINMAPUTIL}" help

"${AVIFGAINMAPUTIL}" printmetadata "${INPUT_AVIF_GAINMAP_SDR}"
Expand Down

0 comments on commit 338b35b

Please sign in to comment.