Commit Graph

10 Commits

Author SHA1 Message Date
Joel Brobecker
2ad4079bc8 Get the hooks' configuration from refs/meta/config:project.config...
... instead of the repository's config file.  For compatibility,
a fallback mechanism that falls back on reading the $GIT_DIR/config
file is provided.

For MC20-031.
2013-12-27 18:23:25 +04:00
Joel Brobecker
ad437bf477 Create project.config in refs/meta/config branch (from hooks_config).
We are still preserving the hooks_config file within the test
directory in order to help grep-ability, but this is no longer
the master.  The pack-test-repos script has been updated to grab
and update our convenience copy to match the latest master.

Similarly, the unpack-test-repos script has been updated to use
the project.config file (ie, use the master copy) to populate
the bare repository's config file. It is expected that this part
will become unnecessary at some point, when the hooks are enhanced
to get their config from this file, instead of the repository's
config file.

For MC20-031.
2013-12-27 15:44:02 +04:00
Joel Brobecker
0c02d4bb4a Split the bare repository's config into two: git config vs hooks config.
This is a first step towards moving the hook's configuration
inside the repository itself.

For MC20-031.
2013-12-27 13:28:00 +04:00
Joel Brobecker
0acd221057 Fix error in testsuite/bin/pack-test-repos.
There was an obvious (as in untested) error in the computation
of the path where the bare repository's config file was located.
This patch fixes it.
2012-12-28 16:21:32 +04:00
Joel Brobecker
6157951a8f syslog trace if .no_cvs_check file turns pre-commit checks off.
Update testsuite infrastructure to allow testing of syslog tracing
without actually filing a real syslog trace.

For L605-020.
2012-12-27 19:54:25 +04:00
Joel Brobecker
05d8354321 Move testscase bare/repo.git config file out of git-repos.tar.bz2.
This improvement allows us to track the config file normally,
instead of having it tracked as part of a (very binary) tarball.
2012-12-26 12:37:17 +04:00
Joel Brobecker
397334cfd6 Add support for testing pushes to non-bare repositories
Needed for LB24-002.
2012-11-24 11:37:48 -08:00
Joel Brobecker
8b7cffac64 pack-test-repos: pack everything from the "bare" directory...
... not just the bare/repo.git directory.  That way, we can have
multiple bare repositories.  This can be useful in the context of
git submodules, where multiple git repositories are in use.
2012-06-14 14:40:48 -07:00
Joel Brobecker
395ea0c909 Use tarballs to store the testcases' git repositories.
The current approach was not working, because it is hard to check in
a complete bare repository.  Also, checking git repositories had the
disadvantage  that the git repositories always contain a LOT of files,
flooding the other changes with those changes. It is easier in all
counts to just use an archive.

This does not fix the testcases themselves, but the checked in versions
do not work anyway, it doesn't make things worse in practice.
2012-05-26 11:22:46 +02:00
Joel Brobecker
b3e4989925 Move testsuite/run-test to testsuite/bin/run-testcase.
Adjust new run-testcase accordingly (mini-adjustment).
Update call from testcase/lib/testsuite.py.
2012-05-26 11:22:46 +02:00