Start a library for cvsimport-related tests
[git/jrn.git] / t / lib-cvs.sh
blobbfc1c12f3f3d46626c80a411fe50cb9ac100b7f7
1 #!/bin/sh
3 . ./test-lib.sh
5 unset CVS_SERVER
6 # for clean cvsps cache
7 HOME=$(pwd)
8 export HOME
10 if ! type cvs >/dev/null 2>&1
11 then
12 say 'skipping cvsimport tests, cvs not found'
13 test_done
14 exit
17 cvsps_version=`cvsps -h 2>&1 | sed -ne 's/cvsps version //p'`
18 case "$cvsps_version" in
19 2.1 | 2.2*)
21 '')
22 say 'skipping cvsimport tests, cvsps not found'
23 test_done
24 exit
27 say 'skipping cvsimport tests, unsupported cvsps version'
28 test_done
29 exit
31 esac