Giter VIP home page Giter VIP logo

diffoscope's People

Contributors

amurzeau avatar anthraxx avatar brettcs avatar ceridwen avatar danielshahaf avatar dkg avatar emaste avatar glandium avatar grahamc avatar h01ger avatar helmutg avatar hw42 avatar infinity0 avatar jrtc27 avatar jwnx avatar lamby avatar lunar-debian avatar mapreri avatar marmarek avatar milena-rosa avatar neverpanic avatar nomeata avatar pabs3 avatar raimue avatar reinerh avatar satyamz avatar siamezzze avatar vagrantc avatar vibhu18116 avatar yzgyyang avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

diffoscope's Issues

1 case in test_git.py failed on FreeBSD

tests/comparators/test_git.py::test_diff FAILED
...
-  Device ID: (0, 2054)
+ Device ID: (8, 6)
...
-  Device ID: (0, 2054)
+ Device ID: (8, 6)

The reason being that the expected output assumed a "Device ID" which is not correct on FreeBSD. See a similar issue here: #1

2 cases in test_device.py failed on FreeBSD

tests/comparators/test_device.py::test_diff FAILED
tests/comparators/test_device.py::test_diff_reverse FAILED

The reason being that the expected output assumed that /dev/null should always have .major:1 .minor:3, however, in FreeBSD,

➜  ~ python3
Python 3.6.2 (default, Jul 18 2017, 01:40:45) 
[GCC 4.2.1 Compatible FreeBSD Clang 4.0.0 (tags/RELEASE_400/final 297347)] on freebsd12
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> st = os.lstat('/dev/null')
>>> os.major(st.st_rdev)
0
>>> os.minor(st.st_rdev)
14

test_num_items fails

test_num_items

differences = []

    @skip_unless_tools_exist('nm')
    def test_num_items(differences):
>       assert len(differences) == 4
E       assert 0 == 4
E        +  where 0 = len([])

tests/comparators/test_rlib.py:74: AssertionError

ISO(s) from the test suite don't satisfy the expected output

Diffoscope test cases:

  • test_iso9660_content
  • test_iso9660_rockridge

failed on my both FreeBSD (with cdrtools) and Arch (with cdrkit - genisoimage). Is it true that in fact the expected outputs are wrong?

Here's the info from the tests/data/test1.iso and tests/data/test2.iso:

✗ isoinfo -l -i test1.iso
Setting input-charset to 'UTF-8' from locale.

Directory listing of /
dr-xr-xr-x   1    0    0       2048 Jun 24 2015 [     23 02] . 
dr-xr-xr-x   1    0    0       2048 Jun 24 2015 [     23 02] .. 
-r-xr-xr-x   1    0    0          0 Jun 24 2015 [     25 00] LINK.;1 
-r-xr-xr-x   1    0    0          0 Jun 24 2015 [     25 00] NULL.;1 
-r-xr-xr-x   1    0    0        446 Jun 24 2015 [     25 00] TEXT.;1 

✗ isoinfo -l -i test2.iso
Setting input-charset to 'UTF-8' from locale.

Directory listing of /
dr-xr-xr-x   1    0    0       2048 Jun 24 2015 [     23 02] . 
dr-xr-xr-x   1    0    0       2048 Jun 24 2015 [     23 02] .. 
-r-xr-xr-x   1    0    0          0 Jun 24 2015 [     25 00] LINK.;1 
-r-xr-xr-x   1    0    0          0 Jun 24 2015 [     25 00] NULL.;1 
-r-xr-xr-x   1    0    0        671 Jun 24 2015 [     25 00] TEXT.;1 

However, in the expected output:

✗ cat iso9660_content_expected_diff 
@@ -1,7 +1,7 @@
 
 Directory listing of /
 d---------   0    0    0            2048 Jun 24 2015 [     23 02]  . 
 d---------   0    0    0            2048 Jun 24 2015 [     23 02]  .. 
 ----------   0    0    0               0 Jun 24 2015 [     25 00]  LINK.;1 
 ----------   0    0    0               0 Jun 24 2015 [     25 00]  NULL.;1 
-----------   0    0    0             446 Jun 24 2015 [     25 00]  TEXT.;1 
+----------   0    0    0             671 Jun 24 2015 [     25 00]  TEXT.;1 

@mapreri @infinity0

Tests run significantly slower on FreeBSD than on other platforms

I ran the test suite on both:

Company computer:
i5-3450 8G SSD
FreeBSD 12-CURRENT

My laptop:
i7-5500U 16G SSD
Arch Linux 201706

It takes 260s for the suite to finish on FreeBSD, and just 18s on my Arch Linux.

Will run the suite again with --durations=20 (list 20 slowest cases) and post the results here.
@emaste

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.