Skip to content

Commit dcbcb70

Browse files
peffgitster
authored andcommitted
t9600: require cvsps 2.1 to perform tests
git-cvsimport won't run at all with less than cvsps 2.1, because it lacks the -A flag. But there's no point in preventing people who have an old cvsps from running the full testsuite. Tested-by: A Large Angry SCM <gitzilla@gmail.com> Signed-off-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
1 parent afa75bc commit dcbcb70

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

t/t9600-cvsimport.sh

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,29 @@
33
test_description='git-cvsimport basic tests'
44
. ./test-lib.sh
55

6-
if ! ( type cvs && type cvsps ) >/dev/null 2>&1
6+
if ! type cvs >/dev/null 2>&1
77
then
8-
test_expect_success 'skipping cvsimport tests, cvs/cvsps not found' ''
8+
say 'skipping cvsimport tests, cvs not found'
99
test_done
1010
exit
1111
fi
1212

13+
cvsps_version=`cvsps -h 2>&1 | sed -ne 's/cvsps version //p'`
14+
case "$cvsps_version" in
15+
2.1)
16+
;;
17+
'')
18+
say 'skipping cvsimport tests, cvsps not found'
19+
test_done
20+
exit
21+
;;
22+
*)
23+
say 'skipping cvsimport tests, cvsps too old'
24+
test_done
25+
exit
26+
;;
27+
esac
28+
1329
CVSROOT=$(pwd)/cvsroot
1430
export CVSROOT
1531
# for clean cvsps cache

0 commit comments

Comments
 (0)