From e84760c24b479ae735cc64e72cd4a42551fba7a8 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 6 Jul 2016 19:19:19 +0300 Subject: Add ci test for image icc profiles. --- tools/ci/jobs/imagemagiccheck.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 tools/ci/jobs/imagemagiccheck.sh (limited to 'tools/ci/jobs/imagemagiccheck.sh') diff --git a/tools/ci/jobs/imagemagiccheck.sh b/tools/ci/jobs/imagemagiccheck.sh new file mode 100755 index 000000000..3d7476868 --- /dev/null +++ b/tools/ci/jobs/imagemagiccheck.sh @@ -0,0 +1,20 @@ +#!/bin/bash + +source ./tools/ci/scripts/init.sh + +aptget_install imagemagick + +export LOG="logs/icccheck.log" + +mkdir logs +rm ${LOG} + +find $DIR -type f -name "*.png" -exec ./tools/ci/scripts/icccheckfile.sh {} \; >${LOG} +check_error $? + +export RES=$(cat ${LOG}) +if [[ -n "${RES}" ]]; then + echo "Detected icc profiles" + cat ${LOG} + exit 1 +fi -- cgit v1.2.3-70-g09d2