tree: 5de80ccb1adbfd4217f513a5bed631df70127204 [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. perf/
  27. rebase/
  28. refs/
  29. remote/
  30. repo/
  31. reset/
  32. resources/
  33. revert/
  34. revwalk/
  35. stash/
  36. status/
  37. stress/
  38. submodule/
  39. threads/
  40. trace/
  41. transport/
  42. win32/
  43. clar.c
  44. clar.h
  45. clar_libgit2.c
  46. clar_libgit2.h
  47. clar_libgit2_timer.c
  48. clar_libgit2_timer.h
  49. clar_libgit2_trace.c
  50. clar_libgit2_trace.h
  51. generate.py
  52. generate_crlf.sh
  53. main.c
  54. README.md
  55. 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.