File: README

package info (click to toggle)
cvs-fast-export 1.59-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 5,960 kB
  • sloc: ansic: 5,743; python: 1,391; sh: 532; lex: 352; yacc: 273; makefile: 249; perl: 99
file content (123 lines) | stat: -rw-r--r-- 5,002 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
= The cvs-fast-export test suite =

You will need RCS and CVS installed to run these tests.

Warning: The regression tests will fail spuriously if your CVS lacks the
MirOS patches.  These are carried by Debian Linux and derivatives; you can
check by Looking for "MirDebian" in the output of cvs --version.

The cygwin cvs package does not respect the -Q (very quiet) flag on all commands.
Expect some noise when building the test repositories.

Ensure there is no CVSROOT folder in any parent directory.

There are mutiple groups of tests in this directory.

== Auxiliary tools ==

visualize::
	Visualize the contents of a test repository or master file
	using the -g option of cvs-fast-export and the dot(1) renderer.

gitwash::
	Canonicalize a git fast-import stream.

tapdiffer::
	Generate a TAP message based on an expected/seen diff.

== The .tst files ==

One group is generated by the *.tst files.  These are Python scripts
that use the framework in testlifter.py to create CVS or RCS
repositories (extension .repo) using the local installation of CVS or
RCS.

During normal regression tests or rebuilds, cvs-fast-export is run 
against those repositories and the output compared to check files.
The reason for this organization is to make it easier to modify and
elaborate the tests by changing the generator scripts.

The repo rebuilds are expensive - much slower than the cvs-fast-export
runs.  And they need to be done only when the generator scripts change,
not on every change to the cvs-fast-export code.  In order to speed up
normal testing, the repos are left in place until explicitly cleaned.

This group is mainly a stability test.  The *.chk files are part of the
repository and are rebuilt only seldom, when there is genuine reason for 
the behavior of the program to change.

== The master files ==

These are regression tests for individual parsing edge cases that 
consist of individual masters (extension ,v) paired with .chk files
that are git stream outputs.

== Incremental-dump regression ==

This is a specifically crafted test to see if incremental dumping of a 
late section of a repository works.

== Pathological repositories ==

These don't have regression tests yet.

QED.testrepo::
	Contains a branch cycle.

missingbranch,v:
	Contains 1.2.2.1 branch but no 1.2.1.1, and 1.4.2.1 branch but no 
	1.4.1.1. Extracted from NetBSD src where this is a real case.
	No commit is generated corresponding to the 1.[24].2.1 revisions.

== The t9600 group ==

The t960[1-4] files are tests taken from the git tree for testing the
cvsimport facility, adapted for testing cvs-fast-export directly.  The
t9605 test was composed by Chris Rorvick using the git test framework
but as of December 2013 has not been merged to the git tree.  These
are deliberately malformed repositories that exercise strange corner
cases.

Each repo has a custom-built script using the testlifter framework to check
properties of the CVS repository against properties of the git conversion.
The scripts perform tests equivalent to the Perl scripts in the originals.

Summary of results: 

t9601:
|========================================================================
|                                            | cvsps    | cvs-fast-export
|import a module with a vendor branch        | Succeeds | Succeeds 
|check master out of git repository          | Succeeds | Succeeds 
|check a file imported once                  | Fails    | Succeeds 
|check a file imported twice                 | Succeeds | Succeeds 
|check a file imported then modified on HEAD | Succeeds | Succeeds 
|...imported, modified, then imported again  | Succeeds | Succeeds 
|check a file added to HEAD then imported    | Succeeds | Fails
| a vendor branch whose tag has been removed | Succeeds | Succeeds
|========================================================================

t9602:
|========================================================================
|                                            | cvsps    | cvs-fast-export
|import module                               | Succeeds | Succeeds 
|test branch master                          | Succeeds | Succeeds 
|test branch vendorbranch                    | Succeeds | Succeeds
|test_branch B_FROM_INITIALS                 | Fails    | Succeeds
|test_branch B_FROM_INITIALS_BUT_ONE         | Fails    | Fails
|test_branch B_MIXED                         | Fails    | Succeeds
|test_branch B_SPLI                          | Succeeds | Succeeds
|test branch vendortag                       | Fails    | Succeeds
|test tag T_ALL_INITIAL_FILES                | Succeeds | Succeeds
|test tag T_ALL_INITIAL_FILES_BUT_ONE        | Fails    | Succeeds
|test_tag T_MIXED                            | Fails    | Succeeds
|========================================================================

t9603:
	cvsps fails this test; cvs-fast-export succeeds.

t9604:
	cvsps and cvs-fast-export both succeed at this test.

t9605:
	cvsps fails this test; cvs-fast-export succeeds.