diff --git a/doc/testing.mkd b/doc/testing.mkd index feb2ad7..a973851 100644 --- a/doc/testing.mkd +++ b/doc/testing.mkd @@ -1,17 +1,13 @@ # testing gitolite -Here's how to *run* the tests: +Here's how to *run* the tests. **WARNING: they will clobber lots of things in +your `$HOME`, so be sure to use a throwaway userid**. git clone git://github.com/sitaramc/gitolite cd gitolite git checkout -f g3 - - # if you're not ok with your ~/.ssh getting clobbered prove - # if you're ok with your ~/.ssh getting clobbered - # prove t/*.t t/ssh* - Gitolite's test suite is mostly written using [tsh][] -- the "testing shell". Take a look at some of the scripts and you will see what it looks like. It has a few quirks and nuances; if you really care, email me. diff --git a/src/Gitolite/Test.pm b/src/Gitolite/Test.pm index 11d1c9d..5f7fa6c 100644 --- a/src/Gitolite/Test.pm +++ b/src/Gitolite/Test.pm @@ -51,7 +51,7 @@ try " # clean install mkdir -p $ENV{HOME}/bin ln -sf $ENV{PWD}/src/gitolite $ENV{PWD}/t/glt ~/bin - cd; rm -vrf .gito* gito* repositories + cd; rm -vrf .gito* repositories git config --global user.name \"gitolite tester\" git config --global user.email \"tester\@example.com\" diff --git a/t/ssh-authkeys b/t/ssh-authkeys.t similarity index 100% rename from t/ssh-authkeys rename to t/ssh-authkeys.t diff --git a/t/ssh-basic b/t/ssh-basic.t similarity index 100% rename from t/ssh-basic rename to t/ssh-basic.t