1. 27 Sep, 2019 1 commit
  2. 05 Dec, 2018 1 commit
  3. 14 Mar, 2016 1 commit
  4. 10 Mar, 2016 1 commit
  5. 09 Mar, 2016 2 commits
  6. 25 Feb, 2016 2 commits
  7. 05 Nov, 2015 1 commit
    • Murray Cumming's avatar
      LayoutItem_Field::is_same_field(): Correct regression. · d92ab8f8
      Murray Cumming authored
      Make sure we call UsesRelationship::operator==() instead of
      the class's own operator==(). This regression was caused by my use
      of auto when the actual type mattered.
      
      Added a test for this: test_compare_same_named_instances_unrelated_difference().
      d92ab8f8
  8. 20 Oct, 2015 1 commit
  9. 01 Sep, 2015 2 commits
    • Murray Cumming's avatar
      PostgreSelf: Remove the version number parsing methods. · 24af4acf
      Murray Cumming authored
      Because they are not used.
      (In the previous commit I ported these from Glib::Regex to std::regex
      just as a way to learn about the std::regex API and to make sure that I
      can bring back working code if I need this again.)
      24af4acf
    • Murray Cumming's avatar
      C++11: Replace Glib::Regex with std::regex. · b9879fc9
      Murray Cumming authored
      Annoyingly:
      * the std::regex API can't just give us a vector of
      matches.
      * It lets us iterate through the matches, but not with a
      range-based for loop.
      * We have to iterate over sub-matches. I guess it could be useful
      to know what top-level strings are being used.
      * Iterating doesn't work normally because the first (0) sub match
      is really the full parent match.
      b9879fc9
  10. 30 Jun, 2015 1 commit
  11. 16 Jan, 2015 1 commit
  12. 25 Apr, 2014 1 commit
  13. 19 Dec, 2013 2 commits
  14. 16 Dec, 2013 1 commit
  15. 29 Nov, 2013 1 commit
  16. 14 Nov, 2013 1 commit
    • Murray Cumming's avatar
      Add a test for correct default field values. · 93f654f5
      Murray Cumming authored
      * examples/example_smallbusiness.glom: Add a string default
        value, so we can test it. There are already some numeric
        default values.
      * Makefile_tests.am:
      * tests/test_selfhosting_new_from_example_defaultvalues.cc:
        Check some default values.
      93f654f5
  17. 22 Oct, 2013 1 commit
  18. 11 Sep, 2013 1 commit
    • Murray Cumming's avatar
      Use the regular AX_BOOST_PYTHON configure.ac macro. · 75c2f220
      Murray Cumming authored
      	* macros/ax_boost_python_murrayc.m4: Remove this heavily changed
      	version of AX_BOOST_PYTHON because it is hard to use this while getting
      	improvements to the official one.
      	* macros/mm-python.m4: Remove this, which we used in
      	AX_BOOST_PYTHON_MURRAYC.
      	* macros/: Add the latest versions of ax_python_devel.m4,
      	ax_boost_base.m4 and ax_boost_python.m4.
      	* configure.ac: Use the official macros.
      	* Makefile_libglom.am: Create some variables to build the
      	flags and concatenate them together for simple use, and use them.
      	* Makefile_tests.am: Use the variables here too.
      
      Hopefully this does not cause any regressions. It should make it
      easier to use python 3.
      75c2f220
  19. 26 Apr, 2013 1 commit
  20. 06 Jan, 2013 1 commit
    • Murray Cumming's avatar
      tests: Add: test_selfhosting_new_from_example_float.cc · 3b5a6393
      Murray Cumming authored
              * Makefile_tests.am:
              * tests/test_selfhosting_utils.[h|cc]:
      Add test_check_numeric_value_type().
              * tests/test_selfhosting_new_from_example_float.cc: Add
      this simple test that gets a float value, to check that
      we do not lose precision. It seems to fail with MySQL.
      It also seems to cause a crash or hang with PostgreSQL
      during cleanup.
      3b5a6393
  21. 23 Nov, 2012 1 commit
  22. 22 Nov, 2012 2 commits
    • Murray Cumming's avatar
      Tests: Use the locally-built glom. · 477edde0
      Murray Cumming authored
      * configure.ac:
              * Makefile_tests.am:
      * tests/tests_glom_date_in_locales.sh.in:
      Generate tests/tests_glom_date_in_locales.sh from
      tests/tests_glom_date_in_locales.sh.in, so it can
      include the path to the locally-built glom
      executable.
      477edde0
    • Murray Cumming's avatar
      Tests: Use the locally-built python module. · 7be1c466
      Murray Cumming authored
              * Makefile_tests.am: Set the PYTHONPATH in
      automake's TESTS_ENVIRONMENT variable
      to fix make check before make install has run,
      and generally to be a correct check.
      7be1c466
  23. 11 Nov, 2012 2 commits
    • Murray Cumming's avatar
      Tests: Add pixbuf-loading tests in more places. · 0f963c3c
      Murray Cumming authored
              * tests/test_document_load_image.cc:
              * Makefile_tests.am:
              * tests/test_utils_images.[h|cc]: Move the use of GdkPixbufLoader
      into a check_value_is_an_image() utility function.
              * tests/test_field_file_format.cc:
              * tests/test_selfhosting_new_then_image.cc: Use it here too.
      0f963c3c
    • Murray Cumming's avatar
      examples: Add a static image item to the Project Manager example. · 0a9fccb4
      Murray Cumming authored
              * examples/example_project_manager.glom: This is just so we
      use this layout item somewhere, so we can test it.
              * glom/glom_document.dtd: Mention the layout_item_image tag.
      * configure.ac:
      * Makefile_tests.am:
      * tests/test_document_load_image.cc: Add a new test for this
      feature, using GdkPixbufLoader to check that we can interpret
      the data as an image.
      0a9fccb4
  24. 02 Nov, 2012 2 commits
    • Murray Cumming's avatar
      Move a test out the ui tests. · 9132f7dc
      Murray Cumming authored
      * Because it uses the glom executable, which needs an
      X display, even when parsing the command line parameters.
      I blame GtkApplication.
      9132f7dc
    • Murray Cumming's avatar
      Add --enable-ui-tests. · cf1f50cf
      Murray Cumming authored
      * configure.ac, Makefile_tests.am:
      Allow the tests that actually instantiate windows to
      be disabled, for running under headless continuous
      integration systems.
      cf1f50cf
  25. 03 Feb, 2012 2 commits
    • Murray Cumming's avatar
      Button scripts: Check and warn about pygtk2 instead of crashing. · 6b5f2993
      Murray Cumming authored
      * glom/libglom/utils.[h|cc]: Add script_check_for_pygtk().
      * Makefile_tests.am:
      * tests/test_script_check_for_problems.cc: Add a test for the check
      function.
      * glom/mode_data/box_data.cc: execute_button_script(): Show a
      warning dialog, and do not run the script, if it seems to use pygtk.
      This should help with but #669196 (alien) and ##661766 (Andre Klapper) .
      6b5f2993
    • Murray Cumming's avatar
      Reports: Make summary fields work again. · f0c2ed90
      Murray Cumming authored
      * glom/libglom/report_builder.cc: report_build_summary():
      Remove any sort clause (ORDER BY) from the FoundSet because that makes
      no sense for a single row with summary fields. It looks like recent versions
      of PostgreSQL have become more strict about this, producing this error, for
      instance:
      column invoices.invoice_id must appear in the GROUP BY clause or be used in an aggregate function
      * Makefile_tests.am:
      * tests/test_selfhosting_new_then_report_summary.cc: Add a test for this.
      This fixes bug #669281 (alien)
      f0c2ed90
  26. 01 Feb, 2012 2 commits
    • Murray Cumming's avatar
      Add test_selfhosting_new_empty_then_users · 68ad8059
      Murray Cumming authored
      * glom/mode_design/users/dialog_groups_list.cc: on_button_group_new():
      Move the group creation code to:
      * glom/libglom/db_utils.[h|cc]:
      
      * glom/libglom/privs.[h|cc]: set_table_privileges():
      Return a bool to report failures.
      * Makefile_tests.am:
      * tests/test_selfhosting_new_empty_then_users.cc: Add this test to
      test simple creation of a group and a user.
      68ad8059
    • Murray Cumming's avatar
      Add test_selfhosting_new_from_example_operator. · 9c67be8d
      Murray Cumming authored
      * glom/base_db.[h|cc]: Move add_user() to
      * glom/libglom/db_utils.[h|cc]:
      * glom/frame_glom.cc:
      * glom/mode_design/users/dialog_users_list.cc: Adapted.
      
      * glom/libglom/connectionpool.cc: invalidate_connection():
      Also clear m_pFieldTypes to make sure that we refill it when making
      a new connection.
      
      * glom/libglom/data_structure/fieldtypes.[h|cc]: Add get_types_count().
      * tests/test_selfhosting_utils.[h|cc]: Add test_selfhost() to
      start an already-existing .glom system.
      * Makefile_tests.am:
      * tests/test_selfhosting_new_from_example_operator.cc:
      Add this new test which attempts to re-open a .glom system as
      a non-developer user. This currently fails to get the list of
      tables from the database. I must investigate that.
      9c67be8d
  27. 30 Jan, 2012 2 commits
  28. 27 Jan, 2012 1 commit
    • Murray Cumming's avatar
      Test creation from examples in non-English locales. · a83bd818
      Murray Cumming authored
      * Makefile_tests.am:
      * tests/test_selfhosting_new_from_example_in_locales.sh:
      Run the test_selfhosting_new_from_example example in various
      locales, to make sure that the libgda problem (see bug #668346),
      or something like it, does not come back.
      * tests/test_selfhosting_new_from_example.cc: Call setlocale().
      a83bd818
  29. 09 Jan, 2012 1 commit
    • Murray Cumming's avatar
      Translations: Offer non-country-specific language locales too. · fbefdf71
      Murray Cumming authored
      * Makefile_tests.am:
      * glom/libglom/utils.cc: locale_language_id(): Parse language-only
      locale IDs too.
      * glom/mode_design/iso_codes.cc: get_locale_name(): Create non-country
      locale IDs too, though they are not in the iso-codes XML file.
      * glom/mode_design/translation/window_translations.cc: Show, for instance
      German (de) as well as the existing German (Germany), German (Austria),
      etc.
      fbefdf71
  30. 07 Jan, 2012 1 commit
    • Murray Cumming's avatar
      Move po file (gettext) import and export into libglom and test it. · ffd6bd9a
      Murray Cumming authored
      * glom/mode_design/translation/window_translations.[h|cc]:
      load_from_document(), save_to_document(): Move the collecting of
      translatable items to:
      * glom/libglom/document/document.[h|cc]: get_translatable_items();
      Also move the gettext/po import/export to:
      * Makefile_libglom.am:
      * glom/libglom/filelist.am:
      * glom/libglom/translations_po.[h|cc]: write_translations_to_po_file()
      and import_translations_from_po_file().
      
      * Makefile_tests.am
      * tests/translations_po/data/test.po:
      * tests/translations_po/test_document_export_po.cc:
      * tests/translations_po/test_document_import_po.cc: Add tests of the new
      libglom functions.
      
      * Makefile_glom.am
      * glom/glom_export_po.cc: Added a new command-line tool that uses the
      new libglom API.
      ffd6bd9a