tree: 023bbd0dc1f3d2a85b53ac5796e87f31afa46300 [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. index/
  15. merge/
  16. network/
  17. notes/
  18. object/
  19. odb/
  20. online/
  21. pack/
  22. refs/
  23. repo/
  24. reset/
  25. resources/
  26. revwalk/
  27. stash/
  28. status/
  29. stress/
  30. submodule/
  31. threads/
  32. trace/
  33. clar.c
  34. clar.h
  35. clar_libgit2.c
  36. clar_libgit2.h
  37. generate.py
  38. main.c
  39. README.md
  40. 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.