Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some tests fail on i586 but not in x86_64 #1163

Closed
antlarr-suse opened this issue Jun 12, 2020 · 1 comment · Fixed by #1321
Closed

Some tests fail on i586 but not in x86_64 #1163

antlarr-suse opened this issue Jun 12, 2020 · 1 comment · Fixed by #1321

Comments

@antlarr-suse
Copy link
Contributor

The openSUSE Build Service is building packages of afdko for different architectures and tests are run on each of them. I noticed that 8 tests fail on i586 while they work on x86_64.

This is the output of the test failures:

=================================== FAILURES ===================================
______________________________ test_convert[sans] ______________________________

filename = 'sans'

    @pytest.mark.parametrize('filename', ['sans', 'serif', 'latincid', 'kanjicid'])
    def test_convert(filename):
        input_path = get_input_path(f'{filename}.otf')
        actual_path = get_temp_file_path()
        otf2ttf(['-o', actual_path, input_path])
        actual_ttx = generate_ttx_dump(actual_path)
        expected_ttx = get_expected_path(f'{filename}.ttx')
>       assert differ([expected_ttx, actual_ttx,
                       '-s',
                       '<ttFont sfntVersion' + SPLIT_MARKER +
                       '    <checkSumAdjustment value=' + SPLIT_MARKER +
                       '    <checkSumAdjustment value=' + SPLIT_MARKER +
                       '    <created value=' + SPLIT_MARKER +
                       '    <modified value='])
E       AssertionError: assert False
E        +  where False = differ(['/home/abuild/rpmbuild/BUILD/afdko-3.4.0/tests/otf2ttf_data/expected_output/sans.ttx', '/home/abuild/rpmbuild/BUILD/a...:+_    <checkSumAdjustment value=_+:+_    <checkSumAdjustment value=_+:+_    <created value=_+:+_    <modified value='])

tests/otf2ttf_test.py:111: AssertionError
----------------------------- Captured stdout call -----------------------------
--- /home/abuild/rpmbuild/BUILD/afdko-3.4.0/tests/otf2ttf_data/expected_output/sans.ttx
+++ /home/abuild/rpmbuild/BUILD/afdko-3.4.0/tmp/tmp4k_i335f
@@ -463,3 +463,3 @@
         <pt x="64" y="185" on="0"/>
-        <pt x="66" y="73" on="0"/>
+        <pt x="66" y="72" on="0"/>
         <pt x="75" y="30" on="0"/>
@@ -467,3 +467,3 @@
         <pt x="97" y="30" on="0"/>
-        <pt x="106" y="73" on="0"/>
+        <pt x="106" y="72" on="0"/>
         <pt x="108" y="185" on="0"/>
_____________________________ test_convert[serif] ______________________________

filename = 'serif'

    @pytest.mark.parametrize('filename', ['sans', 'serif', 'latincid', 'kanjicid'])
    def test_convert(filename):
        input_path = get_input_path(f'{filename}.otf')
        actual_path = get_temp_file_path()
        otf2ttf(['-o', actual_path, input_path])
        actual_ttx = generate_ttx_dump(actual_path)
        expected_ttx = get_expected_path(f'{filename}.ttx')
>       assert differ([expected_ttx, actual_ttx,
                       '-s',
                       '<ttFont sfntVersion' + SPLIT_MARKER +
                       '    <checkSumAdjustment value=' + SPLIT_MARKER +
                       '    <checkSumAdjustment value=' + SPLIT_MARKER +
                       '    <created value=' + SPLIT_MARKER +
                       '    <modified value='])
E       AssertionError: assert False
E        +  where False = differ(['/home/abuild/rpmbuild/BUILD/afdko-3.4.0/tests/otf2ttf_data/expected_output/serif.ttx', '/home/abuild/rpmbuild/BUILD/...:+_    <checkSumAdjustment value=_+:+_    <checkSumAdjustment value=_+:+_    <created value=_+:+_    <modified value='])

tests/otf2ttf_test.py:111: AssertionError
----------------------------- Captured stdout call -----------------------------
--- /home/abuild/rpmbuild/BUILD/afdko-3.4.0/tests/otf2ttf_data/expected_output/serif.ttx
+++ /home/abuild/rpmbuild/BUILD/afdko-3.4.0/tmp/tmpdmx0_xtu
@@ -1166,3 +1166,3 @@
         <pt x="302" y="-10" on="1"/>
-        <pt x="234" y="2" on="0"/>
+        <pt x="234" y="1" on="0"/>
         <pt x="118" y="88" on="0"/>
