From 5308e0c916784dd89a517b293f2d4f4c437b545a Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 1 May 2009 15:40:32 +0200 Subject: Added short test to check if prereqs are sourced --- test/main | 1 + test/prereqs | 3 +++ test/setup | 1 + 3 files changed, 5 insertions(+) create mode 100644 test/prereqs (limited to 'test') 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 .. -- cgit v1.2.3