summaryrefslogtreecommitdiffabout
path: root/tests/setup.sh
Side-by-side diff
Diffstat (limited to 'tests/setup.sh') (more/less context) (show whitespace changes)
-rwxr-xr-xtests/setup.sh13
1 files changed, 12 insertions, 1 deletions
diff --git a/tests/setup.sh b/tests/setup.sh
index e37306e..1457dd5 100755
--- a/tests/setup.sh
+++ b/tests/setup.sh
@@ -33,2 +33,9 @@ mkrepo() {
done
+ if test "$3" = "testplus"
+ then
+ echo "hello" >a+b
+ git add a+b
+ git commit -m "add a+b"
+ git branch "1+2"
+ fi
cd $dir
@@ -42,2 +49,3 @@ setup_repos()
mkrepo trash/repos/bar 50 >/dev/null
+ mkrepo trash/repos/foo+bar 10 testplus >/dev/null
cat >trash/cgitrc <<EOF
@@ -63,2 +71,6 @@ repo.path=$PWD/trash/repos/bar/.git
repo.desc=the bar repo
+
+repo.url=foo+bar
+repo.path=$PWD/trash/repos/foo+bar/.git
+repo.desc=the foo+bar repo
EOF
@@ -115,2 +127 @@ cgit_url()
}
-