#1023 HTTP and HTTPS test support.
This commit is contained in:
parent
133174a6b1
commit
5c3973991e
2
Makefile
2
Makefile
@ -97,7 +97,7 @@ video-test.sh write-test.sh write-video-test.sh write2-test.sh xm
|
||||
bugtest bugstest testbugs bugfixes:
|
||||
cd test && ./bugfixes-test.sh
|
||||
|
||||
bugfixes-test icc-test preview-test webp-test stdin-test geotag-test:
|
||||
bugfixes-test icc-test preview-test webp-test stdin-test geotag-test http-test:
|
||||
cd test && ./$@.sh
|
||||
|
||||
# convenience target for building individual sample programs
|
||||
|
||||
@ -97,7 +97,7 @@ video-test.sh write-test.sh write-video-test.sh write2-test.sh xm
|
||||
bugtest bugstest testbugs bugfixes:
|
||||
cd test && ./bugfixes-test.sh
|
||||
|
||||
bugfixes-test icc-test preview-test webp-test stdin-test geotag-test:
|
||||
bugfixes-test icc-test preview-test webp-test stdin-test geotag-test http-test:
|
||||
cd test && ./$@.sh
|
||||
|
||||
# convenience target for building individual sample programs
|
||||
|
||||
14
test/data/http-test.out
Normal file
14
test/data/http-test.out
Normal file
@ -0,0 +1,14 @@
|
||||
http://exiv2.dyndns.org:8080/userContent/testfiles/webready//Reagan.jpg
|
||||
Exif.Image.Software Ascii 40 Adobe Photoshop Elements 12.0 Macintosh
|
||||
http://exiv2.dyndns.org:8080/userContent/testfiles/webready//ReaganLargePng.png
|
||||
Exif.Image.Software Ascii 11 GIMP 2.9.5
|
||||
http://exiv2.dyndns.org:8080/userContent/testfiles/webready//ReaganLargeTiff.tiff
|
||||
http://exiv2.dyndns.org:8080/userContent/testfiles/webready//ReaganLargeJpg.jpg
|
||||
Exif.Image.Software Ascii 12 GIMP 2.8.18
|
||||
https://exiv2.dyndns.org:8443/userContent/testfiles/webready//Reagan.jpg
|
||||
Exif.Image.Software Ascii 40 Adobe Photoshop Elements 12.0 Macintosh
|
||||
https://exiv2.dyndns.org:8443/userContent/testfiles/webready//ReaganLargePng.png
|
||||
Exif.Image.Software Ascii 11 GIMP 2.9.5
|
||||
https://exiv2.dyndns.org:8443/userContent/testfiles/webready//ReaganLargeTiff.tiff
|
||||
https://exiv2.dyndns.org:8443/userContent/testfiles/webready//ReaganLargeJpg.jpg
|
||||
Exif.Image.Software Ascii 12 GIMP 2.8.18
|
||||
32
test/http-test.sh
Executable file
32
test/http-test.sh
Executable file
@ -0,0 +1,32 @@
|
||||
#!/bin/bash
|
||||
# Test driver for http
|
||||
|
||||
source ./functions.source
|
||||
|
||||
|
||||
( cd "$testdir"
|
||||
|
||||
host=http://exiv2.dyndns.org:8080/
|
||||
dir=userContent/testfiles/webready/
|
||||
for host in http://exiv2.dyndns.org:8080 https://exiv2.dyndns.org:8443
|
||||
do
|
||||
printf "$host " >&3
|
||||
for filename in Reagan.jpg ReaganLargePng.png ReaganLargeTiff.tiff ReaganLargeJpg.jpg
|
||||
do
|
||||
echo $host/$dir/$filename
|
||||
runTest exiv2 -pa --grep Software $host/$dir/$filename
|
||||
done
|
||||
done
|
||||
|
||||
) 3>&1 > $results 2>&1
|
||||
|
||||
printf "\n"
|
||||
|
||||
# ----------------------------------------------------------------------
|
||||
# Evaluate results
|
||||
cat $results | tr -d $'\r' > $results-stripped
|
||||
mv $results-stripped $results
|
||||
reportTest $results $good
|
||||
|
||||
# That's all Folks!
|
||||
##
|
||||
Loading…
Reference in New Issue
Block a user