tree: cbf6ced49fc43b3a7b8eed423e6b1573271caf94 [path history] [tgz]
  1. attr/
  2. blame/
  3. buf/
  4. checkout/
  5. cherrypick/
  6. clar/
  7. clone/
  8. commit/
  9. config/
  10. core/
  11. date/
  12. diff/
  13. fetchhead/
  14. filter/
  15. graph/
  16. index/
  17. merge/
  18. network/
  19. notes/
  20. object/
  21. odb/
  22. online/
  23. pack/
  24. refs/
  25. repo/
  26. reset/
  27. resources/
  28. revert/
  29. revwalk/
  30. stash/
  31. status/
  32. stress/
  33. structinit/
  34. submodule/
  35. threads/
  36. trace/
  37. clar.c
  38. clar.h
  39. clar_libgit2.c
  40. clar_libgit2.h
  41. generate.py
  42. main.c
  43. README.md
  44. valgrind-supp-mac.txt
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.