El dom, 22-03-2009 a las 00:27 +0900, Kouhei Sutou escribió: > Hi, Hi Kou,
> I've updated GLib bindings tests. > This is the third try :-) yes, sorry, I had forgotten it. > http://github.com/kou/poppler-test/tree/master > > It requires Cutter 1.0.6: > http://cutter.sourceforge.net/ GLib has its own test framework since 2.16. I don't know it, and I don't know cutter either, what do you think about using the GLib test framework instead? cutter depends on glib, are they compatible somehow? I'm just asking, I don't have any problem with using cutter. > Here is a instruction to try the tests: > % wget http://downloads.sourceforge.net/cutter/cutter-1.0.6.tar.gz > % tar xvfz cutter-1.0.6.tar.gz > % cd cutter-1.0.6 > % ./configure > % make > % sudo make install > % cd - > % git clone git://github.com/kou/poppler-test.git > % cd poppler-test > % ./autogen.sh # You may need to add '-I /usr/local/share/aclocal' > # to ACLOCAL_AMFLAGS in Makefile.am to find cutter.m4. > % ./configure # Confirm "checking for CUTTER... yes". > % make > % make check -s > > The following functions are newly tested: > > * poppler_layers_iter_new() > * poppler_layers_iter_next() > * poppler_layers_iter_free() > * poppler_layer_get_title() > * poppler_layer_is_visibility() > * poppler_document_has_attachments() > * poppler_document_get_attachments() > * PopplerAttachment's fields (name, description and so on) > * poppler_attachment_save() > > The tests covers all functions in glib/test-poppler-glib.cc > except nested layer case. Is there a sample nested layer > PDF? Yes, here is one: http://people.freedesktop.org/~carlosgc/NestedLayers.pdf > > P.S. I hope that GLib bindings get official auto-tests. Thank you very much Kou. > > Thanks, > -- > kou > > > In <[email protected]> > "Re: [poppler] unit test for GLib bindings" on Wed, 15 Oct 2008 22:33:18 > +0900 (JST), > Kouhei Sutou <[email protected]> wrote: > > > Hi, > > > > I've moved a git repository of Poppler's GLib bindings tests > > to GitHub: > > http://github.com/kou/poppler-test/tree/master > > > > And it requires Cutter 1.0.5: > > % wget > > http://nchc.dl.sourceforge.net/sourceforge/cutter/cutter-1.0.5.tar.gz > > % tar xvfz cutter-1.0.5.tar.gz > > % cd cutter-1.0.5 > > % ./configure > > % make > > % sudo make install > > % cd - > > % git clone git://github.com/kou/poppler-test.git > > % cd poppler-test > > % ./autogen.sh # You may need to add '-I /usr/local/share/aclocal' > > # to ACLOCAL_AMFLAGS in Makefile.am to find cutter.m4. > > % ./configure # Confirm "checking for CUTTER... yes". > > % make > > % make check -s > > > > The tests covers functions that are used in > > test-poppler-glib.cc and all functions of > > poppler-form-field.h. A test for > > poppler_page_render_to_pixbuf() shows diff between expected > > image and actual image if they are not equal. > > > > Image diff sample: > > expected: http://cutter.sourceforge.net/reference/dark-circle.png > > actual: http://cutter.sourceforge.net/reference/nested-circle.png > > diff: > > http://cutter.sourceforge.net/reference/diff-dark-and-nested-circle.png > > > > There are tests for the following functions in glib/test/: > > * glib/test/test-document.c: > > * poppler_document_new_from_file() > > * poopler_document_new_from_data() > > * poppler_document_save() > > * poppler_document_save_a_copy() > > * PopplerDocument's properties (title, format, and so on) > > * poppler_font_info_new() > > * poppler_font_info_scan() > > * poppler_fonts_iter_get_name() > > * poppler_index_item_new() > > * poppler_index_iter_get_action() > > * poppler_index_iter_get_child() > > * poppler_index_iter_next() > > * glib/test/test-form-field.c (all of poppler-form-field.h): > > * poppler_form_field_get_filed_type() > > * poppler_form_field_get_id() > > * poppler_form_field_get_font_size() > > * poppler_form_field_is_read_only() > > * poppler_form_field_button_get_button_type() > > * poppler_form_field_button_get_state() > > * poppler_form_field_button_set_state() > > * poppler_form_field_text_get_text_type() > > * poppler_form_field_text_get_text() > > * poppler_form_field_text_set_text() > > * poppler_form_field_text_get_max_len() > > * poppler_form_field_text_do_spell_check() > > * poppler_form_field_text_do_scroll() > > * poppler_form_field_text_is_rich_text() > > * poppler_form_field_text_is_password() > > * poppler_form_field_choice_get_choice_type() > > * poppler_form_field_choice_is_editable() > > * poppler_form_field_choice_can_select_multiple() > > * poppler_form_field_choice_do_spell_check() > > * poppler_form_field_choice_commit_on_change() > > * poppler_form_field_choice_get_n_items() > > * poppler_form_field_choice_get_item() > > * poppler_form_field_choice_is_item_selected() > > * poppler_form_field_choice_select_item() > > * poppler_form_field_choice_unselect_all() > > * poppler_form_field_choice_toggle_item() > > * poppler_form_field_choice_get_text() > > * poppler_form_field_choice_set_text() > > * glib/test/test-page.c: > > * poppler_document_get_page() > > * poppler_page_get_size() > > * poppler_page_get_index() > > * poppler_page_get_text() > > * poppler_page_get_form_field_mapping() > > * poppler_page_get_transition() > > * PopplerPageTransition's all fields. > > * poppler_page_render_to_pixbuf() with image diff. > > > > > > Thanks, > > -- > > kou > > > > In <[email protected]> > > "[poppler] unit test for GLib bindings" on Fri, 12 Sep 2008 22:49:16 > > +0900 (JST), > > Kouhei Sutou <[email protected]> wrote: > > > >> Hi, > >> > >> I started to write unit test for GLib bindings by Cutter(*): > >> > >> % wget > >> http://nchc.dl.sourceforge.net/sourceforge/cutter/cutter-1.0.4.tar.gz > >> % tar xvfz cutter-1.0.4.tar.gz > >> % cd cutter-1.0.4 > >> % ./configure > >> % make > >> % sudo make install > >> % cd - > >> % git clone http://pub.cozmixng.org/~kou/repos/poppler poppler-test > >> % cd poppler-test > >> % ./autogen.sh # You may need to add '-I /usr/local/share/aclocal' > >> # to ACLOCAL_AMFLAGS in Makefile.am to find cutter.m4. > >> % ./configure # Confirm "checking for CUTTER... yes". > >> % make > >> % make check -s > >> > >> glib/test/test-*.c are unit test sources. > >> > >> > >> (*) http://cutter.sourceforge.net/ > >> > >> Cutter is a xUnit family unit testing framework for C. It's > >> the most advantage of using Cutter that you can continue to > >> write tests. Because you can write tests easily with Cutter. > >> > >> > >> Thanks, > >> -- > >> kou > >> _______________________________________________ > >> poppler mailing list > >> [email protected] > >> http://lists.freedesktop.org/mailman/listinfo/poppler > > _______________________________________________ > > poppler mailing list > > [email protected] > > http://lists.freedesktop.org/mailman/listinfo/poppler > _______________________________________________ > poppler mailing list > [email protected] > http://lists.freedesktop.org/mailman/listinfo/poppler -- Carlos Garcia Campos [email protected] [email protected] http://carlosgc.linups.org PGP key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x523E6462
signature.asc
Description: Esta parte del mensaje está firmada digitalmente
_______________________________________________ poppler mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/poppler
