tree: 73759d81ac1edfc3d4ab5b67fb946cd645c7a83b [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. revert/
  27. revwalk/
  28. stash/
  29. status/
  30. stress/
  31. submodule/
  32. threads/
  33. trace/
  34. clar.c
  35. clar.h
  36. clar_libgit2.c
  37. clar_libgit2.h
  38. generate.py
  39. main.c
  40. README.md
  41. 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.