• Show log

    Commit

  • Hash : e4ac4000
    Author : Edward Thomson
    Date : 2018-07-02T12:57:56

    checkout tests: test symlinks based on support, not platform
    
    When testing whether symlinks are correctly checked out, examine the
    `core.symlinks` configuration option to determine if symlinks are
    supported in a repository, don't simply assume that Windows means that
    symbolic links are not supported.
    
    Further, when testing the expected default behavior of `core.symlinks`,
    test the filesystem's support to determine if symlinks are supported.
    
    Finally, ensure that `core.symlinks=true` fails on a system where
    symlinks are actually not supported.  This aligns with the behavior of
    Git for Windows.
    

  • 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.