Skip to content

Commit b88b2d0

Browse files
committed
add additional test covering recent changes
+ fix test_gray_sample download file name (fname included '?raw=true' suffix)
1 parent 2572007 commit b88b2d0

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

test/regression/run_tests.sh

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ test_gray_image() {
6868
if [ ! -f "$filename" ]; then
6969
url="https://github.com/haraldk/TwelveMonkeys/blob/master/\
7070
imageio/imageio-jpeg/src/test/resources/jpeg/$filename?raw=true"
71-
if ! curl -LO "$url"; then
71+
if ! curl -L "$url" -o "$filename"; then
7272
echo "Cannot download the image $filename from $url"
7373
return
7474
fi
@@ -86,6 +86,14 @@ test_nonexistent() {
8686
! $GPUJPEG -e nonexistent.pam fail.jpg
8787
}
8888

89+
test_out_ext_XXX() {
90+
"$GPUJPEG" -q 99 -e -b -Na 1111x511.p_4444-u8-p0123.random.tst rgba.jpg
91+
"$GPUJPEG" -d -Na rgba.jpg test_out_ext_XXX.XXX
92+
magick_compare input-1111x511.p_4444-u8-p0123.random.pam \
93+
test_out_ext_XXX.pam
94+
rm input-1111x511.p_4444-u8-p0123.random.* rgba.jpg test_out_ext_XXX.*
95+
}
96+
8997
# currently just a simple read/write tests without validating file contents
9098
test_pam_pnm_y4m() {
9199
w=256
@@ -148,6 +156,7 @@ test_fix_decode_outside_pinned_AND_fix_huff_buf_partially_not_cleared
148156
test_fix_postprocess_memcpy_pitch_20250305
149157
test_gray_image
150158
test_nonexistent
159+
test_out_ext_XXX
151160
test_pam_pnm_y4m
152161
test_random_psnr
153162

0 commit comments

Comments
 (0)