]> git.ipfire.org Git - thirdparty/git.git/blame - t/lib-cvs.sh
Start a library for cvsimport-related tests
[thirdparty/git.git] / t / lib-cvs.sh
CommitLineData
535bb893
MH
1#!/bin/sh
2
3. ./test-lib.sh
4
5unset CVS_SERVER
6# for clean cvsps cache
7HOME=$(pwd)
8export HOME
9
10if ! type cvs >/dev/null 2>&1
11then
12 say 'skipping cvsimport tests, cvs not found'
13 test_done
14 exit
15fi
16
17cvsps_version=`cvsps -h 2>&1 | sed -ne 's/cvsps version //p'`
18case "$cvsps_version" in
192.1 | 2.2*)
20 ;;
21'')
22 say 'skipping cvsimport tests, cvsps not found'
23 test_done
24 exit
25 ;;
26*)
27 say 'skipping cvsimport tests, unsupported cvsps version'
28 test_done
29 exit
30 ;;
31esac