#!/bin/bash # # SPDX-FileCopyrightText: 2021-2024 Nextcloud GmbH and Nextcloud contributors # SPDX-FileCopyrightText: 2021 Tobias Kaminsky # SPDX-License-Identifier: AGPL-3.0-or-later error=0 total=0 cp scripts/screenshotCombinations scripts/screenshotCombinations_ grep -v "#" scripts/screenshotCombinations_ > scripts/screenshotCombinations rm scripts/screenshotCombinations_ echo ' ' echo "" echo "" while read line; do echo "" done < scripts/screenshotCombinations echo "" #for image in ./build/reports/shot/verification/images/*.png ; do for image in $(/bin/ls -1 ./screenshots/gplay/debug/*.png | grep -v _dark_ | grep -v _light_) ; do cp $image app/build/screenshotSummary/images/ echo "" echo "" while read line; do echo "" done < scripts/screenshotCombinations echo "" done echo "
Original$line
" mode=$(echo $line | cut -d" " -f1) color=$(echo $line | cut -d" " -f2) total=$((total + 1)) if [ $mode = "light" -a $color = "blue" ]; then name=$(basename $image) else name=$(basename $image| sed s"/\.png/_${mode}_$color\.png/") fi # if image does not exist if [ ! -e ./app/build/reports/shot/verification/images/$name ]; then echo "" error=$((error + 1)) elif [ -e ./app/build/reports/shot/verification/images/diff_$name ]; then # file with "diff_" prefix cp ./app/build/reports/shot/verification/images/diff_$name build/screenshotSummary/images/ echo "" error=$((error + 1)) else echo "✔" fi echo "
" echo "ERROR: $error / $total" echo ""