• Show log

    Commit

  • Hash : 57f86c22
    Author : Edward Thomson
    Date : 2018-08-26T15:11:21

    clar: refactor explicitly run test behavior
    
    Previously, supplying `-s` to explicitly enable some test(s) would run
    the tests immediately from the argument parser.  This forces us to set
    up the entire clar environment (for example: sandboxing) before argument
    parsing takes place.
    
    Refactor the behavior of `-s` to add the explicitly chosen tests to a
    list that is executed later.  This untangles the argument parsing from
    the setup lifecycle, allowing us to use the arguments to perform the
    setup.
    
    (cherry picked from commit 90753a96515f85e2d0e79a16d3a06ba5b363c68e)
    

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