libgit2/tests-clar
Russell Belfer 9e35d7fd6e Fix bugs in UTF-8 <-> UTF-16 conversion
The function to convert UTF-16 to UTF-8 was only allocating a
buffer of wcslen(utf16str) bytes for the UTF-8 string, but that
is not sufficient if you have multibyte characters, and so when
those occured, the conversion was failing.  This updates the
conversion functions to use the Win APIs to calculate the correct
buffer lengths.

Also fixes a comparison in the unit tests that would fail if
you did not have a particular environment variable set.
2012-05-24 13:44:24 -07:00
..
attr global: Fix unit tests after reordering 2012-05-18 01:25:57 +02:00
buf Update test suite 2012-05-02 16:14:30 -07:00
commit errors: Rename the generic return codes 2012-05-18 01:26:26 +02:00
config errors: Rename error codes 2012-05-18 01:48:50 +02:00
core Fix bugs in UTF-8 <-> UTF-16 conversion 2012-05-24 13:44:24 -07:00
diff Ranged iterators and rewritten git_status_file 2012-05-15 14:34:15 -07:00
index errors: Rename error codes 2012-05-18 01:48:50 +02:00
network errors: Rename error codes 2012-05-18 01:48:50 +02:00
notes errors: Rename error codes 2012-05-18 01:48:50 +02:00
object errors: Rename error codes 2012-05-18 01:48:50 +02:00
odb clar: Fix warning 2012-05-16 19:24:35 +02:00
refs Merge pull request #710 from libgit2/breaking-changes 2012-05-18 13:53:38 -07:00
repo errors: Rename error codes 2012-05-18 01:48:50 +02:00
resources Fix status for files under ignored dirs 2012-05-16 17:08:59 -07:00
revwalk errors: Rename error codes 2012-05-18 01:48:50 +02:00
status errors: Rename error codes 2012-05-18 01:48:50 +02:00
threads t13-threads.c ported. 2012-03-30 13:05:54 -07:00
clar Fixed mode on clar 2012-05-10 11:15:37 -07:00
clar_helpers.c compat: make p_open able to accept optional mode when passing the O_CREAT flag 2012-05-07 12:18:54 +02:00
clar_libgit2.h clar helper: don't dereference giterr_last() if it's NULL 2012-05-07 11:29:10 +02:00
README.md Rename the Clay test suite to Clar 2012-01-24 20:35:15 -08:00

Writing Clar tests for libgit2

For information on the Clar testing framework and a detailed introduction please visit:

https://github.com/tanoku/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.