Tree @33a36948-e31a-4150-bafe-0ce05e6fd643/main (Download .tar.gz)
- ..
- keys
- 0-me-first.t
- access.t
- all-yall.t
- basic.t
- branch-perms.t
- C-vs-C.t
- daemon-gitweb-via-perms.t
- deleg-1.t
- deleg-2.t
- deny-create.t
- deny-rules-2.t
- deny-rules.t
- easy.t
- fedora-root-smart-http-test-setup
- fork.t
- git-config.t
- gitolite-receive-pack
- gitolite-upload-pack
- glt
- hostname.t
- include-subconf.t
- info-json.t
- info.t
- invalid-refnames-filenames.t
- listers.t
- manjaro-root-smart-http-test-setup
- merge-check.t
- mirror-test
- mirror-test-rc
- mirror-test-setup.sh
- mirror-test-ssh-config
- partial-copy.t
- perm-default-roles.t
- perm-roles.t
- perms-groups.t
- personal-branches.t
- README
- reference.t
- refex-expr-test-1
- refex-expr-test-2
- refex-expr-test-3
- refex-expr-test-9
- repo-specific-hooks.t
- reset
- rule-seq.t
- sequence.t
- smart-http
- smart-http.root-setup
- ssh-authkeys.t
- ssh-basic.t
- templates.t
- vrefs-1.t
- vrefs-2.t
- wild-1.t
- wild-2.t
- writable.t
- z-end.t
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 | # instructions for running the tests # Pre-requisites Install the following packages: * Manjaro (and probably Arch): pacman -S perl-json perl-json-xs apache * Fedora (and probably CentOS): dnf install -y perl-Test-Harness perl-JSON perl-JSON-XS httpd httpd-tools * others: (TBD) # RUNNING THE MAIN TEST SUITE ====================================== WARNING: THE TEST SUITE DELETES STUFF! ====================================== Please run the tests ONLY on a userid where it's ok to LOSE DATA. On such a userid, clone gitolite then run this command in the clone: GITOLITE_TEST=y prove http://gitolite.com/gitolite/testing.html has more details. Alternatively, http://gitolite.com/gitolite/req.html#trying will help you try out gitolite if you want to play with gitolite safely. # RUNNING THE HTTP AND MIRROR TESTS ====================================== WARNING: THE TEST SUITE DELETES STUFF! ====================================== The http and mirror tests require a lot more preparation, including commands and/or scripts to be run as root, so they're not invoked when you simply run "prove" as above. ## Manjaro 1. Create 3 users: sam, frodo, and gollum (`useradd -m`). 2. Assuming you're running the tests using a local user called `g3`, run `visudo` and add the following line: g3 ALL = (sam,frodo,gollum) NOPASSWD: ALL Test this by running this command from within `g3` and making sure you get the correct results: sudo -u sam -i pwd # should print /home/sam # similarly make sure frodo and gollum also give correct results The mirror test will not run if this does not work. That does not mean *mirroring* will not work; only the test suite depends on this feature. 3. Manjaro does not, by default, add $HOME/bin to $PATH, so you will need the following on at least sam, frodo, and gollum: # copy-paste this into a root terminal for u in frodo sam gollum; do grep '$HOME/bin' /home/$u/.bash_profile || echo 'export PATH="$HOME/bin:$PATH"' >> /home/$u/.bash_profile done Again, test this by running: sudo -u sam -i echo '$PATH' and making sure the output starts with `/home/sam/bin:` (and similarly for frodo and gollum). 4. Take a look inside `t/manjaro-root-smart-http-test-setup` to make sure everything looks sane (because you have to run it as root!!), then run it as root. 5. Now you are ready to run the last two tests: GITOLITE_TEST=y prove t/smart-http GITOLITE_TEST=y prove t/mirror-test ## Fedora 1. Create 3 users: sam, frodo, and gollum (`useradd`). 2. Assuming you're running the tests using a local user called `g3`, run `visudo` and add the following line: g3 ALL = (sam,frodo,gollum) NOPASSWD: ALL Test this by running this command from within `g3` and making sure you get the correct results: sudo -u sam -i pwd # should print /home/sam # similarly make sure frodo and gollum also give correct results The mirror test will not run if this does not work. That does not mean *mirroring* will not work; only the test suite depends on this feature. 3. Take a look inside `t/fedora-root-smart-http-test-setup` to make sure everything looks sane (because you have to run it as root!!), then run it as root. 4. Now you are ready to run the last two tests: prove t/smart-http prove t/mirror-test vim: ft=markdown |
History of t @33a36948-e31a-4150-bafe-0ce05e6fd643/main
- gitolite mirroring terminology changes Sitaram Chamarty 3 years ago
- finally added notes on how to test mirroring and http mode! Sitaram Chamarty 4 years ago
- minor change to test on Manjaro Sitaram Chamarty 4 years ago
- minor change to test due to change in git 2.18+ Sitaram Chamarty 5 years ago
- fix 'C' and 'M' tests in 'gitolite access'... Sitaram Chamarty 5 years ago
- fix bug when deleting ALL hooks for a repo Sitaram Chamarty 6 years ago
- templates, template data, and compiling template data Sitaram Chamarty 6 years ago
- (test suite) fixes for new git in fedora 26... Sitaram Chamarty 6 years ago
- Use https:// instead of insecure git:// protocol Till Maas (commit: Sitaram Chamarty) 6 years ago
- fix 'access' command behaviour for 'C' and 'D' perms Sitaram Chamarty 7 years ago
- perms: make '-c' required for batch mode Sitaram Chamarty 7 years ago
- Enter trigger create-with-reference milki (commit: Sitaram Chamarty) 8 years ago
- repo specific hooks: Sitaram Chamarty 8 years ago
- fix ref-create permission bug on wild repos gitolite tester (commit: Sitaram Chamarty) 8 years ago
- perms: list available roles, plus several other changes... Sitaram Chamarty 9 years ago
- test setup should now work in FreeBSD also... gitolite tester (commit: Sitaram Chamarty) 9 years ago
- (minor) delete extra line in test 0 Sitaram Chamarty 9 years ago
- (minor) another test fixup Sitaram Chamarty 9 years ago
- (minor) fixup due to some (fedora??) path change Sitaram Chamarty 9 years ago
- disallow ../ everywhere Sitaram Chamarty 9 years ago
- ssh-authkeys: update authkeys when keydir is present but empty Sitaram Chamarty 9 years ago
- (changes caused by doc revamp) Sitaram Chamarty 9 years ago
- redis caching: 'set-default-roles' fix... Sitaram Chamarty 10 years ago
- redis caching: please read below Sitaram Chamarty 10 years ago
- repo-specific hooks: make them upgradable from 3.5.3.1, Sitaram Chamarty 10 years ago
- info: learns -json option Sitaram Chamarty 10 years ago
- git 1.9.0 changed the rules on file:// urls Sitaram Chamarty 10 years ago
- Test for repo-specific-hooks-trigger milki (commit: Sitaram Chamarty) 10 years ago
- mirroring: async push to slaves... Sitaram Chamarty 10 years ago
- allow groups in subconf files... Sitaram Chamarty 10 years ago