tree: 048c963ea02c36a021f5f4128d993785b1ef639b [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. path/
  25. refs/
  26. repo/
  27. reset/
  28. resources/
  29. revert/
  30. revwalk/
  31. stash/
  32. status/
  33. stress/
  34. structinit/
  35. submodule/
  36. threads/
  37. trace/
  38. clar.c
  39. clar.h
  40. clar_libgit2.c
  41. clar_libgit2.h
  42. generate.py
  43. main.c
  44. README.md
  45. 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.