惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
DataBreaches.Net
V
Visual Studio Blog
WordPress大学
WordPress大学
Google DeepMind News
Google DeepMind News
K
Kaspersky official blog
博客园 - 叶小钗
月光博客
月光博客
S
Schneier on Security
T
Threat Research - Cisco Blogs
C
CERT Recently Published Vulnerability Notes
量子位
博客园 - 三生石上(FineUI控件)
宝玉的分享
宝玉的分享
P
Privacy & Cybersecurity Law Blog
Cyberwarzone
Cyberwarzone
S
Securelist
Hugging Face - Blog
Hugging Face - Blog
B
Blog
C
Cyber Attacks, Cyber Crime and Cyber Security
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
V
Vulnerabilities – Threatpost
大猫的无限游戏
大猫的无限游戏
Google DeepMind News
Google DeepMind News
V
V2EX
MongoDB | Blog
MongoDB | Blog
博客园_首页
Recorded Future
Recorded Future
酷 壳 – CoolShell
酷 壳 – CoolShell
F
Fortinet All Blogs
GbyAI
GbyAI
Microsoft Security Blog
Microsoft Security Blog
C
Cybersecurity and Infrastructure Security Agency CISA
T
Troy Hunt's Blog
罗磊的独立博客
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
T
The Blog of Author Tim Ferriss
Application and Cybersecurity Blog
Application and Cybersecurity Blog
P
Proofpoint News Feed
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
T
Tor Project blog
Microsoft Azure Blog
Microsoft Azure Blog
爱范儿
爱范儿
O
OpenAI News
有赞技术团队
有赞技术团队
Blog — PlanetScale
Blog — PlanetScale
N
News | PayPal Newsroom
G
GRAHAM CLULEY
H
Hacker News: Front Page
Hacker News - Newest:
Hacker News - Newest: "LLM"

PBS activity

