-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Start a library for cvsimport-related tests
For now the library just includes code (moved from t/t9600-cvsimport.sh) that checks whether the prerequisites for "git cvsimport" are installed. Signed-off-by: Michael Haggerty <mhagger@alum.mit.edu> Signed-off-by: Junio C Hamano <gitster@pobox.com>
- Loading branch information
Michael Haggerty
authored and
Junio C Hamano
committed
Feb 24, 2009
1 parent
8c5b85c
commit 535bb89
Showing
2 changed files
with
32 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/sh | ||
|
||
. ./test-lib.sh | ||
|
||
unset CVS_SERVER | ||
# for clean cvsps cache | ||
HOME=$(pwd) | ||
export HOME | ||
|
||
if ! type cvs >/dev/null 2>&1 | ||
then | ||
say 'skipping cvsimport tests, cvs not found' | ||
test_done | ||
exit | ||
fi | ||
|
||
cvsps_version=`cvsps -h 2>&1 | sed -ne 's/cvsps version //p'` | ||
case "$cvsps_version" in | ||
2.1 | 2.2*) | ||
;; | ||
'') | ||
say 'skipping cvsimport tests, cvsps not found' | ||
test_done | ||
exit | ||
;; | ||
*) | ||
say 'skipping cvsimport tests, unsupported cvsps version' | ||
test_done | ||
exit | ||
;; | ||
esac |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters