summaryrefslogtreecommitdiffstats
path: root/git-interface/test/setup.sh
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2016-08-05 21:22:36 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2016-08-05 21:23:20 +0200
commit9a03c7fbdd9a1eff197d9c14301ab23aabc88109 (patch)
tree3c3e9bf8ce7536ea6610bd70000d92710a24e2b2 /git-interface/test/setup.sh
parent008eace8dbeb0343ae3908cb8373d669efcb8e63 (diff)
downloadaur-9a03c7fbdd9a1eff197d9c14301ab23aabc88109.tar.gz
aur-9a03c7fbdd9a1eff197d9c14301ab23aabc88109.tar.xz
t0002: Add more git-serve tests
Add tests for common scenarios that should be detected/handled by the git-serve script. Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
Diffstat (limited to 'git-interface/test/setup.sh')
-rw-r--r--git-interface/test/setup.sh19
1 files changed, 17 insertions, 2 deletions
diff --git a/git-interface/test/setup.sh b/git-interface/test/setup.sh
index 45129782..cb1e2506 100644
--- a/git-interface/test/setup.sh
+++ b/git-interface/test/setup.sh
@@ -29,8 +29,8 @@ ssh-options = restrict
[serve]
repo-path = ./aur.git/
repo-regex = [a-z0-9][a-z0-9.+_-]*$
-git-shell-cmd = /usr/bin/git-shell
-git-update-cmd = /srv/http/aurweb/git-interface/git-update.py
+git-shell-cmd = ./git-shell.sh
+git-update-cmd = ./update.sh
ssh-cmdline = ssh aur@aur.archlinux.org
[update]
@@ -42,6 +42,21 @@ cat >notify.sh <<-EOF
EOF
chmod +x notify.sh
+cat >git-shell.sh <<-\EOF
+#!/bin/sh
+echo $AUR_USER
+echo $AUR_PKGBASE
+echo $GIT_NAMESPACE
+EOF
+chmod +x git-shell.sh
+
+cat >update.sh <<-\EOF
+#!/bin/sh
+echo $AUR_USER
+echo $AUR_PKGBASE
+EOF
+chmod +x update.sh
+
AUR_CONFIG=config
export AUR_CONFIG