summaryrefslogtreecommitdiff
path: root/tests/meson.build
Commit message (Collapse)AuthorAgeFilesLines
* tests: Add tests for PangoTabArrayMatthias Clasen2021-06-281-0/+1
|
* tests: Add tests for PangoMatrixMatthias Clasen2021-06-281-0/+1
|
* tests: Add tests for PangoLanguageMatthias Clasen2021-06-281-1/+2
|
* tests: Add some PangoContext testsMatthias Clasen2021-06-281-0/+1
| | | | These improve converage for misc PangoContext apis.
* tests: Improve markup test coverageMatthias Clasen2021-06-281-0/+37
| | | | Cover many more error cases.
* markup tests: Add tests for parsing accelsmarkup-parse-fixesMatthias Clasen2021-03-021-0/+3
| | | | | Add tests that test some of the corner cases handled in the previous commit.
* tests: Add tests for pango_font_describefix-font-roundtripMatthias Clasen2021-01-241-0/+2
| | | | | | | | | Test that round-tripping through pango_font_describe works. This is currently broken for scalable bitmap fonts, such as color Emoji fonts. We skip the test on OS X where we are most likely missing the fonts.
* tests: Don't add four.break twicefour-but-only-onceMatthias Clasen2020-10-021-1/+0
| | | | | | | As pointed out by Werner Lemberg, we were adding four.break twice if libthai is used. Fixes: #508
* build: Remove deprecated python3 Meson module useEmmanuele Bassi2020-09-301-3/+2
| | | | | | | | | | | | We are using the deprecated python3 module for historical reasons. We used to support both Python 2 and Python 3 in the Autotools build, but since we switched to Meson we *know* we have Python 3 available. This allows us to use a shebang line in the Python scripts we use in the build, instead of invoking them through the Python interpreter in a custom target; Meson knows how to handle shebangs portably as well. This change removes the only deprecation warning coming from Meson when configuring the Pango build.
* Make dependencies to libthai, cairo and xft optional.Niklas Guertler2020-09-091-5/+5
| | | | Added meson features for disabling the dependencies libthai, cairo and xft such that they won't be used even if present on the system. Changed meson dependencies for some tests accordingly.
* Add a test for a crash in shape_tabMatthias Clasen2020-06-091-0/+1
| | | | This verifies the fix in the previous commit.
* tests: Use idiomatic Meson and GTest optionsEmmanuele Bassi2020-04-141-6/+10
| | | | | | - Switch to an environment() object, to allow for proper escaping - Use the TAP protocol with GTest - Put all tests under the Pango suite
* tests: Add missing data filesMatthias Clasen2019-10-311-0/+7
|
* Skip thai break tests without libthaiMatthias Clasen2019-09-041-1/+4
| | | | | | If we don't have libthai, these tests fail. Closes: https://gitlab.gnome.org/GNOME/pango/issues/420
* tests: add test-break test case for Thai languagePeng Wu2019-08-221-0/+1
| | | | | | | Thai language requires word dictionary from libthai project for word/sentence breaks. Adding this test case to check the results of sentence breaks.
* Revert "tests: add missing LineBreakTest.txt"Peng Wu2019-08-221-1/+0
| | | | This reverts commit 086183f9df9fd8fcfdf83a3801710fdcb2e8316a.
* Merge branch 'ellipsize-height' into 'master'Matthias Clasen2019-08-071-0/+1
|\ | | | | | | | | | | | | Pass the right attributes when shaping ellipses Closes #397 See merge request GNOME/pango!127
| * Pass the right attributes when shaping ellipsesMatthias Clasen2019-08-061-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that we are splitting attributes into those that are relevant for itemization and shaping, we need to make sure to pass the right ones along when ellipsizing, or we risk picking a wildly mismatching font for the ellipsis run, causing things to shift vertically. Test included. Closes: https://gitlab.gnome.org/GNOME/pango/issues/397 Thanks to Jorge Luis Martinez Gomez for his help in tracking this down.
* | tests: add missing LineBreakTest.txtRoss Burton2019-08-051-0/+1
|/ | | | | | | | Without this file one of the tests is always skipped: /text/break/line: /usr/libexec/installed-tests/pango/LineBreakTest.txt not found. Skipping test. Taken from the Unicode 12.0.0 release.
* Add a very basic harfbuzz testMatthias Clasen2019-07-181-0/+1
| | | | | For now, just check that we get a non-NULL hb_font_t that has a space glyph.
* Add a shape testMatthias Clasen2019-07-171-0/+1
| | | | | | | This is similar in spirit to hb-shape. Take an input and produce a sequence of glyphs as output. There are no testcases yet.
* Add some tests for coverageMatthias Clasen2019-07-121-0/+1
|
* tests: Link against libpangocairoMatthias Clasen2019-07-091-2/+2
| | | | Some tests were not having the right dependencies.
* install itemize test dataMatthias Clasen2019-07-091-0/+11
|
* install break test dataMatthias Clasen2019-07-091-0/+13
|
* Add an itemize testMatthias Clasen2019-07-091-0/+1
| | | | | | | | This is similar to test-break in that it produces useful output for understanding itemization. Non testcases for now. One issue is that this, like so many other tests is font-dependent.
* Make the break test actually test thingsMatthias Clasen2019-07-071-1/+1
| | | | | We were not diffing the output against the expected results.
* Add a test for log attrsMatthias Clasen2019-07-071-0/+1
| | | | This is useful for exploring line breaking.
* Make installed tests optionalMatthias Clasen2019-07-061-6/+8
| | | | Closes: https://gitlab.gnome.org/GNOME/pango/issues/354
* Merge branch 'testfiles' into 'master'Matthias Clasen2019-07-031-0/+4
|\ | | | | | | | | Include more Unicode 11 test cases See merge request GNOME/pango!33
| * Include more Unicode 11 test casesPeng Wu2019-03-041-0/+4
| | | | | | | | | | Add more Unicode 11 test cases files: WordBreakTest.txt and SentenceBreakTest.txt.
* | markup-parse: don't duplicate codeRoss Burton2019-03-251-1/+1
| | | | | | | | Use the functions in test-common.c instead of replicating them.
* | tests: fix build dependencyMarco Felsch2019-03-131-1/+6
|/ | | | | | | In case of cairo is found but without png support this test will fail during linking becuase the 'cairo_surface_write_to_png' is undefined. Signed-off-by: Marco Felsch <m.felsch@pengutronix.de>
* meson: Check for HarfBuzz and FontConfig for PangoFT2Chun-wei Fan2018-03-301-1/+1
| | | | | | | | | | | | | | | | | | | | | It is possible that we can have the following situations, at least on Windows: -FreeType present, FontConfig missing -Cairo-FT present, with no FontConfig support. As gen-script-for-lang requires FontConfig, and PangoFT2 depends on HarfBuzz, FontConfig and Freetype, we need to check for them before we build PangoFT2, and so that we could include PangoFT2 support in PangoCairo. The tests and pango-view have an optional dependency on PangoFT2, so we need to also check whether we built PangoFT2 before we try to build things related to PangoFT2. For the tools, since gen-script-for-lang.c depends on FontConfig, check for it as well before we build it. https://bugzilla.gnome.org/show_bug.cgi?id=783274
* meson: Install tests and additional dataEmmanuele Bassi2017-05-191-1/+73
|
* meson: Add a few missing things, minor fixes, TODONirbheek Chauhan2017-05-191-6/+6
|
* build: Add Meson build systemEmmanuele Bassi2017-05-191-0/+57
Meson is a meta build system that is: - fast - simpler to understand and use - portable to multiple platforms through different backends - well integrated with the GNOME platform - well maintained Using Meson allows us to build Pango much more quickly, and on all the platforms we currently target, without any loss of functionality, compared to Autotools. Some timing comparisons with hot ccache for both build systems: * autogen.sh: * meson real 0m11.149s real 0m2.525s user 0m8.153s user 0m1.609s sys 0m2.363s sys 0m1.206s * make -j$(($(nproc) + 2)) * ninja real 0m9.186s real 0m3.387s user 0m16.295s user 0m6.887s sys 0m5.337s sys 0m1.318s -------------------------------------------------------------- * autotools * meson + ninja real 0m27.669s real 0m5.772s user 0m45.622s user 0m8.465s sys 0m10.698s sys 0m2.357s System: Intel Core i7-7500U, SSD, 16GB of RAM