diff options
author | Roger Leigh <rleigh@debian.org> | 2008-10-26 16:18:09 +0000 |
---|---|---|
committer | Roger Leigh <rleigh@debian.org> | 2008-10-26 16:18:09 +0000 |
commit | f9238b191d14686b9beba78893dff0a8dff9c087 (patch) | |
tree | f563eacc3307021378e7c50d4c1ee4797a2392dc /test | |
parent | cda0fb3b8a7cb56045b24fd0af0ed36591b5d7eb (diff) |
Imported Upstream version 5.0.2
Diffstat (limited to 'test')
-rw-r--r-- | test/Makefile.in | 195 | ||||
-rw-r--r-- | test/pixma_parse.c | 28 | ||||
-rwxr-xr-x | test/run-testdither | 4 |
3 files changed, 101 insertions, 126 deletions
diff --git a/test/Makefile.in b/test/Makefile.in index 899bdac..98f5a8a 100644 --- a/test/Makefile.in +++ b/test/Makefile.in @@ -1,8 +1,8 @@ -# Makefile.in generated by automake 1.9.6 from Makefile.am. +# Makefile.in generated by automake 1.10 from Makefile.am. # @configure_input@ # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, -# 2003, 2004, 2005 Free Software Foundation, Inc. +# 2003, 2004, 2005, 2006 Free Software Foundation, Inc. # This Makefile.in is free software; the Free Software Foundation # gives unlimited permission to copy and/or distribute it, # with or without modifications, as long as this notice is preserved. @@ -19,15 +19,11 @@ #export STP_MODULE_PATH = $(top_builddir)/src/main/.libs:$(top_builddir)/src/main #export STP_DATA_PATH = $(top_srcdir)/src/main -srcdir = @srcdir@ -top_srcdir = @top_srcdir@ VPATH = @srcdir@ pkgdatadir = $(datadir)/@PACKAGE@ pkglibdir = $(libdir)/@PACKAGE@ pkgincludedir = $(includedir)/@PACKAGE@ -top_builddir = .. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd -INSTALL = @INSTALL@ install_sh_DATA = $(install_sh) -c -m 644 install_sh_PROGRAM = $(install_sh) -c install_sh_SCRIPT = $(install_sh) -c @@ -43,6 +39,7 @@ build_triplet = @build@ host_triplet = @host@ DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in \ $(top_srcdir)/scripts/global.mk +TESTS = curve$(EXEEXT) run-testdither run-weavetest @BUILD_TEST_TRUE@noinst_PROGRAMS = testdither$(EXEEXT) \ @BUILD_TEST_TRUE@ escp2-weavetest$(EXEEXT) unprint$(EXEEXT) \ @BUILD_TEST_TRUE@ pcl-unprint$(EXEEXT) bjc-unprint$(EXEEXT) \ @@ -66,40 +63,40 @@ CONFIG_CLEAN_FILES = PROGRAMS = $(noinst_PROGRAMS) am_bjc_unprint_OBJECTS = bjc-unprint.$(OBJEXT) bjc_unprint_OBJECTS = $(am_bjc_unprint_OBJECTS) -am__DEPENDENCIES_1 = $(top_builddir)/src/main/libgutenprint.la -bjc_unprint_DEPENDENCIES = $(am__DEPENDENCIES_1) +bjc_unprint_DEPENDENCIES = $(GUTENPRINT_LIBS) am_curve_OBJECTS = curve.$(OBJEXT) curve_OBJECTS = $(am_curve_OBJECTS) -curve_DEPENDENCIES = $(am__DEPENDENCIES_1) +curve_DEPENDENCIES = $(GUTENPRINT_LIBS) am_escp2_weavetest_OBJECTS = escp2-weavetest.$(OBJEXT) escp2_weavetest_OBJECTS = $(am_escp2_weavetest_OBJECTS) -escp2_weavetest_DEPENDENCIES = $(am__DEPENDENCIES_1) +escp2_weavetest_DEPENDENCIES = $(GUTENPRINT_LIBS) am_pcl_unprint_OBJECTS = pcl-unprint.$(OBJEXT) pcl_unprint_OBJECTS = $(am_pcl_unprint_OBJECTS) -pcl_unprint_DEPENDENCIES = $(am__DEPENDENCIES_1) +pcl_unprint_DEPENDENCIES = $(GUTENPRINT_LIBS) am_pixma_parse_OBJECTS = pixma_parse.$(OBJEXT) pixma_parse_OBJECTS = $(am_pixma_parse_OBJECTS) pixma_parse_LDADD = $(LDADD) am_testdither_OBJECTS = testdither.$(OBJEXT) testdither_OBJECTS = $(am_testdither_OBJECTS) -testdither_DEPENDENCIES = $(am__DEPENDENCIES_1) +testdither_DEPENDENCIES = $(GUTENPRINT_LIBS) am_unprint_OBJECTS = unprint.$(OBJEXT) unprint_OBJECTS = $(am_unprint_OBJECTS) -unprint_DEPENDENCIES = $(am__DEPENDENCIES_1) +unprint_DEPENDENCIES = $(GUTENPRINT_LIBS) am_xml_curve_OBJECTS = xml-curve.$(OBJEXT) xml_curve_OBJECTS = $(am_xml_curve_OBJECTS) -xml_curve_DEPENDENCIES = $(am__DEPENDENCIES_1) -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir) +xml_curve_DEPENDENCIES = $(GUTENPRINT_LIBS) +DEFAULT_INCLUDES = -I. -I$(top_builddir)@am__isrc@ depcomp = $(SHELL) $(top_srcdir)/scripts/depcomp am__depfiles_maybe = depfiles COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) -LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \ - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ - $(AM_CFLAGS) $(CFLAGS) +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \ + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) CCLD = $(CC) -LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ - $(AM_LDFLAGS) $(LDFLAGS) -o $@ +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \ + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \ + $(LDFLAGS) -o $@ SOURCES = $(bjc_unprint_SOURCES) $(curve_SOURCES) \ $(escp2_weavetest_SOURCES) $(pcl_unprint_SOURCES) \ $(pixma_parse_SOURCES) $(testdither_SOURCES) \ @@ -113,51 +110,13 @@ CTAGS = ctags DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) ACLOCAL = @ACLOCAL@ ALL_LINGUAS = @ALL_LINGUAS@ -AMDEP_FALSE = @AMDEP_FALSE@ -AMDEP_TRUE = @AMDEP_TRUE@ AMTAR = @AMTAR@ AR = @AR@ AUTOCONF = @AUTOCONF@ AUTOHEADER = @AUTOHEADER@ AUTOMAKE = @AUTOMAKE@ AWK = @AWK@ -BUILD_CUPS_1_2_FALSE = @BUILD_CUPS_1_2_FALSE@ -BUILD_CUPS_1_2_TRUE = @BUILD_CUPS_1_2_TRUE@ -BUILD_CUPS_FALSE = @BUILD_CUPS_FALSE@ BUILD_CUPS_PPDS = @BUILD_CUPS_PPDS@ -BUILD_CUPS_PPDS_FALSE = @BUILD_CUPS_PPDS_FALSE@ -BUILD_CUPS_PPDS_TRUE = @BUILD_CUPS_PPDS_TRUE@ -BUILD_CUPS_TRUE = @BUILD_CUPS_TRUE@ -BUILD_ESCPUTIL_FALSE = @BUILD_ESCPUTIL_FALSE@ -BUILD_ESCPUTIL_TRUE = @BUILD_ESCPUTIL_TRUE@ -BUILD_FOOMATIC_3_FALSE = @BUILD_FOOMATIC_3_FALSE@ -BUILD_FOOMATIC_3_TRUE = @BUILD_FOOMATIC_3_TRUE@ -BUILD_FOOMATIC_FALSE = @BUILD_FOOMATIC_FALSE@ -BUILD_FOOMATIC_TRUE = @BUILD_FOOMATIC_TRUE@ -BUILD_GENPPD_STATIC_FALSE = @BUILD_GENPPD_STATIC_FALSE@ -BUILD_GENPPD_STATIC_TRUE = @BUILD_GENPPD_STATIC_TRUE@ -BUILD_GHOSTSCRIPT_FALSE = @BUILD_GHOSTSCRIPT_FALSE@ -BUILD_GHOSTSCRIPT_TRUE = @BUILD_GHOSTSCRIPT_TRUE@ -BUILD_GIMP2_AS_GUTENPRINT_FALSE = @BUILD_GIMP2_AS_GUTENPRINT_FALSE@ -BUILD_GIMP2_AS_GUTENPRINT_TRUE = @BUILD_GIMP2_AS_GUTENPRINT_TRUE@ -BUILD_GIMP2_FALSE = @BUILD_GIMP2_FALSE@ -BUILD_GIMP2_TRUE = @BUILD_GIMP2_TRUE@ -BUILD_GIMP_FALSE = @BUILD_GIMP_FALSE@ -BUILD_GIMP_TRUE = @BUILD_GIMP_TRUE@ -BUILD_LIBGUTENPRINTUI2_FALSE = @BUILD_LIBGUTENPRINTUI2_FALSE@ -BUILD_LIBGUTENPRINTUI2_TRUE = @BUILD_LIBGUTENPRINTUI2_TRUE@ -BUILD_LIBGUTENPRINTUI_FALSE = @BUILD_LIBGUTENPRINTUI_FALSE@ -BUILD_LIBGUTENPRINTUI_TRUE = @BUILD_LIBGUTENPRINTUI_TRUE@ -BUILD_MODULES_FALSE = @BUILD_MODULES_FALSE@ -BUILD_MODULES_TRUE = @BUILD_MODULES_TRUE@ -BUILD_SIMPLIFIED_CUPS_PPDS_FALSE = @BUILD_SIMPLIFIED_CUPS_PPDS_FALSE@ -BUILD_SIMPLIFIED_CUPS_PPDS_TRUE = @BUILD_SIMPLIFIED_CUPS_PPDS_TRUE@ -BUILD_TESTPATTERN_FALSE = @BUILD_TESTPATTERN_FALSE@ -BUILD_TESTPATTERN_TRUE = @BUILD_TESTPATTERN_TRUE@ -BUILD_TEST_FALSE = @BUILD_TEST_FALSE@ -BUILD_TEST_TRUE = @BUILD_TEST_TRUE@ -BUILD_TRANSLATED_CUPS_PPDS_FALSE = @BUILD_TRANSLATED_CUPS_PPDS_FALSE@ -BUILD_TRANSLATED_CUPS_PPDS_TRUE = @BUILD_TRANSLATED_CUPS_PPDS_TRUE@ CC = @CC@ CCDEPMODE = @CCDEPMODE@ CFLAGS = @CFLAGS@ @@ -167,8 +126,6 @@ CPPFLAGS = @CPPFLAGS@ CUPS_CFLAGS = @CUPS_CFLAGS@ CUPS_CONFIG = @CUPS_CONFIG@ CUPS_LIBS = @CUPS_LIBS@ -CUPS_PPDS_AT_TOP_LEVEL_FALSE = @CUPS_PPDS_AT_TOP_LEVEL_FALSE@ -CUPS_PPDS_AT_TOP_LEVEL_TRUE = @CUPS_PPDS_AT_TOP_LEVEL_TRUE@ CUPS_PPD_PS_LEVEL = @CUPS_PPD_PS_LEVEL@ CXX = @CXX@ CXXCPP = @CXXCPP@ @@ -249,14 +206,11 @@ GUTENPRINT_VERSION = @GUTENPRINT_VERSION@ IJS_CFLAGS = @IJS_CFLAGS@ IJS_CONFIG = @IJS_CONFIG@ IJS_LIBS = @IJS_LIBS@ +INSTALL = @INSTALL@ INSTALL_DATA = @INSTALL_DATA@ INSTALL_PROGRAM = @INSTALL_PROGRAM@ -INSTALL_SAMPLES_FALSE = @INSTALL_SAMPLES_FALSE@ -INSTALL_SAMPLES_TRUE = @INSTALL_SAMPLES_TRUE@ INSTALL_SCRIPT = @INSTALL_SCRIPT@ INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ -INSTALL_USER_GUIDE_FALSE = @INSTALL_USER_GUIDE_FALSE@ -INSTALL_USER_GUIDE_TRUE = @INSTALL_USER_GUIDE_TRUE@ INTLLIBS = @INTLLIBS@ LDFLAGS = @LDFLAGS@ LEX = @LEX@ @@ -276,9 +230,8 @@ LTLIBINTL = @LTLIBINTL@ LTLIBOBJS = @LTLIBOBJS@ MAINT = @MAINT@ MAINTAINER_CFLAGS = @MAINTAINER_CFLAGS@ -MAINTAINER_MODE_FALSE = @MAINTAINER_MODE_FALSE@ -MAINTAINER_MODE_TRUE = @MAINTAINER_MODE_TRUE@ MAKEINFO = @MAKEINFO@ +MKDIR_P = @MKDIR_P@ MKINSTALLDIRS = @MKINSTALLDIRS@ MSGFMT = @MSGFMT@ MSGMERGE = @MSGMERGE@ @@ -297,27 +250,26 @@ POSUB = @POSUB@ RANLIB = @RANLIB@ RELEASE_DATE = @RELEASE_DATE@ RM = @RM@ +SED = @SED@ SET_MAKE = @SET_MAKE@ SHELL = @SHELL@ STRIP = @STRIP@ +TEST = @TEST@ TEXI2HTML = @TEXI2HTML@ -USE_LEVEL3_PS_FALSE = @USE_LEVEL3_PS_FALSE@ -USE_LEVEL3_PS_TRUE = @USE_LEVEL3_PS_TRUE@ +TRUE = @TRUE@ USE_NLS = @USE_NLS@ -USE_NLS_FALSE = @USE_NLS_FALSE@ -USE_NLS_TRUE = @USE_NLS_TRUE@ VERSION = @VERSION@ WHICH_PPDS = @WHICH_PPDS@ XGETTEXT = @XGETTEXT@ YACC = @YACC@ YFLAGS = @YFLAGS@ +abs_builddir = @abs_builddir@ +abs_srcdir = @abs_srcdir@ +abs_top_builddir = @abs_top_builddir@ +abs_top_srcdir = @abs_top_srcdir@ ac_ct_CC = @ac_ct_CC@ ac_ct_CXX = @ac_ct_CXX@ ac_ct_F77 = @ac_ct_F77@ -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@ -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@ -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@ -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@ am__include = @am__include@ am__leading_dot = @am__leading_dot@ am__quote = @am__quote@ @@ -329,6 +281,7 @@ build_alias = @build_alias@ build_cpu = @build_cpu@ build_os = @build_os@ build_vendor = @build_vendor@ +builddir = @builddir@ cups_bindir = @cups_bindir@ cups_conf_datadir = @cups_conf_datadir@ cups_conf_serverbin = @cups_conf_serverbin@ @@ -374,11 +327,13 @@ program_transform_name = @program_transform_name@ psdir = @psdir@ sbindir = @sbindir@ sharedstatedir = @sharedstatedir@ +srcdir = @srcdir@ sysconfdir = @sysconfdir@ target_alias = @target_alias@ +top_builddir = @top_builddir@ +top_srcdir = @top_srcdir@ AM_CPPFLAGS = -I$(top_srcdir)/include -I$(top_builddir)/include $(LOCAL_CPPFLAGS) $(GNUCFLAGS) LOCAL_CPPFLAGS = -I$(top_srcdir)/src/main $(GUTENPRINT_CFLAGS) -TESTS = curve run-testdither run-weavetest escp2_weavetest_SOURCES = escp2-weavetest.c escp2_weavetest_LDADD = $(GUTENPRINT_LIBS) unprint_SOURCES = unprint.c @@ -441,28 +396,28 @@ clean-noinstPROGRAMS: done bjc-unprint$(EXEEXT): $(bjc_unprint_OBJECTS) $(bjc_unprint_DEPENDENCIES) @rm -f bjc-unprint$(EXEEXT) - $(LINK) $(bjc_unprint_LDFLAGS) $(bjc_unprint_OBJECTS) $(bjc_unprint_LDADD) $(LIBS) + $(LINK) $(bjc_unprint_OBJECTS) $(bjc_unprint_LDADD) $(LIBS) curve$(EXEEXT): $(curve_OBJECTS) $(curve_DEPENDENCIES) @rm -f curve$(EXEEXT) - $(LINK) $(curve_LDFLAGS) $(curve_OBJECTS) $(curve_LDADD) $(LIBS) + $(LINK) $(curve_OBJECTS) $(curve_LDADD) $(LIBS) escp2-weavetest$(EXEEXT): $(escp2_weavetest_OBJECTS) $(escp2_weavetest_DEPENDENCIES) @rm -f escp2-weavetest$(EXEEXT) - $(LINK) $(escp2_weavetest_LDFLAGS) $(escp2_weavetest_OBJECTS) $(escp2_weavetest_LDADD) $(LIBS) + $(LINK) $(escp2_weavetest_OBJECTS) $(escp2_weavetest_LDADD) $(LIBS) pcl-unprint$(EXEEXT): $(pcl_unprint_OBJECTS) $(pcl_unprint_DEPENDENCIES) @rm -f pcl-unprint$(EXEEXT) - $(LINK) $(pcl_unprint_LDFLAGS) $(pcl_unprint_OBJECTS) $(pcl_unprint_LDADD) $(LIBS) + $(LINK) $(pcl_unprint_OBJECTS) $(pcl_unprint_LDADD) $(LIBS) pixma_parse$(EXEEXT): $(pixma_parse_OBJECTS) $(pixma_parse_DEPENDENCIES) @rm -f pixma_parse$(EXEEXT) - $(LINK) $(pixma_parse_LDFLAGS) $(pixma_parse_OBJECTS) $(pixma_parse_LDADD) $(LIBS) + $(LINK) $(pixma_parse_OBJECTS) $(pixma_parse_LDADD) $(LIBS) testdither$(EXEEXT): $(testdither_OBJECTS) $(testdither_DEPENDENCIES) @rm -f testdither$(EXEEXT) - $(LINK) $(testdither_LDFLAGS) $(testdither_OBJECTS) $(testdither_LDADD) $(LIBS) + $(LINK) $(testdither_OBJECTS) $(testdither_LDADD) $(LIBS) unprint$(EXEEXT): $(unprint_OBJECTS) $(unprint_DEPENDENCIES) @rm -f unprint$(EXEEXT) - $(LINK) $(unprint_LDFLAGS) $(unprint_OBJECTS) $(unprint_LDADD) $(LIBS) + $(LINK) $(unprint_OBJECTS) $(unprint_LDADD) $(LIBS) xml-curve$(EXEEXT): $(xml_curve_OBJECTS) $(xml_curve_DEPENDENCIES) @rm -f xml-curve$(EXEEXT) - $(LINK) $(xml_curve_LDFLAGS) $(xml_curve_OBJECTS) $(xml_curve_LDADD) $(LIBS) + $(LINK) $(xml_curve_OBJECTS) $(xml_curve_LDADD) $(LIBS) mostlyclean-compile: -rm -f *.$(OBJEXT) @@ -480,22 +435,22 @@ distclean-compile: @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/xml-curve.Po@am__quote@ .c.o: -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c $< .c.obj: -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` .c.lo: -@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \ -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCC_TRUE@ mv -f $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< @@ -506,10 +461,6 @@ mostlyclean-libtool: clean-libtool: -rm -rf .libs _libs -distclean-libtool: - -rm -f libtool -uninstall-info-am: - ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ @@ -559,9 +510,9 @@ distclean-tags: -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags check-TESTS: $(TESTS) - @failed=0; all=0; xfail=0; xpass=0; skip=0; \ + @failed=0; all=0; xfail=0; xpass=0; skip=0; ws='[ ]'; \ srcdir=$(srcdir); export srcdir; \ - list='$(TESTS)'; \ + list=' $(TESTS) '; \ if test -n "$$list"; then \ for tst in $$list; do \ if test -f ./$$tst; then dir=./; \ @@ -570,7 +521,7 @@ check-TESTS: $(TESTS) if $(TESTS_ENVIRONMENT) $${dir}$$tst; then \ all=`expr $$all + 1`; \ case " $(XFAIL_TESTS) " in \ - *" $$tst "*) \ + *$$ws$$tst$$ws*) \ xpass=`expr $$xpass + 1`; \ failed=`expr $$failed + 1`; \ echo "XPASS: $$tst"; \ @@ -582,7 +533,7 @@ check-TESTS: $(TESTS) elif test $$? -ne 77; then \ all=`expr $$all + 1`; \ case " $(XFAIL_TESTS) " in \ - *" $$tst "*) \ + *$$ws$$tst$$ws*) \ xfail=`expr $$xfail + 1`; \ echo "XFAIL: $$tst"; \ ;; \ @@ -632,23 +583,21 @@ check-TESTS: $(TESTS) else :; fi distdir: $(DISTFILES) - $(mkdir_p) $(distdir)/../scripts - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \ - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \ - list='$(DISTFILES)'; for file in $$list; do \ - case $$file in \ - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \ - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \ - esac; \ + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ + list='$(DISTFILES)'; \ + dist_files=`for file in $$list; do echo $$file; done | \ + sed -e "s|^$$srcdirstrip/||;t" \ + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ + case $$dist_files in \ + */*) $(MKDIR_P) `echo "$$dist_files" | \ + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ + sort -u` ;; \ + esac; \ + for file in $$dist_files; do \ if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \ - if test "$$dir" != "$$file" && test "$$dir" != "."; then \ - dir="/$$dir"; \ - $(mkdir_p) "$(distdir)$$dir"; \ - else \ - dir=''; \ - fi; \ if test -d $$d/$$file; then \ + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \ fi; \ @@ -699,7 +648,7 @@ distclean: distclean-am -rm -rf ./$(DEPDIR) -rm -f Makefile distclean-am: clean-am distclean-compile distclean-generic \ - distclean-libtool distclean-tags + distclean-tags dvi: dvi-am @@ -713,12 +662,20 @@ info-am: install-data-am: +install-dvi: install-dvi-am + install-exec-am: +install-html: install-html-am + install-info: install-info-am install-man: +install-pdf: install-pdf-am + +install-ps: install-ps-am + installcheck-am: maintainer-clean: maintainer-clean-am @@ -739,19 +696,23 @@ ps: ps-am ps-am: -uninstall-am: uninstall-info-am +uninstall-am: + +.MAKE: install-am install-strip .PHONY: CTAGS GTAGS all all-am check check-TESTS check-am clean \ clean-generic clean-libtool clean-noinstPROGRAMS ctags \ distclean distclean-compile distclean-generic \ distclean-libtool distclean-tags distdir dvi dvi-am html \ html-am info info-am install install-am install-data \ - install-data-am install-exec install-exec-am install-info \ - install-info-am install-man install-strip installcheck \ + install-data-am install-dvi install-dvi-am install-exec \ + install-exec-am install-html install-html-am install-info \ + install-info-am install-man install-pdf install-pdf-am \ + install-ps install-ps-am install-strip installcheck \ installcheck-am installdirs maintainer-clean \ maintainer-clean-generic mostlyclean mostlyclean-compile \ mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ - tags uninstall uninstall-am uninstall-info-am + tags uninstall uninstall-am @SET_MAKE@ diff --git a/test/pixma_parse.c b/test/pixma_parse.c index b32cec0..702cb84 100644 --- a/test/pixma_parse.c +++ b/test/pixma_parse.c @@ -124,7 +124,7 @@ static int eight2ten(unsigned char* inbuffer,unsigned char* outbuffer,int num_by /* reads a run length encoded block of raster data, decodes and uncompresses it */ -static int Raster(image_t* img,unsigned char* buffer,unsigned int len,unsigned char color_name){ +static int Raster(image_t* img,unsigned char* buffer,unsigned int len,unsigned char color_name,unsigned int maxw){ color_t* color=get_color(img,color_name); char* buf = (char*)buffer; int size=0; /* size of unpacked buffer */ @@ -163,8 +163,12 @@ static int Raster(image_t* img,unsigned char* buffer,unsigned int len,unsigned c } } /* adjust the maximum image width */ - if(color && img->width < size*8/color->bpp) - img->width = size *8/color->bpp; + if(color && img->width < size*8/color->bpp){ + unsigned int newwidth = size * 8 / color->bpp; + if(maxw && newwidth > maxw) + newwidth = maxw; + img->width = newwidth; + } /* reset output buffer */ size=0; dst=dstr; @@ -339,7 +343,7 @@ static unsigned int read_uint32(unsigned char* a){ /* process a printjob command by command */ -static int process(FILE* in, FILE* out,int verbose,unsigned int maxh){ +static int process(FILE* in, FILE* out,int verbose,unsigned int maxw,unsigned int maxh){ image_t* img=calloc(1,sizeof(image_t)); unsigned char* buf=malloc(0xFFFF); int returnv=0; @@ -509,7 +513,7 @@ static int process(FILE* in, FILE* out,int verbose,unsigned int maxh){ case 'F': if(verbose) printf("ESC (F raster block (len=%i):\n",cnt); - if((returnv = Raster(img,buf,cnt,img->color_order[img->cur_color]))) + if((returnv = Raster(img,buf,cnt,img->color_order[img->cur_color],maxw))) break; ++img->cur_color; if(img->cur_color >= img->num_colors){ @@ -534,7 +538,7 @@ static int process(FILE* in, FILE* out,int verbose,unsigned int maxh){ * the selected color is stored in the first byte */ buf[cnt]=0x80; - returnv = Raster(img,buf+1,cnt,buf[0]); + returnv = Raster(img,buf+1,cnt,buf[0],maxw); if (fgetc(in)!=0x0d){ printf("Raster A not terminated by 0x0d\n"); returnv=-4; @@ -602,6 +606,7 @@ static void display_usage(void){ printf("outfile: if specified a ppm file will be generated from the raster data\n"); printf("options:\n"); printf(" -v: verbose print ESC e),F) and A) commands\n"); + printf(" -x width: cut the output ppm to the given width\n"); printf(" -y height: cut the output ppm to the given height\n"); printf(" -h: display this help\n"); } @@ -611,6 +616,7 @@ static void display_usage(void){ int main(int argc,char* argv[]){ int verbose = 0; unsigned int maxh=0; + unsigned int maxw=0; char* filename_in=NULL,*filename_out=NULL; FILE *in,*out=NULL; int i; @@ -632,6 +638,14 @@ int main(int argc,char* argv[]){ display_usage(); return 1; } + }else if(argv[i][1] == 'x'){ + if(argc > i+1){ + ++i; + maxw = atoi(argv[i]); + }else{ + display_usage(); + return 1; + } }else { printf("unknown parameter %s\n",argv[i]); return 1; @@ -664,7 +678,7 @@ int main(int argc,char* argv[]){ } /* process the printjob */ - process(in,out,verbose,maxh); + process(in,out,verbose,maxw,maxh); /* cleanup */ fclose(in); diff --git a/test/run-testdither b/test/run-testdither index 9f592c2..eb24b6c 100755 --- a/test/run-testdither +++ b/test/run-testdither @@ -35,8 +35,8 @@ set_args() { set_args `getopt hgvqncV "$@"` case "$valcount" in - 1) valopts="$valopts -q --num-callers=100 --leak-check=yes";; - 2) valopts="$valopts --num-callers=100 --show-reachable=yes --leak-resolution=high --leak-check=yes" ;; + 1) valopts="$valopts -q --num-callers=100 --error-limit=no --leak-check=yes";; + 2) valopts="$valopts --num-callers=100 --error-limit=no --leak-resolution=high --leak-check=yes" ;; 3) valopts="$valopts --error-limit=no --num-callers=100 --show-reachable=yes --leak-resolution=high --leak-check=yes" ;; *) ;; esac |