@@ -2253,3 +2253,3 @@
         <pt x="192" y="100" on="1"/>
-        <pt x="192" y="19" on="0"/>
+        <pt x="192" y="18" on="0"/>
         <pt x="184" y="-91" on="0"/>
@@ -2896,3 +2896,3 @@
         <pt x="460" y="124" on="0"/>
-        <pt x="404" y="38" on="0"/>
+        <pt x="404" y="37" on="0"/>
         <pt x="304" y="-13" on="0"/>
____________________________ test_convert[kanjicid] ____________________________

filename = 'kanjicid'

    @pytest.mark.parametrize('filename', ['sans', 'serif', 'latincid', 'kanjicid'])
    def test_convert(filename):
        input_path = get_input_path(f'{filename}.otf')
        actual_path = get_temp_file_path()
        otf2ttf(['-o', actual_path, input_path])
        actual_ttx = generate_ttx_dump(actual_path)
        expected_ttx = get_expected_path(f'{filename}.ttx')
>       assert differ([expected_ttx, actual_ttx,
                       '-s',
                       '<ttFont sfntVersion' + SPLIT_MARKER +
                       '    <checkSumAdjustment value=' + SPLIT_MARKER +
                       '    <checkSumAdjustment value=' + SPLIT_MARKER +
                       '    <created value=' + SPLIT_MARKER +
                       '    <modified value='])
E       AssertionError: assert False
E        +  where False = differ(['/home/abuild/rpmbuild/BUILD/afdko-3.4.0/tests/otf2ttf_data/expected_output/kanjicid.ttx', '/home/abuild/rpmbuild/BUI...:+_    <checkSumAdjustment value=_+:+_    <checkSumAdjustment value=_+:+_    <created value=_+:+_    <modified value='])

tests/otf2ttf_test.py:111: AssertionError
----------------------------- Captured stdout call -----------------------------
--- /home/abuild/rpmbuild/BUILD/afdko-3.4.0/tests/otf2ttf_data/expected_output/kanjicid.ttx
+++ /home/abuild/rpmbuild/BUILD/afdko-3.4.0/tmp/tmpiatxzk89
@@ -2242,3 +2242,3 @@
         <pt x="877" y="-10" on="0"/>
-        <pt x="819" y="60" on="0"/>
+        <pt x="818" y="60" on="0"/>
         <pt x="747" y="129" on="0"/>
@@ -2317,3 +2317,3 @@
         <pt x="448" y="353" on="0"/>
-        <pt x="428" y="174" on="0"/>
+        <pt x="428" y="173" on="0"/>
         <pt x="381" y="0" on="0"/>
@@ -2413,3 +2413,3 @@
         <pt x="401" y="174" on="0"/>
-        <pt x="349" y="-3" on="0"/>
+        <pt x="349" y="-4" on="0"/>
         <pt x="301" y="-76" on="1"/>
@@ -2522,3 +2522,3 @@
         <pt x="218" y="185" on="0"/>
-        <pt x="154" y="4" on="0"/>
+        <pt x="154" y="3" on="0"/>
         <pt x="88" y="-78" on="1"/>
@@ -3504,3 +3504,3 @@
         <pt x="546" y="537" on="0"/>
-        <pt x="587" y="659" on="0"/>
+        <pt x="588" y="659" on="0"/>
         <pt x="624" y="784" on="0"/>
@@ -6370,3 +6370,3 @@
         <pt x="883" y="89" on="0"/>
-        <pt x="941" y="21" on="0"/>
+        <pt x="941" y="22" on="0"/>
         <pt x="957" y="-8" on="1"/>
@@ -8586,3 +8586,3 @@
         <pt x="272" y="-48" on="0"/>
-        <pt x="242" y="1" on="0"/>
+        <pt x="242" y="0" on="0"/>
         <pt x="242" y="46" on="1"/>
@@ -8641,3 +8641,3 @@
         <pt x="232" y="683" on="0"/>
-        <pt x="179" y="723" on="0"/>
+        <pt x="178" y="723" on="0"/>
         <pt x="118" y="760" on="0"/>
@@ -9375,3 +9375,3 @@
         <pt x="692" y="392" on="0"/>
-        <pt x="705" y="482" on="0"/>
+        <pt x="704" y="482" on="0"/>
         <pt x="716" y="578" on="0"/>
@@ -9433,3 +9433,3 @@
         <pt x="674" y="490" on="0"/>
-        <pt x="409" y="476" on="0"/>
+        <pt x="409" y="475" on="0"/>
         <pt x="171" y="463" on="0"/>
