summaryrefslogtreecommitdiff
path: root/trunk/win
diff options
context:
space:
mode:
authordcommander <dcommander@3789f03b-4d11-0410-bbf8-ca57d06f2519>2010-02-19 06:56:03 +0000
committerdcommander <dcommander@3789f03b-4d11-0410-bbf8-ca57d06f2519>2010-02-19 06:56:03 +0000
commit218057d221163fb8d66c9e257df778aa45a20641 (patch)
tree7f7db31cf92a63c6b23d11cb1827441601dc07aa /trunk/win
parent2dbbdebb05e3013d408d887693d091f51676bc97 (diff)
Improve unit tests
git-svn-id: https://libjpeg-turbo.svn.sourceforge.net/svnroot/libjpeg-turbo@127 3789f03b-4d11-0410-bbf8-ca57d06f2519
Diffstat (limited to 'trunk/win')
-rwxr-xr-xtrunk/win/Makefile36
1 files changed, 21 insertions, 15 deletions
diff --git a/trunk/win/Makefile b/trunk/win/Makefile
index d33a934..35a16f5 100755
--- a/trunk/win/Makefile
+++ b/trunk/win/Makefile
@@ -231,21 +231,27 @@ dist: all
makensis /nocd /DVERSION=$(VERSION) release/libjpeg-turbo.nsi # Cygwin doesn't like the //
-test: testclean $(ODIR)/cjpeg.exe $(ODIR)/djpeg.exe $(ODIR)/jpegtran.exe
- cd $(ODIR)
- jpegut
- djpeg -dct int -ppm -outfile testout.ppm testorig.jpg
- djpeg -dct int -bmp -colors 256 -outfile testout.bmp testorig.jpg
- cjpeg -dct int -outfile testout.jpg testimg.ppm
- djpeg -dct int -ppm -outfile testoutp.ppm testprog.jpg
- cjpeg -dct int -progressive -opt -outfile testoutp.jpg testimg.ppm
- jpegtran -outfile testoutt.jpg testprog.jpg
- cmp testimg.ppm testout.ppm
- cmp testimg.bmp testout.bmp
- cmp testimg.jpg testout.jpg
- cmp testimg.ppm testoutp.ppm
- cmp testimgp.jpg testoutp.jpg
- cmp testorig.jpg testoutt.jpg
+test: testclean $(ODIR)/cjpeg.exe $(ODIR)/djpeg.exe $(ODIR)/jpegtran.exe \
+ $(ODIR)/jpegut.exe
+ cd $(ODIR); ./jpegut
+ $(ODIR)/cjpeg -dct int -outfile $(ODIR)/testoutint.jpg testorig.ppm
+ $(ODIR)/cjpeg -dct fast -opt -outfile $(ODIR)/testoutfst.jpg testorig.ppm
+ $(ODIR)/cjpeg -dct float -outfile $(ODIR)/testoutflt.jpg testorig.ppm
+ cmp testimgint.jpg $(ODIR)/testoutint.jpg
+ cmp testimgfst.jpg $(ODIR)/testoutfst.jpg
+ cmp testimgflt.jpg $(ODIR)/testoutflt.jpg
+ $(ODIR)/djpeg -dct int -fast -ppm -outfile $(ODIR)/testoutint.ppm testorig.jpg
+ $(ODIR)/djpeg -dct fast -ppm -outfile $(ODIR)/testoutfst.ppm testorig.jpg
+ $(ODIR)/djpeg -dct float -ppm -outfile $(ODIR)/testoutflt.ppm testorig.jpg
+ cmp testimgint.ppm $(ODIR)/testoutint.ppm
+ cmp testimgfst.ppm $(ODIR)/testoutfst.ppm
+ cmp testorig.ppm $(ODIR)/testoutflt.ppm
+ $(ODIR)/djpeg -dct int -bmp -colors 256 -outfile $(ODIR)/testout.bmp testorig.jpg
+ cmp testimg.bmp $(ODIR)/testout.bmp
+ $(ODIR)/cjpeg -dct int -progressive -outfile $(ODIR)/testoutp.jpg testorig.ppm
+ cmp testimgp.jpg $(ODIR)/testoutp.jpg
+ $(ODIR)/jpegtran -outfile $(ODIR)/testoutt.jpg $(ODIR)/testoutp.jpg
+ cmp testimgint.jpg $(ODIR)/testoutt.jpg
testclean:
$(RM) $(ODIR)/testout*