From cb9794d55b70399f16bc1e84df74639afad239cd Mon Sep 17 00:00:00 2001 From: Sitaram Chamarty Date: Sun, 25 Mar 2012 09:57:02 +0530 Subject: [PATCH] warn about test suite clobbering lots of stuff (not just ~/.ssh!) --- doc/testing.mkd | 8 ++------ src/Gitolite/Test.pm | 2 +- t/{ssh-authkeys => ssh-authkeys.t} | 0 t/{ssh-basic => ssh-basic.t} | 0 4 files changed, 3 insertions(+), 7 deletions(-) rename t/{ssh-authkeys => ssh-authkeys.t} (100%) rename t/{ssh-basic => ssh-basic.t} (100%) 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