@@ -10120,3 +10120,3 @@
         <pt x="197" y="163" on="0"/>
-        <pt x="147" y="-4" on="0"/>
+        <pt x="147" y="-5" on="0"/>
         <pt x="94" y="-77" on="1"/>
@@ -10546,3 +10546,3 @@
         <pt x="232" y="683" on="0"/>
-        <pt x="179" y="723" on="0"/>
+        <pt x="178" y="723" on="0"/>
         <pt x="118" y="760" on="0"/>
@@ -10861,3 +10861,3 @@
         <pt x="692" y="392" on="0"/>
-        <pt x="705" y="482" on="0"/>
+        <pt x="704" y="482" on="0"/>
         <pt x="716" y="578" on="0"/>
@@ -11238,3 +11238,3 @@
         <pt x="237" y="675" on="0"/>
-        <pt x="184" y="720" on="0"/>
+        <pt x="184" y="719" on="0"/>
         <pt x="123" y="762" on="0"/>
________________________ test_type1mm_inputs[zx-args0] _________________________

fname = 'zx', args = []

    @pytest.mark.parametrize('args', [[], ['U', '_500,500'], ['U', '_0,0', 'n']])
    @pytest.mark.parametrize('fname', ['zx', 'zy'])
    def test_type1mm_inputs(fname, args):
        fname2 = f'.{"".join(args)}' if args else ''
        actual_path = runner(CMD + ['-s', '-f', f'{fname}.pfb', '-o', '2'] + args)
        expected_path = get_expected_path(f'{fname}.dump2{fname2}.txt')
>       assert differ([expected_path, actual_path, '-s', '## Filename'])
E       AssertionError: assert False
E        +  where False = differ(['/home/abuild/rpmbuild/BUILD/afdko-3.4.0/tests/tx_data/expected_output/zx.dump2.txt', '/home/abuild/rpmbuild/BUILD/afdko-3.4.0/tmp/tmpuc6d1336', '-s', '## Filename'])

tests/tx_test.py:391: AssertionError
----------------------------- Captured stdout call -----------------------------
--- /home/abuild/rpmbuild/BUILD/afdko-3.4.0/tests/tx_data/expected_output/zx.dump2.txt
+++ /home/abuild/rpmbuild/BUILD/afdko-3.4.0/tmp/tmpuc6d1336
@@ -41,3 +41,3 @@
  337 620 move 405 616 434 579 447 541 curve 529 546 line 507 620 450 669 337
- 675 curve 337 750 line 287 750 line 287 675 line 126 670 81 594 81 519 curve
+ 675 curve 337 749 line 287 749 line 287 675 line 126 670 81 594 81 519 curve
  81 395 201 366 287 329 curve 287 67 line 222 71 177 100 151 155 curve 69 148
________________________ test_type1mm_inputs[zx-args1] _________________________

fname = 'zx', args = ['U', '_500,500']

    @pytest.mark.parametrize('args', [[], ['U', '_500,500'], ['U', '_0,0', 'n']])
    @pytest.mark.parametrize('fname', ['zx', 'zy'])
    def test_type1mm_inputs(fname, args):
        fname2 = f'.{"".join(args)}' if args else ''
        actual_path = runner(CMD + ['-s', '-f', f'{fname}.pfb', '-o', '2'] + args)
        expected_path = get_expected_path(f'{fname}.dump2{fname2}.txt')
>       assert differ([expected_path, actual_path, '-s', '## Filename'])
E       AssertionError: assert False
E        +  where False = differ(['/home/abuild/rpmbuild/BUILD/afdko-3.4.0/tests/tx_data/expected_output/zx.dump2.U_500,500.txt', '/home/abuild/rpmbuild/BUILD/afdko-3.4.0/tmp/tmpx232nklv', '-s', '## Filename'])

tests/tx_test.py:391: AssertionError
----------------------------- Captured stdout call -----------------------------
--- /home/abuild/rpmbuild/BUILD/afdko-3.4.0/tests/tx_data/expected_output/zx.dump2.U_500,500.txt
+++ /home/abuild/rpmbuild/BUILD/afdko-3.4.0/tmp/tmpx232nklv
@@ -6,3 +6,3 @@
 Weight              "SnapShotMM"
-FontBBox            {-141,-262,956,857}
+FontBBox            {-141,-262,955,857}
 XUID                {1,44278,20645,8847,25231,10813,500,500}
@@ -51,4 +51,4 @@
  666 714 hstem newhints 26 95 vstem 229 297 vstem 372 441 vstem 574 643 vstem
