tree: baed0e3e36b053b925a88898f848b16caf108227 [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. describe/
  13. diff/
  14. fetchhead/
  15. filter/
  16. graph/
  17. index/
  18. merge/
  19. network/
  20. notes/
  21. object/
  22. odb/
  23. online/
  24. pack/
  25. path/
  26. rebase/
  27. refs/
  28. repo/
  29. reset/
  30. resources/
  31. revert/
  32. revwalk/
  33. stash/
  34. status/
  35. stress/
  36. structinit/
  37. submodule/
  38. threads/
  39. trace/
  40. transport/
  41. clar.c
  42. clar.h
  43. clar_libgit2.c
  44. clar_libgit2.h
  45. generate.py
  46. main.c
  47. README.md
  48. 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.