• Show log

    Commit

  • Hash : e29e8029
    Author : Patrick Steinhardt
    Date : 2017-04-10T10:31:22

    tests: odb: make hash of fake backend configurable
    
    In the odb::backend::nonrefreshing test suite, we set up a fake backend
    so that we are able to determine if backend functions are called
    correctly. During the setup, we also parse an OID which is later on used
    to read out the pseudo-object. While this procedure works right now, it
    will create problems later when we implement hash verification for
    looked up objects. The current OID ("deadbeef") will not match the hash
    of contents we give back to the ODB layer and thus cannot be verified.
    
    Make the hash configurable so that we can simply switch the returned for
    single tests.
    

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