libgit2/tests
Vicent Marti f725931b48 Fix directory/path manipulation methods
The `dirname` and `dirbase` methods have been replaced with the Android
implementation, which is actually compilant to some kind of standard.

A new method `topdir` has been added, which returns the topmost
directory in a path.

These changes fix issue #49:

	`gitfo_prettify_dir_path` converts "./.git/" to ".git/", so
	the code at src/repository.c:190 goes out of bounds when
	trying to find the topmost directory.

	The new `git__topdir` method handles this gracefully, and the
	fixed `git__dirname` now returns the proper value for the
	repository's working dir.

	E.g.

		/repo/.git/ ==> working dir '/repo/'
		.git/		==> working dir '.'

Signed-off-by: Vicent Marti <tanoku@gmail.com>
2011-02-05 12:42:41 +02:00
..
resources Merge nulltoken's reference parsing code 2011-01-29 03:39:02 +02:00
.gitignore Fix Makefile to correctly handle 'make -j4 test' 2008-11-03 18:42:54 -08:00
NAMING Merge nulltoken's reference parsing code 2011-01-29 03:39:02 +02:00
t00-core.c Fix directory/path manipulation methods 2011-02-05 12:42:41 +02:00
t01-data.h Rewrite the unit testing suite 2011-02-02 02:15:25 +02:00
t01-rawobj.c Rewrite the unit testing suite 2011-02-02 02:15:25 +02:00
t02-data.h Rewrite the unit testing suite 2011-02-02 02:15:25 +02:00
t02-objread.c Rewrite the unit testing suite 2011-02-02 02:15:25 +02:00
t02-oids.h Rewrite the unit testing suite 2011-02-02 02:15:25 +02:00
t03-objwrite.c Rewrite the unit testing suite 2011-02-02 02:15:25 +02:00
t04-commit.c Rewrite the unit testing suite 2011-02-02 02:15:25 +02:00
t05-revwalk.c Make more methods return error codes 2011-02-05 09:29:37 +02:00
t06-index.c Rewrite the unit testing suite 2011-02-02 02:15:25 +02:00
t07-hashtable.c Rewrite the unit testing suite 2011-02-02 02:15:25 +02:00
t08-tag.c Rewrite the unit testing suite 2011-02-02 02:15:25 +02:00
t09-tree.c Rewrite the unit testing suite 2011-02-02 02:15:25 +02:00
t10-refs.c Rewrite the unit testing suite 2011-02-02 02:15:25 +02:00
test_helpers.c Change include structure for the project 2010-12-06 01:14:15 +02:00
test_helpers.h Tests now run with the resources folder as a hardcoded path 2010-12-10 05:53:39 +02:00
test_lib.c Make the test return an error code on failure 2011-02-02 02:32:21 +02:00
test_lib.h Make the test return an error code on failure 2011-02-02 02:32:21 +02:00
test_main.c Make the test return an error code on failure 2011-02-02 02:32:21 +02:00
tests.supp Add support for running the tests via valgrind 2009-10-13 16:23:54 +01:00