libgit2/tests
Brodie Rao ce8cd006ce fileops/repository: create (most) directories with 0777 permissions
To further match how Git behaves, this change makes most of the
directories libgit2 creates in a git repo have a file mode of
0777. Specifically:

- Intermediate directories created with git_futils_mkpath2file() have
  0777 permissions. This affects odb_loose, reflog, and refs.

- The top level folder for bare repos is created with 0777
  permissions.

- The top level folder for non-bare repos is created with 0755
  permissions.

- /objects/info/, /objects/pack/, /refs/heads/, and /refs/tags/ are
  created with 0777 permissions.

Additionally, the following changes have been made:

- fileops functions that create intermediate directories have grown a
  new dirmode parameter. The only exception to this is filebuf's
  lock_file(), which unconditionally creates intermediate directories
  with 0777 permissions when GIT_FILEBUF_FORCE is set.

- The test runner now sets the umask to 0 before running any
  tests. This ensurses all file mode checks are consistent across
  systems.

- t09-tree.c now does a directory permissions check. I've avoided
  adding this check to other tests that might reuse existing
  directories from the prefabricated test repos. Because they're
  checked into the repo, they have 0755 permissions.

- Other assorted directories created by tests have 0777 permissions.
2011-10-14 16:04:34 -07:00
..
resources Add test commit containing subtrees and files 2011-10-13 22:48:58 +02:00
.gitignore Fix Makefile to correctly handle 'make -j4 test' 2008-11-03 18:42:54 -08:00
NAMING status: get blob object id of file on disk 2011-07-09 13:49:50 +02:00
t00-core.c fileops/repository: create (most) directories with 0777 permissions 2011-10-14 16:04:34 -07:00
t01-data.h Rewrite the unit testing suite 2011-02-02 02:15:25 +02:00
t01-rawobj.c Fix wrong test in t04-commit 2011-08-04 22:49:39 +02:00
t02-data.h Cleanup the testing toolkit 2011-03-03 20:23:52 +02:00
t02-objread.c cleanup: remove trailing spaces 2011-07-01 18:02:56 +02:00
t02-oids.h Rewrite the unit testing suite 2011-02-02 02:15:25 +02:00
t03-data.h What the fuck was this doing in src? 2011-07-11 19:42:21 +02:00
t03-objwrite.c fileops/repository: create (most) directories with 0777 permissions 2011-10-14 16:04:34 -07:00
t04-commit.c signature: don't blow up trying to parse names containing '>' 2011-10-12 16:19:46 -07:00
t05-revwalk.c cleanup: remove trailing spaces 2011-07-01 18:02:56 +02:00
t06-index.c fileops/repository: create (most) directories with 0777 permissions 2011-10-14 16:04:34 -07:00
t07-hashtable.c CMakefile: add -Wmissing-prototypes and fix warnings 2011-08-30 23:55:22 +03:00
t08-tag.c tag: allow the tagger field to be missing when parsing tags 2011-10-12 16:09:16 -07:00
t09-tree.c fileops/repository: create (most) directories with 0777 permissions 2011-10-14 16:04:34 -07:00
t10-refs.c fileops/repository: create (most) directories with 0777 permissions 2011-10-14 16:04:34 -07:00
t12-repo.c fileops/repository: create (most) directories with 0777 permissions 2011-10-14 16:04:34 -07:00
t13-threads.c Fix MSVC warnings 2011-03-21 19:27:45 +02:00
t15-config.c config: behave like git with [section.subsection] 2011-10-01 19:58:26 +02:00
t16-remotes.c Make repo config loading automatic or completely explicit 2011-09-27 14:40:56 +02:00
t17-bufs.c Don't leak the buf when testing it 2011-07-12 18:19:56 +02:00
t18-status.c t18-status.c: fix unused warnings 2011-09-24 13:41:10 +02:00
test_helpers.c fileops/repository: create (most) directories with 0777 permissions 2011-10-14 16:04:34 -07:00
test_helpers.h fileops/repository: create (most) directories with 0777 permissions 2011-10-14 16:04:34 -07:00
test_lib.c test: Properly show error messages 2011-06-28 21:10:51 +02:00
test_lib.h CMakefile: add -Wmissing-prototypes and fix warnings 2011-08-30 23:55:22 +03:00
test_main.c fileops/repository: create (most) directories with 0777 permissions 2011-10-14 16:04:34 -07:00
tests.supp Add support for running the tests via valgrind 2009-10-13 16:23:54 +01:00