summaryrefslogtreecommitdiff
path: root/tests-clay/clay_main.c
Commit message (Collapse)AuthorAgeFilesLines
* cmake: generate clay mainClemens Buchacher2011-12-291-1146/+0
| | | | | | The clay test suite files clay.h and clay_main.c are generated by the clay python script. Teach CMake about this dependency and remove the generated files from the repository.
* refs: Fix double freeVicent Martí2011-12-251-2/+11
| | | | Includes relevant Clay test
* remote: add test to retrieve the advertised references from a local ↵nulltoken2011-12-211-2/+11
| | | | repository and fix related implementation
* Update to Clay 0.10.0Vicent Marti2011-12-151-6/+20
| | | | Comes with support for global events; this fixes #496.
* Allow git_buf_joinpath to accept self-joinsRussell Belfer2011-12-141-8/+9
| | | | | | | | | | | | It was not safe for git_buf_joinpath to be used with a pointer into the buf itself because a reallocation could invalidate the input parameter that pointed into the buffer. This patch makes it safe to self join, at least for the leading input to the join, which is the common "append" case for self joins. Also added unit tests to explicitly cover this case. This should actually fix #511
* commit: add test to ensure predictability of generation of commit, tree and ↵nulltoken2011-12-141-9/+9
| | | | blob object ids
* Merge remote-tracking branch 'nulltoken/topic/oid-generation' into developmentVicent Marti2011-12-141-2/+11
|\ | | | | | | | | | | Conflicts: tests-clay/clay.h tests-clay/clay_main.c
| * tree: add test to ensure predictability of generation of object idsnulltoken2011-12-041-2/+11
| |
* | Merge remote-tracking branch 'arrbee/git-buf-for-paths' into developmentVicent Marti2011-12-091-3/+4
|\ \ | | | | | | | | | | | | Conflicts: tests-clay/clay_main.c
| * | Use git_buf for path storage instead of stack-based buffersRussell Belfer2011-12-071-3/+4
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This converts virtually all of the places that allocate GIT_PATH_MAX buffers on the stack for manipulating paths to use git_buf objects instead. The patch is pretty careful not to touch the public API for libgit2, so there are a few places that still use GIT_PATH_MAX. This extends and changes some details of the git_buf implementation to add a couple of extra functions and to make error handling easier. This includes serious alterations to all the path.c functions, and several of the fileops.c ones, too. Also, there are a number of new functions that parallel existing ones except that use a git_buf instead of a stack-based buffer (such as git_config_find_global_r that exists alongsize git_config_find_global). This also modifies the win32 version of p_realpath to allocate whatever buffer size is needed to accommodate the realpath instead of hardcoding a GIT_PATH_MAX limit, but that change needs to be tested still.
* | clay: add tests for tree diff'ingCarlos Martín Nieto2011-12-031-2/+14
|/ | | | | Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk> Signed-off-by: Vicent Marti <tanoku@gmail.com>
* Optimized of git_buf_join.Russell Belfer2011-11-301-3/+4
| | | | | | | This streamlines git_buf_join and removes the join-append behavior, opting instead for a very compact join-replace of the git_buf contents. The unit tests had to be updated to remove the join-append tests and have a bunch more exhaustive tests added.
* clay: Add buffer testsVicent Marti2011-11-291-2/+19
|
* repository: Change ownership semanticsVicent Marti2011-11-261-2/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The ownership semantics have been changed all over the library to be consistent. There are no more "borrowed" or duplicated references. Main changes: - `git_repository_open2` and `3` have been dropped. - Added setters and getters to hotswap all the repository owned objects: `git_repository_index` `git_repository_set_index` `git_repository_odb` `git_repository_set_odb` `git_repository_config` `git_repository_set_config` `git_repository_workdir` `git_repository_set_workdir` Now working directories/index files/ODBs and so on can be hot-swapped after creating a repository and between operations. - All these objects now have proper ownership semantics with refcounting: they all require freeing after they are no longer needed (the repository always keeps its internal reference). - Repository open and initialization has been updated to keep in mind the configuration files. Bare repositories are now always detected, and a default config file is created on init. - All the tests affected by these changes have been dropped from the old test suite and ported to the new one.
* config: test saving config to new fileCarlos Martín Nieto2011-11-261-2/+11
|
* filebuf: add GIT_FILEBUF_INIT and protect multiple opens and cleanupsRussell Belfer2011-11-221-3/+6
| | | | | | | | Update all stack allocations of git_filebuf to use GIT_FILEBUF_INIT and make git_filebuf_open and git_filebuf_cleanup safe to be called multiple times on the same buffer. Signed-off-by: Vicent Marti <tanoku@gmail.com>
* clay: Merge manually @leto's tests from #485Vicent Marti2011-11-221-2/+12
| | | | | This uses the new Clay code. As you can see, the diff is minimal... It works!
* Add test for renaming a file and adding it to the indexCarlos Martín Nieto2011-11-181-2/+11
| | | | Thanks to Emeric.
* clay: Bump to 0.9.0, add TAP supportVicent Marti2011-11-181-262/+340
| | | | | Comes with schu's stress tests for config files. Hopefully the diffs will stay minimal from now on.
* tests-clay: move t01-rawobj.c to clayschu2011-10-241-60/+138
| | | | Signed-off-by: schu <schu-github@schulog.org>
* tree: Add git_tree_frompath() which, given a relative path to a tree entry, ↵nulltoken2011-10-131-10/+19
| | | | retrieves the tree object containing this tree entry
* oid: Add git_oid_streq() which checks if an oid and an hex formatted string ↵nulltoken2011-10-131-57/+64
| | | | are equal
* tests-clay: update clayschu2011-10-071-52/+60
| | | | | | | | The clay script didn't match the latest version from upstream. Additionaly, add core/strtol.c to complete porting the core tests to clay. Signed-off-by: schu <schu-github@schulog.org>
* clay: Fix compilation under MSVCVicent Marti2011-10-011-7/+9
|
* Update ClayVicent Marti2011-09-281-51/+10
|
* Revert changes to clayPaul Betts2011-09-221-4/+1
|
* Rewrite getenv to use Win32 version on WindowsPaul Betts2011-09-211-1/+4
|
* Fix clay under MinGWVicent Marti2011-09-211-35/+43
|
* Add remotes test to clayCarlos Martín Nieto2011-09-191-24/+34
| | | | Signed-off-by: Carlos Martín Nieto <carlos@cmartin.tk>
* Tabify everythingVicent Marti2011-09-191-52/+52
| | | | | | There were quite a few places were spaces were being used instead of tabs. Try to catch them all. This should hopefully not break anything. Except for `git blame`. Oh well.
* Fix Clay compilation under Win32Vicent Marti2011-09-161-10/+21
|
* Regenerate test suiteVicent Marti2011-09-161-4/+4
|
* Add sample "Status" clay testsVicent Marti2011-09-161-47/+284
|
* Come out and ClayVicent Marti2011-09-151-0/+531