- -12 36 hstem 352 401 hstem 666 714 hstem 297 533 move 297 649 246 715 162 715
- curve 77 715 26 649 26 533 curve 26 419 78 352 162 352 curve 245 352 297 418
+ -12 36 hstem 352 401 hstem 666 714 hstem 297 533 move 297 649 246 714 162 714
+ curve 77 714 26 649 26 533 curve 26 419 78 352 162 352 curve 245 352 297 418
  297 532 curve newhints 26 95 vstem 372 441 vstem 574 643 vstem -12 36 hstem
@@ -832,3 +832,3 @@
  301 350 hstem 666 714 hstem newhints 26 95 vstem 229 297 vstem 352 401 hstem
- 666 714 hstem 297 533 move 297 649 246 715 162 715 curve 77 715 26 649 26 533
+ 666 714 hstem 297 533 move 297 649 246 714 162 714 curve 77 714 26 649 26 533
  curve 26 419 78 352 162 352 curve 245 352 297 418 297 532 curve newhints 26
________________________ test_type1mm_inputs[zy-args0] _________________________

fname = 'zy', args = []

    @pytest.mark.parametrize('args', [[], ['U', '_500,500'], ['U', '_0,0', 'n']])
    @pytest.mark.parametrize('fname', ['zx', 'zy'])
    def test_type1mm_inputs(fname, args):
        fname2 = f'.{"".join(args)}' if args else ''
        actual_path = runner(CMD + ['-s', '-f', f'{fname}.pfb', '-o', '2'] + args)
        expected_path = get_expected_path(f'{fname}.dump2{fname2}.txt')
>       assert differ([expected_path, actual_path, '-s', '## Filename'])
E       AssertionError: assert False
E        +  where False = differ(['/home/abuild/rpmbuild/BUILD/afdko-3.4.0/tests/tx_data/expected_output/zy.dump2.txt', '/home/abuild/rpmbuild/BUILD/afdko-3.4.0/tmp/tmp2kqr3bos', '-s', '## Filename'])

tests/tx_test.py:391: AssertionError
----------------------------- Captured stdout call -----------------------------
--- /home/abuild/rpmbuild/BUILD/afdko-3.4.0/tests/tx_data/expected_output/zy.dump2.txt
+++ /home/abuild/rpmbuild/BUILD/afdko-3.4.0/tmp/tmp2kqr3bos
@@ -1217,3 +1217,3 @@
  line 478 43 471 35 402 35 curve newhints 478 580 vstem 774 818 vstem 0 44
- hstem 233 277 hstem 347 391 hstem 665 709 hstem 402 0 line 916 0 line 950 160
+ hstem 233 277 hstem 347 391 hstem 665 709 hstem 402 0 line 915 0 line 950 160
  line 906 160 line 879 50 868 44 811 44 curve 608 44 line 588 44 580 48 580 86
@@ -1415,3 +1415,3 @@
  hstem 456 492 hstem 713 739 hstem 382 675 line 322 708 250 731 168 739 curve
- 132 713 line 201 700 264 681 317 649 curve 172 579 line 187 551 line 348 626
+ 132 713 line 201 700 264 681 317 649 curve 172 579 line 187 550 line 348 626
  line 381 601 411 571 433 534 curve 454 499 470 459 483 409 curve 479 408 line
@@ -1492,4 +1492,4 @@
  curve 183 222 line 453 266 move 199 266 line 317 602 line 321 602 line 343
