summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
| * | Add tests for detached and orphanCarlos Martín Nieto2011-06-281-0/+42
| |/ | | | | | | Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
* | Remove redundant methods from the APIVicent Marti2011-06-283-65/+53
|/ | | | | | | | | | | | | | | A bunch of redundant methods have been removed from the external API. - All the reference/tag creation methods with `_f` are gone. The force flag is now passed as an argument to the normal create methods. - All the different commit creation methods are gone; commit creation now always requires a `git_commit` pointer for parents and a `git_tree` pointer for tree, to ensure that corrupted commits cannot be generated. - All the different tag creation methods are gone; tag creation now always requires a `git_object` pointer to ensure that tags are not created to inexisting objects.
* refs: Do not overflow when normalizing refnamesVicent Marti2011-06-231-5/+5
|
* Add test case checking GIT_FILEBUF_APPENDschu2011-06-201-0/+18
| | | | Signed-off-by: schu <schu-github@schulog.org>
* config: Fix sorting of repository config filesVicent Marti2011-06-181-2/+1
|
* config: Fix compilation in MSVCVicent Marti2011-06-181-8/+1
|
* config: Cleanup external APIVicent Marti2011-06-181-21/+14
| | | | | Do not mess with environment variables anymore. The new external API has more helper methods, and everything is explicit.
* Add fall-back support to the configurationCarlos Martín Nieto2011-06-172-0/+22
| | | | | | | If a config has several files, we need to check all of them before we can say that a variable doesn't exist. Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
* Add a test for overriding configCarlos Martín Nieto2011-06-173-0/+28
| | | | | | The repo's configuration should take precedence over the global one. Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
* Plug an index leakCarlos Martín Nieto2011-06-161-0/+1
| | | | | | The test wasn't updated when repos lost ownership of indices Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
* Plug leaks in the repo discovery testsCarlos Martín Nieto2011-06-161-0/+2
| | | | Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
* oid: Rename methodsVicent Marti2011-06-169-79/+79
| | | | | Yeah. Finally. Fuck the old names, this ain't POSIX and they don't make any sense at all.
* Merge pull request #248 from carlosmn/configVicent Martí2011-06-152-0/+24
|\ | | | | Implement config writing
| * Test replacing a valueCarlos Martín Nieto2011-06-142-0/+24
| | | | | | | | | | | | Add a test to check that value replacement works. Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
* | Merge pull request #261 from Romain-Geissler/discovery-path-v2Vicent Martí2011-06-151-1/+1
|\ \ | | | | | | Fix: GIT_PATH_PATH_SEPARATOR is now a semi-colon under Windows.
| * | Fix: GIT_PATH_PATH_SEPARATOR is now a semi-colon under Windows.Romain Geissler2011-06-151-1/+1
| | | | | | | | | | | | | | | GIT_PATH_LIST_SEPARATOR and GIT_PATH_MAX are made public so that it's can be used by a client.
* | | Merge pull request #251 from nulltoken/fix/msvc-warningsVicent Martí2011-06-152-2/+5
|\ \ \ | | | | | | | | Fix compilation warnings in MSVC
| * | | Fix filebuf0 test which was failing on Windowsnulltoken2011-06-121-1/+4
| | | |
| * | | Fix compilation warnings in MSVCnulltoken2011-06-121-1/+1
| | | |
* | | | Merge pull request #260 from nulltoken/fix/git_index_addVicent Martí2011-06-151-1/+42
|\ \ \ \ | | | | | | | | | | Fix git_index_add()
| * | | | git_index_add: enforce test coveragenulltoken2011-06-151-1/+42
| |/ / /
* | | | Remove custom backendsVicent Marti2011-06-143-253/+0
|/ / / | | | | | | | | | | | | All the custom backend code will be moved to a separate project, together with the new MySQL backend.
* | | use proper in-memory database for sqlite3 testsBrian Lopez2011-06-111-1/+1
| | |
* | | Add test for git_filebuf_open error codeCarlos Martín Nieto2011-06-071-0/+12
| |/ |/| | | | | Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
* | Revert "threads: Fix TLS declarations"Vicent Marti2011-06-072-209/+4
| | | | | | | | This commit uploaded an old broken test. Oops!
* | Merge pull request #232 from schu/ref-available-cbVicent Martí2011-06-061-0/+33
|\ \ | | | | | | reference_rename: respect all references v2
| * | Add test case checking we do not corrupt the repository when renamingschu2011-06-051-0/+33
| | | | | | | | | | | | Signed-off-by: schu <schu-github@schulog.org>
* | | threads: Fix TLS declarationsVicent Marti2011-06-072-4/+209
| | | | | | | | | | | | | | | Cleanup the thread-utils file. Do not define TLS if libgit2 is not threadsafe.
* | | Merge pull request #231 from Romain-Geissler/discovery-path-v2Vicent Martí2011-06-062-0/+138
|\ \ \ | |/ / |/| / | |/ [Discovery path] Fix and tests
| * Repository: A little fix in error code. GIT_ENOTFOUND is returned when a ↵Romain Geissler2011-06-061-7/+5
| | | | | | | | | | | | gitfile is malformed and GIT_ENOTAREPO when the pointed dir is not a repo. Fixed tests so that it check the right error code.
| * Tests: Added tests for git_repository_discover.Romain Geissler2011-06-052-0/+140
| | | | | | | | | | Unfortunately, the across_fs flag can't be tested automaticly, as we can't create a temporary new filesystem.
* | repository: Export all internal pathsVicent Marti2011-06-041-4/+4
|/
* Fileops: Added a fourth argument to the path prettifying functions to use an ↵unknown2011-06-031-3/+3
| | | | | | alternate basepath. Fixed a Windows TO-DO in the prettifying functions.
* Merge pull request #215 from schu/typosVicent Martí2011-06-011-1/+1
|\ | | | | Fix typos
| * Fix tiny typoschu2011-05-291-1/+1
| | | | | | | | | | Signed-off-by: nulltoken <emeric.fermas@gmail.com> Signed-off-by: schu <schu-github@schulog.org>
* | Merge pull request #218 from schu/tests-fflushVicent Martí2011-06-011-0/+2
|\ \ | | | | | | test_lib.c: flush stdout after every test-run
| * | test_lib.c: flush stdout after every test-runschu2011-05-301-0/+2
| |/ | | | | | | | | | | | | Make sure the user immediately sees the feedback, '.' or 'F', for a test. If it's only in the buffer, it may gets "lost" in case of error. Signed-off-by: schu <schu-github@schulog.org>
* | Merge pull request #222 from carlosmn/config-bugfixVicent Martí2011-06-014-0/+42
|\ \ | | | | | | Config bugfix
| * | Add test for empty config fileCarlos Martín Nieto2011-05-312-0/+9
| | | | | | | | | | | | Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
| * | Add test for invalid ext headerCarlos Martín Nieto2011-05-312-0/+13
| | | | | | | | | | | | Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
| * | Add config test for empty lineCarlos Martín Nieto2011-05-312-0/+20
| |/ | | | | | | Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
* | Merge pull request #206 from nulltoken/topic/is-bareVicent Martí2011-06-011-1/+8
|\ \ | | | | | | Add git_repository_is_bare() accessor
| * | Add git_repository_is_bare() accessornulltoken2011-05-241-1/+8
| |/
* | index: Change the memory management for repo indexesVicent Marti2011-06-011-7/+7
|/ | | | | The `git_repository_index` call now returns a brand new index that must be manually free'd.
* config: Cleanup & renaming of the external APIVicent Marti2011-05-201-6/+6
| | | | | | | | "git_config_backend" have been renamed to "git_config_file", which implements a generic interface to access a configuration file -- be it either on disk, from a DB or whatever mumbojumbo. I think this makes more sense.
* test_lib: add return value to git_testschu2011-05-182-4/+17
| | | | | | | Save the return value of functions not passing must_pass() and report the returned error. Signed-off-by: schu <schu-github@schulog.org>
* t15: Remove unused variableVicent Marti2011-05-171-1/+0
|
* tests: Update NAMING fileVicent Marti2011-05-171-1/+3
|
* Merge pull request #116 from carlosmn/test-namingVicent Martí2011-05-171-6/+14
|\ | | | | tests: update NAMING file
| * tests: update NAMING fileCarlos Martín Nieto2011-04-041-6/+14
| | | | | | | | Signed-off-by: Carlos Martín Nieto <cmn@elego.de>