Make capypdf a submodule (7f9465b6) · Commits · Inkscape / inkscape · GitLab Draft: Make capypdf a submodule to enable it in the PPA (!7987) · Merge requests · Inkscape / inkscape · GitLab a7a272aeb209d29b500adb09d575af1d89645ffe to f9f9d913e36b14250122d9bc43911b5bb84e958c · PBS / Inkscape · GitLab Make capypdf a submodule (12ee5f11) · Commits · Inkscape / inkscape · GitLab Commits · launchpad-staging · Inkscape / inkscape · GitLab Commits · unmeson · PBS / Inkscape · GitLab Objects can't be moved using arrows keys (#6226) · Issues · Inkscape / inkscape · GitLab Down, left, right arrow keys don't work to move objects (#13628) · Issues · Inkscape / Inbox · GitLab Down, left, right arrow keys don't work to move objects (#13628) · Issues · Inkscape / Inbox · GitLab Draft: Expand tests for boolean operations on paths (!7980) · Merge requests · Inkscape / inkscape · GitLab 1.5-dev: cannot create/open documents after closing window on macOS (#5981) · Issues · Inkscape / inkscape · GitLab Use new Modifiers system for the arc tool (!7961) · Merge requests · Inkscape / inkscape · GitLab Remove dependency on deprecated appdirs module (!730) · Merge requests · Inkscape / extensions · GitLab Commits · appdirs · PBS / extensions · GitLab 1.5-dev: Unable to open the Extension Manager (#6202) · Issues · Inkscape / inkscape · GitLab PBS pushed to project branch capypdf-static at PBS / Inkscape PBS pushed to project branch capypdf-static at PBS / Inkscape Make internal capypdf static (!7947) · Merge requests · Inkscape / inkscape · GitLab Shape builder tool does not detect the interior region (#4477) · Issues · Inkscape / inkscape · GitLab Make (most) tests build and run on Windows (!7940) · Merge requests · Inkscape / inkscape · GitLab Generate AppImage with quick-sharun (a465f4ce) · Commits · PBS / Inkscape · GitLab Commits · sharun · PBS / Inkscape · GitLab 1.5-dev: Split mode state is incorrect in the menu when opening a new document (#6135) · Issues · Inkscape / inkscape · GitLab PBS deleted project branch deadlock-win at PBS / Inkscape 1.5-dev: (Windows) Deadlock on quit, process not exiting sometimes (#6003) · Issues · Inkscape / inkscape · GitLab Fix dark mode on gtk 4.20 (!7932) · Merge requests · Inkscape / inkscape · GitLab Fix some resizing issues on Windows by not setting GTK_CSD (!7931) · Merge requests · Inkscape / inkscape · GitLab Draft: Fix AppImage crashing during save on older distros (!7922) · Merge requests · Inkscape / inkscape · GitLab 19086deebf770c8932b403ee536c8f8562a376f9 to 55362ef7d4c363d9613d70ac7194de7e8e323a34 · PBS / Inkscape · GitLab c74f78ca23ff302b7b59175490b870f1a616b778 to 19086deebf770c8932b403ee536c8f8562a376f9 · PBS / Inkscape · GitLab acf9cb2511a84e64f6009a1f23078da8ff51485a to c74f78ca23ff302b7b59175490b870f1a616b778 · PBS / Inkscape · GitLab Fix objects dialog search crash with missing object ID (!7918) · 合并请求 · Inkscape / inkscape · GitLab "Manage Extensions" throws error with AppImage (#5787) · Issues · Inkscape / inkscape · GitLab ca8baeeb44cbf234ffefa9da10974fb713d1e51a to 1a4da430266ea3d674bc5dc49106bacb6528e099 · PBS / Inkscape · GitLab 84543dab97c1f116e9636f149a031f2256199c87 to c7d8378ccc109bdb2ed30f0c8407725e93ffdd9b · Inkscape / lib2geom · GitLab Update split mode on tab switch (!7915) · Merge requests · Inkscape / inkscape · GitLab inset/offset as app functions so they can be used from CLI (!7914) · Merge requests · Inkscape / inkscape · GitLab Update split mode on tab switch (21bbbaa7) · Commits · PBS / Inkscape · GitLab Commits · split-mode-tab · PBS / Inkscape · GitLab Update split mode on tab switch (7fdf74dd) · Commits · Inkscape / inkscape · GitLab [Regression] Right-aligned text has a new gap in 1.4.4 (#6130) · Issues · Inkscape / inkscape · GitLab 55362ef7d4c363d9613d70ac7194de7e8e323a34 to a2b678d5ad5ae2ee02aa4d7d0ec7a856048190c0 · PBS / Inkscape · GitLab Speed up ungroup on thousands of items (!7908) · Merge requests · Inkscape / inkscape · GitLab AppImage build does not support OpenGL mode (#3428) · Issues · Inkscape / inkscape · GitLab Pressure sensitivity broken in AppImage (#5962) · Issues · Inkscape / inkscape · GitLab 3bd629c13b87c4ab2af3d126f86ddcc8bbf2f149 to ca8baeeb44cbf234ffefa9da10974fb713d1e51a · PBS / Inkscape · GitLab Fix breakage with Ubuntu 26.04 CI (!7904) · 合并请求 · Inkscape / inkscape · GitLab 242c9b14b996730e92eae6015fead1cf3cc2d8e9 to 3bd629c13b87c4ab2af3d126f86ddcc8bbf2f149 · PBS / Inkscape · GitLab Fix breakage with Ubuntu 26.04 CI (c7d8378c) · 提交 · PBS / lib2geom · GitLab Update more reference images (242c9b14) · 提交 · PBS / Inkscape · GitLab 1daba12d820308823d302201e3cf2eafbaac1ac6 to 0aa687aa9bafa055619749a9867e536b80ece385 · PBS / Inkscape · GitLab 647ee7f47a87a5c87285487d3c6029acf635ed01 to 469601f7445709b71dd3b8670333d7e1b49d86fb · PBS / lib2geom · GitLab Use supersampling to reduce fuzz, update reference images (1daba12d) · 提交 · PBS / Inkscape · GitLab Update peppercarrot reference image (cc92988a) · 提交 · PBS / Inkscape · GitLab Fix CJK / Hebrew problems (1ea593ef) · 提交 · PBS / Inkscape · GitLab Add argument file to bypass Windows command length limits (!7899) · 合并请求 · Inkscape / inkscape · GitLab Update Color API preparing for new Rendering Engine (!7894) · Merge requests · Inkscape / inkscape · GitLab New UX for text in shape and text in path (!7827) · Merge requests · Inkscape / inkscape · GitLab Fix tests in debian packaging (!7838) · Merge requests · Inkscape / inkscape · GitLab Draft: Upgrade to Ubuntu 26.04 (!64) · Merge requests · Inkscape / inkscape-ci-docker · GitLab Draft: Fix breakage with Ubuntu 26.04 CI (!148) · Merge requests · Inkscape / lib2geom · GitLab [DRAFT] Temporarily disable lpe tests (a2995490) · Commits · PBS / Inkscape · GitLab aa6bd703d4a5ed9d81838ec3ed16da623bc742b1 to 2ab70cbfd1a9e6707a14099ea0c0c11ae3134e7f · PBS / Inkscape · GitLab db745239d11d97540b6cae0872ac61ef59008e24 to 647ee7f47a87a5c87285487d3c6029acf635ed01 · PBS / lib2geom · GitLab ed16d3e6e8f776b32b54919d982459479f832325 to aa6bd703d4a5ed9d81838ec3ed16da623bc742b1 · PBS / Inkscape · GitLab Fix breakage with Ubuntu 26.04 CI (db745239) · Commits · PBS / lib2geom · GitLab Fix breakage with Ubuntu 26.04 CI (6e40e833) · Commits · PBS / lib2geom · GitLab Commits · resolute · PBS / lib2geom · GitLab Commits · resolute · PBS / Inkscape · GitLab Commits · resolute · PBS / inkscape-ci-docker · GitLab Upgrade to Ubuntu 26.04 (c283b8d1) · Commits · Inkscape / inkscape-ci-docker · GitLab Implement support for all color font formats. 1.5.x (!7565) · Merge requests · Inkscape / inkscape · GitLab Refactor paint server data so the renderer works from data (!7859) · Merge requests · Inkscape / inkscape · GitLab Fix page repainting when document y-axis is flipped (!7861) · Merge requests · Inkscape / inkscape · GitLab Add custom color palette support to bitmap tracing with novel color quantization algorithm (!7862) · Merge requests · Inkscape / inkscape · GitLab PBS deleted project branch various-fixes at PBS / lib2geom Duplicated expression in if statement inside path-intersection.cpp (#27) · Issues · Inkscape / lib2geom · GitLab 2geom.pc.in hardcodes "lib" for libdir (#81) · Issues · Inkscape / lib2geom · GitLab IntPoint / double = IntPoint (should be Point) (#76) · Issues · Inkscape / lib2geom · GitLab EllipticalArc::pointAndDerivatives() returns too many derivatives (#83) · Issues · Inkscape / lib2geom · GitLab b1273d10b17f7c0fa23016c12477577ce667b8cf to 84543dab97c1f116e9636f149a031f2256199c87 · Inkscape / lib2geom · GitLab ad6bc46c3a1186b640711410a05406e07c1b9eae to 290d47f6d9d60d5be0d5a76856339b0ff5695c4d · PBS / Inkscape · GitLab Fix dispatch_pool hang on exit on Windows (!7794) · Merge requests · Inkscape / inkscape · GitLab 4d22039de3d9c2ae1a6337852e55bed06b20193b to f529b2aace8ad98fdcadcb50da810163215512bb · Inkscape / inkscape · GitLab Do not run any build-time tests when building the deb package (!7792) · Merge requests · Inkscape / inkscape · GitLab Make internal capypdf static (bf1e16d7) · Commits · PBS / Inkscape · GitLab Commits · capypdf-static · PBS / Inkscape · GitLab Make internal capypdf static (61bdd93d) · Commits · PBS / Inkscape · GitLab Make internal capypdf static (17be81e7) · Commits · PBS / Inkscape · GitLab Make internal capypdf static (7e09228f) · Commits · PBS / Inkscape · GitLab Make internal capypdf static (0a5473eb) · Commits · PBS / Inkscape · GitLab Make internal capypdf static (e32360c2) · Commits · PBS / Inkscape · GitLab Make internal capypdf static (202e9499) · Commits · PBS / Inkscape · GitLab Make internal capypdf static (64b041bb) · Commits · PBS / Inkscape · GitLab Make internal capypdf static (1a9d977c) · Commits · PBS / Inkscape · GitLab Make internal capypdf static (7a095661) · Commits · PBS / Inkscape · GitLab Make internal capypdf static (b9ac0d79) · Commits · PBS / Inkscape · GitLab Make internal capypdf static (dc2381e3) · Commits · PBS / Inkscape · GitLab Make internal capypdf static (fcb272c3) · Commits · PBS / Inkscape · GitLab Make internal capypdf static (c9323296) · Commits · Inkscape / inkscape · GitLab
Fix some tests (20705d53) · Commits · PBS / Inkscape · GitLab
PBS · 2026-04-26 · via PBS activity
Commit 20705d53 authored by PBS's avatar PBS
Browse files
* Consolidate check_output.sh with l2compare.sh, use L2 metric always.
* Fix test-store writing to source directory.
* Fix failing tests due to antialiasing differences by combination of
  updating test images (for large differences typically involving text)
  or adding/increasing fuzz.
+43 −58
Original line number Diff line number Diff line
@@ -24,8 +24,6 @@
#   REFERENCE_FILENAME - compare OUTPUT_FILENAME with this pre-rendered reference file
#                        both files are converted to PNG and compared with ImageMagick's 'compare'
#                        for multipage output, use OUTPUT_PAGE to specify a single page for comparison
#   FUZZYREF_FILENAME  - comparison of OUTPUT_FILENAME with this pre-rendered reference file will be
#                        performed in the L2 metric, subject to the specified FUZZ_PERCENTAGE
#   EXPECTED_FILES     - verify the command produced the expected files (i.e. they exist on disk)
#   TEST_SCRIPT        - additional script to run after performing all checks and before cleaning up
#
@@ -45,7 +43,7 @@ function(add_cli_test name)
        add_cli_test_cmp(${testname} ${testname}_check ${quotedArgs})
        add_cli_test_cln(${testname} ${testname}_clean ${quotedArgs})
    ")
endfunction(add_cli_test)
endfunction()


#
@@ -104,7 +102,7 @@ function(add_cli_test_run fixture testname)
                FIXTURES_SETUP ${fixture}
                ENVIRONMENT "${CMAKE_CTEST_ENV}")
    endif()
endfunction(add_cli_test_run)
endfunction()

#
# Just the comparison component of the above add_cli_test
@@ -113,7 +111,7 @@ function(add_cli_test_cmp fixture testname)
    # parse arguments
    set(options REFERENCE_INKSCAPE)
    set(oneValueArgs OUTPUT_FILENAME OUTPUT_PAGE REFERENCE_FILENAME
        FUZZYREF_FILENAME FUZZ_PERCENTAGE RASTER_DPI PNG_FILENAME)
        FUZZ_PERCENTAGE RASTER_DPI PNG_FILENAME)
    set(multiValueArgs EXPECTED_FILES TEST_SCRIPT)
    cmake_parse_arguments(ARG "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})

@@ -149,7 +147,7 @@ function(add_cli_test_cmp fixture testname)
            COMMAND bash ${CMAKE_CURRENT_SOURCE_DIR}/check_output.sh
                    "${ARG_OUTPUT_FILENAME}" "${ARG_OUTPUT_PAGE}" "${ARG_REFERENCE_FILENAME}"
                    "${ARG_EXPECTED_FILES}" "${ARG_TEST_SCRIPT}" "${ARG_PNG}"
                    "${ARG_FUZZ}")
                    "${ARG_FUZZ}" "${ARG_RASTER_DPI}")
        set_tests_properties(${testname} PROPERTIES
            FIXTURES_REQUIRED ${fixture}
            ENVIRONMENT "${CMAKE_CTEST_ENV}"
@@ -157,21 +155,7 @@ function(add_cli_test_cmp fixture testname)
        )
    endif()

    # add a fuzzy test to check the output files
    if(DEFINED ARG_FUZZYREF_FILENAME)
        file(TO_NATIVE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/testcases/${ARG_FUZZYREF_FILENAME}" ARG_FUZZYREF_FILENAME)
        add_test(NAME ${testname}
            COMMAND bash ${CMAKE_CURRENT_SOURCE_DIR}/l2compare.sh
            "${ARG_OUTPUT_FILENAME}" "${ARG_OUTPUT_PAGE}" "${ARG_FUZZYREF_FILENAME}" "${ARG_FUZZ}" "${ARG_RASTER_DPI}" "${ARG_PNG}"
        )
        set_tests_properties(${testname} PROPERTIES
            FIXTURES_REQUIRED ${fixture}
            ENVIRONMENT "${CMAKE_CTEST_ENV}"
            SKIP_RETURN_CODE 42
        )
    endif()

endfunction(add_cli_test_cmp)
endfunction()

#
# Delete all the generated files
@@ -265,10 +249,10 @@ add_cli_test(export-type_png PARAMETERS --export-type=png INPUT_FILENAME shapes
add_cli_test(export-type_ps   PARAMETERS --export-type=ps  INPUT_FILENAME shapes.svg OUTPUT_FILENAME shapes.ps  REFERENCE_FILENAME shapes_expected.ps)
add_cli_test(export-type_eps  PARAMETERS --export-type=eps INPUT_FILENAME shapes.svg OUTPUT_FILENAME shapes.eps REFERENCE_FILENAME shapes_expected.eps)
if(WITH_CAPYPDF)
add_cli_test(export-type_pdf  PARAMETERS --export-type=pdf INPUT_FILENAME shapes.svg OUTPUT_FILENAME shapes.pdf REFERENCE_FILENAME shapes_expected.pdf)
add_cli_test(export-type_pdf  PARAMETERS --export-type=pdf INPUT_FILENAME shapes.svg OUTPUT_FILENAME shapes.pdf REFERENCE_FILENAME shapes_expected.pdf FUZZ_PERCENTAGE 1)
endif()
add_cli_test(export-type_emf  PARAMETERS --export-type=emf INPUT_FILENAME shapes.svg OUTPUT_FILENAME shapes.emf REFERENCE_FILENAME shapes_expected.emf)
add_cli_test(export-type_wmf  PARAMETERS --export-type=wmf INPUT_FILENAME shapes.svg OUTPUT_FILENAME shapes.wmf REFERENCE_FILENAME shapes_expected.wmf)
add_cli_test(export-type_wmf  PARAMETERS --export-type=wmf INPUT_FILENAME shapes.svg OUTPUT_FILENAME shapes.wmf REFERENCE_FILENAME shapes_expected.wmf FUZZ_PERCENTAGE 0.5)
# XAML is not supported by ImageMagick's convert, so simply compare binary
add_cli_test(export-type_xaml PARAMETERS --export-type=xaml INPUT_FILENAME shapes.svg OUTPUT_FILENAME shapes.xaml
                              TEST_SCRIPT compare.sh shapes.xaml "${CMAKE_CURRENT_SOURCE_DIR}/testcases/shapes_expected.xaml")
@@ -277,13 +261,13 @@ add_cli_test(export-type_xaml PARAMETERS --export-type=xaml INPUT_FILENAME shape
add_cli_test(export-area-page_png PARAMETERS --export-area-page --export-type=png INPUT_FILENAME areas.svg OUTPUT_FILENAME export-area-page.png REFERENCE_FILENAME export-area-page_expected.png)
add_cli_test(export-area-page_svg PARAMETERS --export-area-page --export-type=svg INPUT_FILENAME areas.svg OUTPUT_FILENAME export-area-page.svg REFERENCE_FILENAME export-area-page_expected.svg)
if(WITH_CAPYPDF)
add_cli_test(export-area-page_pdf PARAMETERS --export-area-page --export-type=pdf INPUT_FILENAME areas.svg OUTPUT_FILENAME export-area-page.pdf REFERENCE_FILENAME export-area-page_expected.pdf)
add_cli_test(export-area-page_pdf PARAMETERS --export-area-page --export-type=pdf INPUT_FILENAME areas.svg OUTPUT_FILENAME export-area-page.pdf REFERENCE_FILENAME export-area-page_expected.pdf FUZZ_PERCENTAGE 0.5)
endif()
add_cli_test(export-area-page_ps  PARAMETERS --export-area-page --export-type=ps  INPUT_FILENAME areas.svg OUTPUT_FILENAME export-area-page.ps  REFERENCE_FILENAME export-area-page_expected.ps)
# EPS: Currently not supported. Feature request: https://gitlab.com/inkscape/inkscape/-/issues/1074
# add_cli_test(export-area-page_eps PARAMETERS --export-area-page --export-type=eps INPUT_FILENAME areas.svg OUTPUT_FILENAME export-area-page.eps REFERENCE_FILENAME export-area-page_expected.eps)
add_cli_test(export-area-page_emf PARAMETERS --export-area-page --export-type=emf INPUT_FILENAME areas.svg OUTPUT_FILENAME export-area-page.emf REFERENCE_FILENAME export-area-page_expected.emf)
add_cli_test(export-area-page_wmf PARAMETERS --export-area-page --export-type=wmf INPUT_FILENAME areas.svg OUTPUT_FILENAME export-area-page.wmf REFERENCE_FILENAME export-area-page_expected.wmf)
add_cli_test(export-area-page_wmf PARAMETERS --export-area-page --export-type=wmf INPUT_FILENAME areas.svg OUTPUT_FILENAME export-area-page.wmf REFERENCE_FILENAME export-area-page_expected.wmf FUZZ_PERCENTAGE 0.5)

# --export-area-page + --export-id  (+ --export-id-only)
# TODO: PDF/PS/EPS always behave as if --export-id-only was given, see https://gitlab.com/inkscape/inkscape/-/issues/1173
@@ -301,7 +285,7 @@ add_cli_test(export-area-page_export-id_ps PARAMETERS --export-area-page --expo
add_cli_test(export-area-drawing_png PARAMETERS --export-area-drawing --export-type=png INPUT_FILENAME areas.svg OUTPUT_FILENAME export-area-drawing.png REFERENCE_FILENAME export-area-drawing_expected.png)
add_cli_test(export-area-drawing_svg PARAMETERS --export-area-drawing --export-type=svg INPUT_FILENAME areas.svg OUTPUT_FILENAME export-area-drawing.svg REFERENCE_FILENAME export-area-drawing_expected.svg)
if(WITH_CAPYPDF)
add_cli_test(export-area-drawing_pdf PARAMETERS --export-area-drawing --export-type=pdf INPUT_FILENAME areas.svg OUTPUT_FILENAME export-area-drawing.pdf REFERENCE_FILENAME export-area-drawing_expected.pdf)
add_cli_test(export-area-drawing_pdf PARAMETERS --export-area-drawing --export-type=pdf INPUT_FILENAME areas.svg OUTPUT_FILENAME export-area-drawing.pdf REFERENCE_FILENAME export-area-drawing_expected.pdf FUZZ_PERCENTAGE 0.5)
endif()
add_cli_test(export-area-drawing_ps  PARAMETERS --export-area-drawing --export-type=ps  INPUT_FILENAME areas.svg OUTPUT_FILENAME export-area-drawing.ps  REFERENCE_FILENAME export-area-drawing_expected.ps)
add_cli_test(export-area-drawing_eps PARAMETERS --export-area-drawing --export-type=eps INPUT_FILENAME areas.svg OUTPUT_FILENAME export-area-drawing.eps REFERENCE_FILENAME export-area-drawing_expected.eps)
@@ -313,7 +297,7 @@ add_cli_test(export-area-drawing_eps PARAMETERS --export-area-drawing --export-t
add_cli_test(export-area-drawing-page_png PARAMETERS --export-area-drawing --export-area-page --export-type=png INPUT_FILENAME areas.svg OUTPUT_FILENAME export-area-drawing-page.png REFERENCE_FILENAME export-area-page_expected.png)
add_cli_test(export-area-drawing-page_svg PARAMETERS --export-area-drawing --export-area-page --export-type=svg INPUT_FILENAME areas.svg OUTPUT_FILENAME export-area-drawing-page.svg REFERENCE_FILENAME export-area-page_expected.svg)
if(WITH_CAPYPDF)
add_cli_test(export-area-drawing-page_pdf PARAMETERS --export-area-drawing --export-area-page --export-type=pdf INPUT_FILENAME areas.svg OUTPUT_FILENAME export-area-drawing-page.pdf REFERENCE_FILENAME export-area-page_expected.pdf)
add_cli_test(export-area-drawing-page_pdf PARAMETERS --export-area-drawing --export-area-page --export-type=pdf INPUT_FILENAME areas.svg OUTPUT_FILENAME export-area-drawing-page.pdf REFERENCE_FILENAME export-area-page_expected.pdf FUZZ_PERCENTAGE 0.5)
endif()
add_cli_test(export-area-drawing-page_ps  PARAMETERS --export-area-drawing --export-area-page --export-type=ps  INPUT_FILENAME areas.svg OUTPUT_FILENAME export-area-drawing-page.ps  REFERENCE_FILENAME export-area-page_expected.ps)

@@ -330,7 +314,7 @@ add_cli_test(export-area-snap_export-area-drawing PARAMETERS --export-area-drawi
add_cli_test(export-dpi_png PARAMETERS --export-dpi=12 --export-type=png INPUT_FILENAME filter.svg OUTPUT_FILENAME export-dpi.png REFERENCE_FILENAME export-dpi_expected.png)
# SVG: doesn't make sense
if(WITH_CAPYPDF)
add_cli_test(export-dpi_pdf PARAMETERS --export-dpi=12 --export-type=pdf INPUT_FILENAME filter.svg OUTPUT_FILENAME export-dpi.pdf REFERENCE_FILENAME export-dpi_expected.pdf)
add_cli_test(export-dpi_pdf PARAMETERS --export-dpi=12 --export-type=pdf INPUT_FILENAME filter.svg OUTPUT_FILENAME export-dpi.pdf REFERENCE_FILENAME export-dpi_expected.pdf FUZZ_PERCENTAGE 0.2)
endif()
add_cli_test(export-dpi_ps  PARAMETERS --export-dpi=12 --export-type=ps  INPUT_FILENAME filter.svg OUTPUT_FILENAME export-dpi.ps  REFERENCE_FILENAME export-dpi_expected.ps)
add_cli_test(export-dpi_eps PARAMETERS --export-dpi=12 --export-type=eps INPUT_FILENAME filter.svg OUTPUT_FILENAME export-dpi.eps REFERENCE_FILENAME export-dpi_expected.eps)
@@ -599,52 +583,52 @@ add_cli_test(export-grouped-mp PARAMETERS --export-type=pdf
                               INPUT_FILENAME export-grouped-mp.svg
                               OUTPUT_FILENAME export-grouped-mp.pdf
                               OUTPUT_PAGE 1
                               FUZZYREF_FILENAME export-grouped-mp_expected.png
                               REFERENCE_FILENAME export-grouped-mp_expected.png
                               FUZZ_PERCENTAGE 3)
add_cli_test(export-with-filters-multipage PARAMETERS --export-type=pdf
                                           INPUT_FILENAME export-with-filters-multipage.svg
                                           OUTPUT_FILENAME export-with-filters-multipage.pdf
                                           OUTPUT_PAGE 1
                                           FUZZYREF_FILENAME export-with-filters-multipage_expected.png
                                           REFERENCE_FILENAME export-with-filters-multipage_expected.png
                                           FUZZ_PERCENTAGE 1)
add_cli_test(export-filtered-clones-mp PARAMETERS --export-type=pdf --export-dpi=600
                                       INPUT_FILENAME  export-filtered-clones-mp.svg
                                       OUTPUT_FILENAME export-filtered-clones-mp.pdf
                                       OUTPUT_PAGE 1
                                       RASTER_DPI 600
                                       FUZZYREF_FILENAME export-filtered-clones-mp_expected.png
                                       REFERENCE_FILENAME export-filtered-clones-mp_expected.png
                                       FUZZ_PERCENTAGE 3)
add_cli_test(export-clone-group-filtered-mp PARAMETERS --export-type=pdf
                                            INPUT_FILENAME  export-clone-group-filtered-mp.svg
                                            OUTPUT_FILENAME export-clone-group-filtered-mp.pdf
                                            OUTPUT_PAGE 1
                                            FUZZYREF_FILENAME export-clone-group-filtered-mp_expected.png
                                            REFERENCE_FILENAME export-clone-group-filtered-mp_expected.png
                                            FUZZ_PERCENTAGE 3)
add_cli_test(export-text-paintorder PARAMETERS --export-type=pdf
                                    INPUT_FILENAME  export-text-paintorder.svg
                                    OUTPUT_FILENAME export-text-paintorder.pdf
                                    RASTER_DPI 200
                                    FUZZYREF_FILENAME export-text-paintorder_expected.png
                                    FUZZ_PERCENTAGE 3)
                                    REFERENCE_FILENAME export-text-paintorder_expected.png
                                    FUZZ_PERCENTAGE 4)
# This tests the paint order in the text-to-path conversion
add_cli_test(convert-text-paintorder PARAMETERS --export-text-to-path --export-extension=org.inkscape.output.pdf.cairorenderer
                                     INPUT_FILENAME  export-text-paintorder.svg
                                     OUTPUT_FILENAME export-text-paintorder.pdf
                                     RASTER_DPI 200
                                     FUZZYREF_FILENAME export-text-paintorder_expected.png
                                     REFERENCE_FILENAME export-text-paintorder_expected.png
                                     FUZZ_PERCENTAGE 3.5)

if(WITH_CAPYPDF)
add_cli_test(export-mask-viewbox PARAMETERS --export-type=pdf
                                 INPUT_FILENAME  export-mask-viewbox-scale.svg
                                 OUTPUT_FILENAME export-mask-viewbox-scale.pdf
                                 FUZZYREF_FILENAME export-mask-viewbox-scale_expected.png
                                 REFERENCE_FILENAME export-mask-viewbox-scale_expected.png
                                 FUZZ_PERCENTAGE 1)

add_cli_test(export-mask-on-transformed-image PARAMETERS --export-type=pdf
                                              INPUT_FILENAME    export-mask-on-transformed-image.svg
                                              OUTPUT_FILENAME   export-mask-on-transformed-image.pdf
                                              FUZZYREF_FILENAME export-mask-on-transformed-image_expected.png
                                              REFERENCE_FILENAME export-mask-on-transformed-image_expected.png
                                              FUZZ_PERCENTAGE 1)
endif()

@@ -708,10 +692,10 @@ add_cli_test(export-extension_svg PARAMETERS --export-type=svg --export-extensi
add_cli_test(export-extension_ps   PARAMETERS --export-type=ps --export-extension=org.inkscape.print.ps.cairo INPUT_FILENAME shapes.svg OUTPUT_FILENAME shapes.ps  REFERENCE_FILENAME shapes_expected.ps)
add_cli_test(export-extension_eps  PARAMETERS --export-type=eps --export-extension=org.inkscape.print.eps.cairo  INPUT_FILENAME shapes.svg OUTPUT_FILENAME shapes.eps REFERENCE_FILENAME shapes_expected.eps)
if(WITH_CAPYPDF)
    add_cli_test(export-extension_pdf  PARAMETERS --export-type=pdf --export-extension=org.inkscape.output.pdf.capypdf INPUT_FILENAME shapes.svg OUTPUT_FILENAME shapes.pdf REFERENCE_FILENAME shapes_expected.pdf)
    add_cli_test(export-extension_pdf  PARAMETERS --export-type=pdf --export-extension=org.inkscape.output.pdf.capypdf INPUT_FILENAME shapes.svg OUTPUT_FILENAME shapes.pdf REFERENCE_FILENAME shapes_expected.pdf FUZZ_PERCENTAGE 1)
endif()
add_cli_test(export-extension_emf  PARAMETERS --export-type=emf --export-extension=org.inkscape.output.emf  INPUT_FILENAME shapes.svg OUTPUT_FILENAME shapes.emf REFERENCE_FILENAME shapes_expected.emf)
add_cli_test(export-extension_wmf  PARAMETERS --export-type=wmf --export-extension=org.inkscape.output.wmf INPUT_FILENAME shapes.svg OUTPUT_FILENAME shapes.wmf REFERENCE_FILENAME shapes_expected.wmf)
add_cli_test(export-extension_wmf  PARAMETERS --export-type=wmf --export-extension=org.inkscape.output.wmf INPUT_FILENAME shapes.svg OUTPUT_FILENAME shapes.wmf REFERENCE_FILENAME shapes_expected.wmf FUZZ_PERCENTAGE 0.5)
add_cli_test(export-plain-extension-svg PARAMETERS --export-type=svg --export-extension=org.inkscape.output.svg.plain
                              INPUT_FILENAME shapes.svg OUTPUT_FILENAME shapes.svg REFERENCE_FILENAME shapes.svg
                              TEST_SCRIPT match_regex_fail.sh "shapes.svg" "inkscape:|sodipodi:")
@@ -900,7 +884,7 @@ add_cli_test(actions-object-remove-property INPUT_FILENAME export-mask-on-tr
add_cli_test(actions-path-simplify         INPUT_FILENAME path.svg
                                           PARAMETERS --actions=select-by-id:gates$<SEMICOLON>path-simplify$<SEMICOLON>export-id:gates$<SEMICOLON>export-id-only
                                           OUTPUT_FILENAME actions-object-simplify-path.png
                                           REFERENCE_FILENAME actions-object-simplify-path_expected.png)
                                           REFERENCE_FILENAME actions-object-simplify-path_expected.png FUZZ_PERCENTAGE 0.1)

# object-stroke-to-path
add_cli_test(actions-object-stroke-to-path INPUT_FILENAME path.svg
@@ -919,7 +903,7 @@ add_cli_test(action_stroke-to-path_visual
                        PARAMETERS --actions=select-all:all$<SEMICOLON>object-stroke-to-path
                        OUTPUT_FILENAME stroke-to-path-variations.png
                        REFERENCE_FILENAME actions-object-stroke-to-path_variations_expected.png
                        FUZZ_PERCENTAGE 9)
                        FUZZ_PERCENTAGE 0.01)

# object-to-path
add_cli_test(actions-object-to-path        INPUT_FILENAME areas.svg
@@ -935,7 +919,8 @@ add_cli_test(actions-object-unlink-clones INPUT_FILENAME path.svg
# open-page
add_cli_test(actions-open-page             PARAMETERS --actions=open-page:3$<SEMICOLON>file-open:${CMAKE_CURRENT_SOURCE_DIR}/testcases/pdf-pages.pdf$<SEMICOLON>export-filename:actions-open-page.png$<SEMICOLON>export-do
                                           OUTPUT_FILENAME actions-open-page.png
                                           REFERENCE_FILENAME actions-open-page_expected.png)
                                           REFERENCE_FILENAME actions-open-page_expected.png
                                           FUZZ_PERCENTAGE 0.05)

# query-all: test = query-all
add_cli_test(actions-query-all             INPUT_FILENAME rects.svg PARAMETERS --actions=select-by-id:rect2$<SEMICOLON>query-all    PASS_FOR_OUTPUT ${query_all_expected})
@@ -1049,14 +1034,14 @@ add_cli_test(actions-svginot-text-topath
    INPUT_FILENAME ../../rendering_tests/text-gzipped-svg-glyph.svg
    PARAMETERS --actions=select-all$<SEMICOLON>object-to-path$<SEMICOLON>select-clear$<SEMICOLON>select-by-element:text$<SEMICOLON>delete
    OUTPUT_FILENAME actions-svginot-text-topath-output.png
    FUZZYREF_FILENAME ../../rendering_tests/expected_rendering/text-gzipped-svg-glyph.png
    REFERENCE_FILENAME ../../rendering_tests/expected_rendering/text-gzipped-svg-glyph.png
    FUZZ_PERCENTAGE 3
)
add_cli_test(actions-svginot-text-topath2
        INPUT_FILENAME ../../rendering_tests/text-svg-glyph-custom.svg
        PARAMETERS --actions=select-all$<SEMICOLON>object-to-path$<SEMICOLON>select-clear$<SEMICOLON>select-by-element:text$<SEMICOLON>delete
        OUTPUT_FILENAME actions-svginot-text-topath-output.png
        FUZZYREF_FILENAME ../../rendering_tests/expected_rendering/text-svg-glyph-custom.png
        REFERENCE_FILENAME ../../rendering_tests/expected_rendering/text-svg-glyph-custom.png
        FUZZ_PERCENTAGE 1
)

@@ -1066,7 +1051,7 @@ add_cli_test(actions-text-to-glyph
            --actions=select-all$<SEMICOLON>text-convert-to-glyphs$<SEMICOLON>select-clear$<SEMICOLON>select-by-id:text_o_1$<SEMICOLON>select-by-id:text_o_2$<SEMICOLON>select-by-id:text_o_3$<SEMICOLON>select-by-id:text_o_4$<SEMICOLON>delete$<SEMICOLON>
        OUTPUT_FILENAME text_to_glyph.png
        REFERENCE_FILENAME text_to_glyph_expected.svgz REFERENCE_INKSCAPE
        FUZZ_PERCENTAGE 8
        FUZZ_PERCENTAGE 0.2
)


@@ -1118,7 +1103,7 @@ function(add_pdfinput_test name pages font_strategy)
        EXPECTED_FILES "${name}.svg"
        TEST_SCRIPT compare.sh ${name}.svg "${CMAKE_CURRENT_SOURCE_DIR}/testcases/pdfinput/${name}_expected.svg")

endfunction(add_pdfinput_test)
endfunction()

# CMS testing disabled because CI builder doesn't support LCMS yet.
# add_pdfinput_test(cms 1)
@@ -1169,14 +1154,14 @@ function(add_pdfoutput_test name)
            OUTPUT_FILENAME pdfoutput/${name}.pdf
            OUTPUT_PAGE "${NUM}"
            PNG_FILENAME "pdfoutput/expected/${name}-${NUM}.png"
            FUZZYREF_FILENAME pdfoutput/expected/${name}-${NUM}.png
            REFERENCE_FILENAME pdfoutput/expected/${name}-${NUM}.png
            FUZZ_PERCENTAGE ${ARG_FUZZ_PERCENTAGE}
            ${RASTER_DPI}
        )
    endforeach()
    add_cli_test_cln(cli_pdfoutput-${name} cli_pdfoutput-${name}-clean
        OUTPUT_FILENAME pdfoutput/${name}.pdf)
endfunction(add_pdfoutput_test)
endfunction()

if(WITH_CAPYPDF)
    add_pdfoutput_test(00-one-thing)
@@ -1186,14 +1171,14 @@ if(WITH_CAPYPDF)
    add_pdfoutput_test(04-test-transforms)
    add_pdfoutput_test(05-test-transparencies)
    add_pdfoutput_test(06-test-markers)
    add_pdfoutput_test(07-test-shapes)
    add_pdfoutput_test(08-clones)
    add_pdfoutput_test(07-test-shapes FUZZ_PERCENTAGE 0.2)
    add_pdfoutput_test(08-clones FUZZ_PERCENTAGE 1)
    add_pdfoutput_test(09-text-layout)
    add_pdfoutput_test(10-text-paint)
    add_pdfoutput_test(11-text-decoration)
    add_pdfoutput_test(12-rasters)
    add_pdfoutput_test(13-clips)
    add_pdfoutput_test(14-filters)
    add_pdfoutput_test(12-rasters FUZZ_PERCENTAGE 1)
    add_pdfoutput_test(13-clips FUZZ_PERCENTAGE 3)
    add_pdfoutput_test(14-filters FUZZ_PERCENTAGE 0.2)
    add_pdfoutput_test(15-many-items)
endif()

@@ -1205,27 +1190,27 @@ endif()
if(WITH_LIBCDR)
  # add_cli_test(import_cdr  PARAMETERS --export-type=png   # fails to open (regression in libcdr 1.6.0)
  #                          INPUT_FILENAME librevenge_formats/corel_draw.cdr OUTPUT_FILENAME format_corel_draw.png
  #                          FUZZYREF_FILENAME librevenge_formats/corel_draw_expected.png # check png size is correct
  #                          REFERENCE_FILENAME librevenge_formats/corel_draw_expected.png # check png size is correct
  #                          FUZZ_PERCENTAGE 3)
  add_cli_test(import_cdr2 PARAMETERS --export-type=png
                           INPUT_FILENAME librevenge_formats/corel_draw2.cdr OUTPUT_FILENAME format_corel_draw2.png
                           FUZZYREF_FILENAME librevenge_formats/corel_draw2_expected.png
                           REFERENCE_FILENAME librevenge_formats/corel_draw2_expected.png
                           FUZZ_PERCENTAGE 3)
endif()
if(WITH_LIBVISIO)
  add_cli_test(import_vsd  PARAMETERS --export-type=png
                           INPUT_FILENAME librevenge_formats/visio.vsd OUTPUT_FILENAME format_visio.vsd.png
                           FUZZYREF_FILENAME librevenge_formats/visio.vsd_expected.png
                           REFERENCE_FILENAME librevenge_formats/visio.vsd_expected.png
                           FUZZ_PERCENTAGE 3)
  add_cli_test(import_vsdx PARAMETERS --export-type=png
                           INPUT_FILENAME librevenge_formats/visio.vsdx OUTPUT_FILENAME format_visio.vsdx.png
                           FUZZYREF_FILENAME librevenge_formats/visio.vsdx_expected.png
                           REFERENCE_FILENAME librevenge_formats/visio.vsdx_expected.png
                           FUZZ_PERCENTAGE 3)
endif()
if(WITH_LIBWPG)
  add_cli_test(import_wpg  PARAMETERS --export-type=png
                           INPUT_FILENAME librevenge_formats/word_perfect.wpg OUTPUT_FILENAME format_word_perfect.png
                           FUZZYREF_FILENAME librevenge_formats/word_perfect_expected.png
                           REFERENCE_FILENAME librevenge_formats/word_perfect_expected.png
                           FUZZ_PERCENTAGE 3)
endif()

+42 −21

File changed.

Preview size limit exceeded, changes collapsed.

+0 −90

File deleted.

Preview size limit exceeded, changes collapsed.

+192 B (9.17 KiB)
−1.32 KiB (4.39 KiB)