- 819 move 506 764 line 523 796 line 343 891 line 340 891 line 160 796 line 177
- 764 line 341 819 line endchar}
+ 819 move 506 763 line 523 796 line 343 891 line 340 891 line 160 796 line 177
+ 763 line 341 819 line endchar}
 glyph[163] {Zcaron,-,
@@ -1721,4 +1721,4 @@
  674 curve 719 709 line 521 709 line 521 674 line 589 674 596 668 596 597
- curve 394 819 move 557 764 line 574 796 line 394 891 line 391 891 line 211
- 796 line 228 764 line 392 819 line endchar}
+ curve 394 819 move 557 763 line 574 796 line 394 891 line 391 891 line 211
+ 796 line 228 763 line 392 819 line endchar}
 glyph[185] {Ydieresis,-,
________________________ test_type1mm_inputs[zy-args1] _________________________

fname = 'zy', args = ['U', '_500,500']

    @pytest.mark.parametrize('args', [[], ['U', '_500,500'], ['U', '_0,0', 'n']])
    @pytest.mark.parametrize('fname', ['zx', 'zy'])
    def test_type1mm_inputs(fname, args):
        fname2 = f'.{"".join(args)}' if args else ''
        actual_path = runner(CMD + ['-s', '-f', f'{fname}.pfb', '-o', '2'] + args)
        expected_path = get_expected_path(f'{fname}.dump2{fname2}.txt')
>       assert differ([expected_path, actual_path, '-s', '## Filename'])
E       AssertionError: assert False
E        +  where False = differ(['/home/abuild/rpmbuild/BUILD/afdko-3.4.0/tests/tx_data/expected_output/zy.dump2.U_500,500.txt', '/home/abuild/rpmbuild/BUILD/afdko-3.4.0/tmp/tmp56o24lgv', '-s', '## Filename'])

tests/tx_test.py:391: AssertionError
----------------------------- Captured stdout call -----------------------------
--- /home/abuild/rpmbuild/BUILD/afdko-3.4.0/tests/tx_data/expected_output/zy.dump2.U_500,500.txt
+++ /home/abuild/rpmbuild/BUILD/afdko-3.4.0/tmp/tmp56o24lgv
@@ -223,3 +223,3 @@
  723 width 46 202 vstem 511 680 vstem -14 38 hstem 653 705 hstem 354 -14 move
- 471 -14 553 10 604 48 curve 657 86 680 140 680 196 curve 680 250 650 294 610
+ 471 -14 553 10 604 48 curve 656 86 680 140 680 196 curve 680 250 650 294 610
  327 curve 580 353 539 376 492 394 curve 492 397 line newhints 76 231 vstem
_______________________ test_dump_option[svg.svg-args6] ________________________

args = ['4'], font_filename = 'svg.svg'

    @pytest.mark.parametrize('args', [
        [],
        ['0'],
        ['dump', '0'],
        ['1'],
        ['2'],
        ['3'],
        ['4'],
        ['4', 'N'],
        ['5'],
        ['6'],
        ['6', 'd'],
        ['6', 'n'],
    ])
    @pytest.mark.parametrize('font_filename', ['type1.pfa', 'svg.svg'])
    def test_dump_option(args, font_filename):
        if any([arg in args for arg in ('4', '5', '6')]):
            skip = []
        else:
            skip = ['-s', '## Filename']
    
        head = font_filename.split('.')[0]
        midl = ''.join(args) if args else 'dump1'
        if 'dump' not in midl:
            midl = f'dump{midl}'
        exp_filename = f'{head}.{midl}.txt'
    
        opts = ['-o'] + args if args else []
    
        actual_path = runner(CMD + ['-s', '-f', font_filename] + opts)
        expected_path = get_expected_path(exp_filename)
>       assert differ([expected_path, actual_path] + skip)
E       AssertionError: assert False
E        +  where False = differ((['/home/abuild/rpmbuild/BUILD/afdko-3.4.0/tests/tx_data/expected_output/svg.dump4.txt', '/home/abuild/rpmbuild/BUILD/afdko-3.4.0/tmp/tmpzk9_9msf'] + []))

tests/tx_test.py:437: AssertionError
----------------------------- Captured stdout call -----------------------------
--- /home/abuild/rpmbuild/BUILD/afdko-3.4.0/tests/tx_data/expected_output/svg.dump4.txt
+++ /home/abuild/rpmbuild/BUILD/afdko-3.4.0/tmp/tmpzk9_9msf
@@ -5,3 +5,3 @@
 glyph[3] {gid00002,U+0020}
-glyph[4] {gid00003,U+E000}
-glyph[5] {gid00004,U+E001}
+glyph[4] {gid00003,U+E0004}
+glyph[5] {gid00004,U+E0014}
=============================== warnings summary ===============================
tests/ttfcomponentizer_test.py::test_run_with_output_path
tests/ttfcomponentizer_test.py::test_run_without_output_path
tests/ttfcomponentizer_test.py::test_get_glyph_names_mapping_names_from_lib
tests/ttfcomponentizer_test.py::test_get_glyph_names_mapping_names_from_goadb
tests/ttfcomponentizer_test.py::test_componentize
  /usr/lib/python3.8/site-packages/defcon/objects/font.py:149: DeprecationWarning: The 'formatVersion' attribute is deprecated; use the 'formatVersionTuple'
    self._ufoFormatVersion = reader.formatVersion

-- Docs: https://docs.pytest.org/en/latest/warnings.html
=========================== short test summary info ============================
FAILED tests/otf2ttf_test.py::test_convert[sans] - AssertionError: assert False
FAILED tests/otf2ttf_test.py::test_convert[serif] - AssertionError: assert False
FAILED tests/otf2ttf_test.py::test_convert[kanjicid] - AssertionError: assert...
FAILED tests/tx_test.py::test_type1mm_inputs[zx-args0] - AssertionError: asse...
FAILED tests/tx_test.py::test_type1mm_inputs[zx-args1] - AssertionError: asse...
FAILED tests/tx_test.py::test_type1mm_inputs[zy-args0] - AssertionError: asse...
FAILED tests/tx_test.py::test_type1mm_inputs[zy-args1] - AssertionError: asse...
FAILED tests/tx_test.py::test_dump_option[svg.svg-args6] - AssertionError: as...
= 8 failed, 1319 passed, 6 skipped, 6 xfailed, 5 warnings in 776.40s (0:12:56) =
@bnavigator
Copy link

bnavigator commented Apr 12, 2022

Still happening in 3.8.2:

[  203s] =================================== FAILURES ===================================
[  203s] ________________________ test_type1mm_inputs[zx-args1] _________________________
[  203s] 
[  203s] fname = 'zx', args = ['U', '_500,500']
[  203s] 
[  203s]     @pytest.mark.parametrize('args', [[], ['U', '_500,500'], ['U', '_0,0', 'n']])
[  203s]     @pytest.mark.parametrize('fname', ['zx', 'zy'])
[  203s]     def test_type1mm_inputs(fname, args):
[  203s]         fname2 = f'.{"".join(args)}' if args else ''
[  203s]         actual_path = runner(CMD + ['-s', '-f', f'{fname}.pfb', '-o', '2'] + args)
[  203s]         expected_path = get_expected_path(f'{fname}.dump2{fname2}.txt')
[  203s] >       assert differ([expected_path, actual_path, '-s', '## Filename'])
[  203s] E       AssertionError: assert False
[  203s] E        +  where False = differ(['/home/abuild/rpmbuild/BUILD/afdko-3.8.2/tests/tx_data/expected_output/zx.dump2.U_500,500.txt', '/home/abuild/rpmbuild/BUILD/afdko-3.8.2/tmp/tmpw1g3pi47', '-s', '## Filename'])
[  203s] 
[  203s] tests/tx_test.py:391: AssertionError
[  203s] ----------------------------- Captured stdout call -----------------------------
[  203s] --- /home/abuild/rpmbuild/BUILD/afdko-3.8.2/tests/tx_data/expected_output/zx.dump2.U_500,500.txt
[  203s] +++ /home/abuild/rpmbuild/BUILD/afdko-3.8.2/tmp/tmpw1g3pi47
[  203s] @@ -6,3 +6,3 @@
[  203s]  Weight              "SnapShotMM"
[  203s] -FontBBox            {-141,-262,956,857}
[  203s] +FontBBox            {-141,-262,955,857}
[  203s]  XUID                {1,44278,20645,8847,25231,10813,500,500}
[  203s] @@ -50,15 +50,15 @@
[  203s]   669 width 26 95 vstem 372 441 vstem 574 643 vstem -12 36 hstem 352 401 hstem
[  203s] - 666 714 hstem newhints 26 95 vstem 229 297 vstem 372 441 vstem 574 643 vstem
[  203s] - -12 36 hstem 352 401 hstem 666 714 hstem 297 533 move 297 649 246 714 162 714
[  203s] + 666 715 hstem newhints 26 95 vstem 229 297 vstem 372 441 vstem 574 643 vstem
[  203s] + -12 36 hstem 352 401 hstem 666 715 hstem 297 533 move 297 649 246 714 162 714
[  203s]   curve 77 714 26 649 26 533 curve 26 419 78 352 162 352 curve 245 352 297 418
[  203s]   297 532 curve newhints 26 95 vstem 372 441 vstem 574 643 vstem -12 36 hstem
[  203s] - 352 401 hstem 666 714 hstem 548 711 move 477 711 line 119 -8 line 191 -8 line
[  203s] + 352 401 hstem 666 715 hstem 548 711 move 477 711 line 119 -8 line 191 -8 line
[  203s]   newhints 26 95 vstem 229 297 vstem 372 441 vstem 574 643 vstem -12 36 hstem
[  203s] - 352 401 hstem 666 714 hstem 162 401 move 118 401 95 454 95 533 curve 95 613
[  203s] + 352 401 hstem 666 715 hstem 162 401 move 118 401 95 454 95 533 curve 95 613
[  203s]   118 666 162 666 curve 206 666 229 613 229 533 curve 229 455 207 401 163 401
[  203s]   curve newhints 26 95 vstem 372 441 vstem 574 643 vstem -12 36 hstem 301 350
[  203s] - hstem 352 401 hstem 666 714 hstem 643 169 move 643 284 592 350 508 350 curve
[  203s] + hstem 352 401 hstem 666 715 hstem 643 169 move 643 284 592 350 508 350 curve
[  203s]   423 350 372 284 372 169 curve 372 55 423 -12 508 -12 curve 591 -12 643 54 643
[  203s]   168 curve newhints 26 95 vstem 372 441 vstem 574 643 vstem -12 36 hstem 301
[  203s] - 350 hstem 352 401 hstem 666 714 hstem 508 36 move 463 36 441 90 441 169 curve
[  203s] + 350 hstem 352 401 hstem 666 715 hstem 508 36 move 463 36 441 90 441 169 curve
[  203s]   441 248 463 301 508 301 curve 552 301 574 248 574 169 curve 574 90 553 36 509
[  203s] @@ -831,7 +831,7 @@
[  203s]   981 width 26 95 vstem 372 441 vstem 684 753 vstem 886 955 vstem -12 36 hstem
[  203s] - 301 350 hstem 666 714 hstem newhints 26 95 vstem 229 297 vstem 352 401 hstem
[  203s] - 666 714 hstem 297 533 move 297 649 246 714 162 714 curve 77 714 26 649 26 533
[  203s] + 301 350 hstem 666 715 hstem newhints 26 95 vstem 229 297 vstem 352 401 hstem
[  203s] + 666 715 hstem 297 533 move 297 649 246 714 162 714 curve 77 714 26 649 26 533
[  203s]   curve 26 419 78 352 162 352 curve 245 352 297 418 297 532 curve newhints 26
[  203s] - 95 vstem -12 36 hstem 666 714 hstem 548 711 move 477 711 line 119 -8 line 191
[  203s] - -8 line newhints 26 95 vstem 229 297 vstem 352 401 hstem 666 714 hstem 162
[  203s] + 95 vstem -12 36 hstem 666 715 hstem 548 711 move 477 711 line 119 -8 line 191
[  203s] + -8 line newhints 26 95 vstem 229 297 vstem 352 401 hstem 666 715 hstem 162
[  203s]   401 move 118 401 95 454 95 533 curve 95 613 118 666 162 666 curve 206 666 229
[  203s] ________________________ test_type1mm_inputs[zy-args1] _________________________
[  203s] 
[  203s] fname = 'zy', args = ['U', '_500,500']
[  203s] 
[  203s]     @pytest.mark.parametrize('args', [[], ['U', '_500,500'], ['U', '_0,0', 'n']])
[  203s]     @pytest.mark.parametrize('fname', ['zx', 'zy'])
[  203s]     def test_type1mm_inputs(fname, args):
[  203s]         fname2 = f'.{"".join(args)}' if args else ''
[  203s]         actual_path = runner(CMD + ['-s', '-f', f'{fname}.pfb', '-o', '2'] + args)
[  203s]         expected_path = get_expected_path(f'{fname}.dump2{fname2}.txt')
[  203s] >       assert differ([expected_path, actual_path, '-s', '## Filename'])
[  203s] E       AssertionError: assert False
[  203s] E        +  where False = differ(['/home/abuild/rpmbuild/BUILD/afdko-3.8.2/tests/tx_data/expected_output/zy.dump2.U_500,500.txt', '/home/abuild/rpmbuild/BUILD/afdko-3.8.2/tmp/tmp9vs5mxl1', '-s', '## Filename'])
[  203s] 
[  203s] tests/tx_test.py:391: AssertionError
[  203s] ----------------------------- Captured stdout call -----------------------------
[  203s] --- /home/abuild/rpmbuild/BUILD/afdko-3.8.2/tests/tx_data/expected_output/zy.dump2.U_500,500.txt
[  203s] +++ /home/abuild/rpmbuild/BUILD/afdko-3.8.2/tmp/tmp9vs5mxl1
[  203s] @@ -242,3 +242,3 @@
[  203s]  glyph[25] {nine,0x39,
[  203s] - 723 width 45 214 vstem 505 671 vstem -14 38 hstem 250 305 hstem 653 705 hstem
[  203s] + 723 width 45 214 vstem 504 671 vstem -14 38 hstem 250 305 hstem 653 705 hstem
[  203s]   45 472 move 45 404 71 347 120 307 curve 164 272 228 250 312 250 curve 396 250
[  203s] @@ -460,3 +460,3 @@
[  203s]   429 -167 566 -202 657 -202 curve 718 -202 765 -186 801 -169 curve 428 670
[  203s] - move 489 670 538 650 575 608 curve 615 562 637 485 637 355 curve 637 247 618
[  203s] + move 489 670 538 650 575 608 curve 615 562 637 485 637 354 curve 637 247 618
[  203s]   160 577 106 curve 543 64 491 39 428 39 curve 366 39 314 64 280 106 curve 240
[  203s] @@ -914,3 +914,3 @@
[  203s]  glyph[99] {yen,0xA5,
[  203s] - 723 width 25 285 vstem 287 453 vstem 562 700 vstem 0 48 hstem 146 195 hstem
[  203s] + 723 width 25 285 vstem 287 452 vstem 562 700 vstem 0 48 hstem 146 195 hstem
[  203s]   252 301 hstem 644 692 hstem 287 313 move 287 301 line 91 301 line 91 252 line
[  203s] @@ -1254,9 +1254,9 @@
[  203s]  glyph[140] {Oslash,0xE9,
[  203s] - 857 width 47 220 vstem 639 811 vstem -14 39 hstem 670 723 hstem 178 57 move
[  203s] + 857 width 46 220 vstem 639 811 vstem -14 39 hstem 670 723 hstem 178 57 move
[  203s]   241 12 322 -14 428 -14 curve 557 -14 654 19 718 85 curve 776 144 811 232 811
[  203s] - 355 curve newhints 47 220 vstem 639 811 vstem -14 39 hstem 690 topedge 811
[  203s] - 461 779 544 727 604 curve 807 690 line newhints 47 220 vstem 639 811 vstem 19
[  203s] + 355 curve newhints 46 220 vstem 639 811 vstem -14 39 hstem 690 topedge 811
[  203s] + 461 779 544 727 604 curve 807 690 line newhints 46 220 vstem 639 811 vstem 19
[  203s]   bottomedge 670 723 hstem 765 734 line 679 649 line 614 699 528 723 428 723
[  203s]   curve 322 723 231 697 163 642 curve 89 580 46 483 46 355 curve 46 254 70 171
[  203s] - 131 102 curve 53 19 line newhints 47 220 vstem 639 811 vstem -14 39 hstem 670
[  203s] + 131 102 curve 53 19 line newhints 46 220 vstem 639 811 vstem -14 39 hstem 670
[  203s]   723 hstem 95 -25 line 254 218 move 219 280 212 397 238 495 curve 264 592 327
[  203s] @@ -1555,3 +1555,3 @@
[  203s]  glyph[169] {logicalnot,-,
[  203s] - 571 width 449 521 vstem 309 380 hstem 520 380 move 48 380 line 48 309 line
[  203s] + 571 width 449 520 vstem 309 380 hstem 520 380 move 48 380 line 48 309 line
[  203s]   449 309 line 449 130 line 520 130 line endchar}
[  203s] =========================== short test summary info ============================
[  203s] FAILED tests/tx_test.py::test_type1mm_inputs[zx-args1] - AssertionError: asse...
[  203s] FAILED tests/tx_test.py::test_type1mm_inputs[zy-args1] - AssertionError: asse...
[  203s] ======= 2 failed, 1299 passed, 4 skipped, 8 xfailed in 196.35s (0:03:16) =======

bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this issue Sep 27, 2022
https://build.opensuse.org/request/show/1006297
by user dgarcia + RBrownFactory
- Disable more tests that fails for i586, test_dump_option
- Avoid test_type1mm_inputs tests because it still fails for i586
  gh#adobe-type-tools/afdko#1163
- Update to v3. Update to v3.9.1
  * [CMake] Link LibXML2 statically for Linux for bug fix (#1527)
  * [makeotf][tx] Fix some linux compile problems with "bool" (#1524)
  * [tx] Replace UFO lib.plist parsing with libxml2 (#1523)
- 3.9.0 (released 2022-06-23)
  * [tx] Replace UFO fontinfo.plist parsing with libxml2 (#1515, #1517, #1518, #1519)
  * [makeotf] Copy va_list for second use (and add va_end's to avoid leaking) (#1512)
  * [requirements] updated dependencies
- 3.8.3 (released 2022-05-09)
  * [requirements] updated dependencies
  * [docs] Add links to previously opened Windows build issues (#1505)
  * [docs] Fix line wrap in fe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants