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