• Show log

    Commit

  • Hash : ffd264d9
    Author : Patrick Steinhardt
    Date : 2017-05-03T14:51:23

    tests: repo: fix repo discovery tests on overlayfs
    
    Debian and Ubuntu often use schroot to build their DEB packages in a
    controlled environment. Depending on how schroot is configured, our
    tests regarding repository discovery break due to not being able to find
    the repositories anymore. It turns out that these errors occur when the
    schroot is configured to use an overlayfs on the directory structures.
    
    The reason for this failure is that we usually refrain from discovering
    repositories across devices. But unfortunately, overlayfs does not have
    consistent device identifiers for all its files but will instead use the
    device number of the filesystem the file stems from. So whenever we
    cross boundaries between the upper and lower layer of the overlay, we
    will fail to properly detect the repository and bail out.
    
    This commit fixes the issue by enabling cross-device discovery in our
    tests. While it would be preferable to have this turned off, it probably
    won't do much harm anyway as we set up our tests in a temporary location
    outside of the parent repository.
    

  • README.md

  • Writing Clar tests for libgit2

    For information on the Clar testing framework and a detailed introduction please visit:

    https://github.com/vmg/clar

    • Write your modules and tests. Use good, meaningful names.

    • Make sure you actually build the tests by setting:

        cmake -DBUILD_CLAR=ON build/
    • Test:

        ./build/libgit2_clar
    • Make sure everything is fine.

    • Send your pull request. That’s it.