summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@derf.homelinux.org>2009-05-01 15:40:32 +0200
committerDaniel Friesel <derf@derf.homelinux.org>2009-05-01 15:40:32 +0200
commit5308e0c916784dd89a517b293f2d4f4c437b545a (patch)
treeed3eacbe60fd38f79d1376e41575e07cf733c30b
parent04432892639a2e7bc0716b49072cf62e26c2a638 (diff)
Added short test to check if prereqs are sourced
-rwxr-xr-xtest/main1
-rw-r--r--test/prereqs3
-rw-r--r--test/setup1
3 files changed, 5 insertions, 0 deletions
diff --git a/test/main b/test/main
index 4fde753..51981ab 100755
--- a/test/main
+++ b/test/main
@@ -68,6 +68,7 @@ for conf_origin in 0 1; {
complement=${repo}-bare
}
source $tests/add
+ source $tests/prereqs
cd $test_pdir/$repo
source $tests/push
cd $test_pdir
diff --git a/test/prereqs b/test/prereqs
new file mode 100644
index 0000000..7286619
--- /dev/null
+++ b/test/prereqs
@@ -0,0 +1,3 @@
+## vim:ft=zsh
+echo "# prereqs"
+[[ -f ~/prereq_ok_$file ]]
diff --git a/test/setup b/test/setup
index e2cff79..e86739b 100644
--- a/test/setup
+++ b/test/setup
@@ -14,6 +14,7 @@ for repo in ra rb rc; (
mkdir -p man/2
echo "=head1 WASTED SPACE\n\nhuhu" > man/2/$repo
chmod 755 bin/$repo
+ echo 'touch ~/prereq_ok_'$repo > prereqs
git add .
git commit -m 'initial commit'
cd ..