Codebase list gimp-plugin-registry / 2c0b620
Add autopkgtest for Separate+ plugin. Signed-off-by: Ying-Chun Liu (PaulLiu) <paulliu@debian.org> Ying-Chun Liu (PaulLiu) 1 year, 5 months ago
2 changed file(s) with 21 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
55 Depends: @, imagemagick, plasma-workspace-wallpapers, jpeginfo
66 Restrictions: allow-stderr
77
8 Tests: test-separate-1
9 Depends: @, imagemagick, plasma-workspace-wallpapers, colord-data, libgs-common
10 Restrictions: allow-stderr
0 #/bin/sh
1
2 TEMP=${AUTOPKGTEST_TMP:-${TMPDIR:-$(mktemp -d)}}
3 TDIR=$(mktemp -d $TEMP/test-separate-1-XXXXXX)
4
5 convert /usr/share/wallpapers/EveningGlow/contents/images/2560x1440.jpg -resize '640x480!' "$TDIR"/origin.jpg
6
7 sleep 1
8
9 echo "Run separate+..."
10 gimp-console -i -b "(let* ((i1 (car (gimp-file-load 1 \"$TDIR/origin.jpg\" \"$TDIR/origin.jpg\"))) (layer1 (car (gimp-image-get-active-layer i1))) (cmykimg (car (plug-in-separate-full 1 i1 layer1 \"/usr/share/color/icc/colord/SMPTE-C-RGB.icc\" FALSE \"/usr/share/color/icc/ghostscript/gray_to_k.icc\" 1 FALSE FALSE FALSE FALSE)))) (gimp-xcf-save 1 cmykimg (car (gimp-image-get-active-drawable cmykimg)) \"$TDIR/output.xcf\" \"$TDIR/output.xcf\") (gimp-quit 1))"
11
12 sleep 2
13
14 if [ ! -e "$TDIR"/output.xcf ]; then
15 echo "No output.xcf"
16 exit 404
17 fi