Skip to contentSkip to conversation

t9600: test cvsimport from CVS working tree

PATCH New Jeff King 1 participant 1 message Jun 15, 2016

lore
Share & tools
lore

Jeff King

author
#0 lore raw

PATCH 1/1 t9600: test cvsimport from CVS working tree

This test passes with v1.5.3.7, but not with v1.5.3.6.

---
I wrote this to investigate a reported bug (which turned out to be fixed by the recent cvsimport patches). No bug to fix, but I think it's a good test to have in general.

 t/t9600-cvsimport.sh |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)
t/t9600-cvsimport.sh +12 -0
index 29fee2d..08f0f2a 100755
@@ -119,4 +119,16 @@ test_expect_success 'cvsimport.module config works' '
 
 '
 
+test_expect_success 'import from a CVS working tree' '
+
+	cvs co -d import-from-wt module &&
+	cd import-from-wt &&
+		git cvsimport -a -z0 &&
+		echo 1 >expect &&
+		git log -1 --pretty=format:%s%n >actual &&
+		git diff actual expect &&
+	cd ..
+
+'
+
 test_done
Signature · 1 line
1.5.3.6.2094.g0ce9a-dirty