Skip to content

Commit 2690ddf

Browse files
committed
Merge remote-tracking branch 'origin/7.32' into wsgroup3
2 parents c2a502e + e310044 commit 2690ddf

File tree

2 files changed

+49
-0
lines changed

2 files changed

+49
-0
lines changed

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ started 7.33.0 14/3/13
22
- start new cycle!
33

44
started 7.32.2 12/3/13
5+
- add a test for seq mode
56

67
started 7.32.1 7/3/13
78
- remove "fred" from dist

test/scripts/test_seq.sh

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
#!/bin/bash
2+
3+
# set -x
4+
5+
top_srcdir=$1
6+
tmp=$top_srcdir/test/tmp
7+
test_images=$top_srcdir/test/images
8+
image=$test_images/slanted_oval_vase2.jpg
9+
10+
# make a large PNG, roughly the size of Chicago.png
11+
echo -n "building huge test PNG image ... "
12+
vips replicate $image $tmp/huge.png 80 8
13+
echo "ok"
14+
15+
huge=$tmp/huge.png
16+
17+
echo -n "testing vipsthumbnail ... "
18+
rm $tmp/x.png
19+
vipsthumbnail $huge -o $tmp/x.png
20+
if ! header $tmp/x.png &> /dev/null ; then
21+
echo "vipsthumbnail failed in basic mode"
22+
exit 1
23+
fi
24+
echo "ok"
25+
26+
if [ ! -d $tmp/readonly ] ; then
27+
mkdir $tmp/readonly
28+
chmod ugo-wx $tmp/readonly
29+
fi
30+
export TMPDIR=$tmp/readonly
31+
32+
echo -n "testing vipsthumbnail does not make temps ... "
33+
rm $tmp/x.png
34+
vipsthumbnail $huge -o $tmp/x.png
35+
if ! header $tmp/x.png &> /dev/null ; then
36+
echo "vipsthumbnail made a temp"
37+
exit 1
38+
fi
39+
echo "ok"
40+
41+
echo -n "testing shrink does not make temps ... "
42+
rm $tmp/x.png
43+
vips shrink $huge $tmp/x.png 230 230
44+
if ! header $tmp/x.png &> /dev/null; then
45+
echo "shrink made a temp"
46+
exit 1
47+
fi
48+
echo "ok"

0 commit comments

Comments
 (0)