Debian Codegraph @

tests/README

raw
1 = The cvs-fast-export test suite =
2
3 You will need RCS and CVS installed to run these tests.
4
5 Warning: The regression tests will fail spuriously if your CVS lacks the
6 MirOS patches. These are carried by Debian Linux and derivatives; you can
7 check by Looking for "MirDebian" in the output of cvs --version.
8
9 The cygwin cvs package does not respect the -Q (very quiet) flag on all commands.
10 Expect some noise when building the test repositories.
11
12 Ensure there is no CVSROOT folder in any parent directory.
13
14 There are mutiple groups of tests in this directory.
15
16 == Auxiliary tools ==
17
18 visualize::
19 Visualize the contents of a test repository or master file
20 using the -g option of cvs-fast-export and the dot(1) renderer.
21
22 gitwash::
23 Canonicalize a git fast-import stream.
24
25 tapdiffer::
26 Generate a TAP message based on an expected/seen diff.
27
28 == The .tst files ==
29
30 One group is generated by the *.tst files. These are Python scripts
31 that use the framework in testlifter.py to create CVS or RCS
32 repositories (extension .repo) using the local installation of CVS or
33 RCS.
34
35 During normal regression tests or rebuilds, cvs-fast-export is run
36 against those repositories and the output compared to check files.
37 The reason for this organization is to make it easier to modify and
38 elaborate the tests by changing the generator scripts.
39
40 The repo rebuilds are expensive - much slower than the cvs-fast-export
41 runs. And they need to be done only when the generator scripts change,
42 not on every change to the cvs-fast-export code. In order to speed up
43 normal testing, the repos are left in place until explicitly cleaned.
44
45 This group is mainly a stability test. The *.chk files are part of the
46 repository and are rebuilt only seldom, when there is genuine reason for
47 the behavior of the program to change.
48
49 == The master files ==
50
51 These are regression tests for individual parsing edge cases that
52 consist of individual masters (extension ,v) paired with .chk files
53 that are git stream outputs.
54
55 == Incremental-dump regression ==
56
57 This is a specifically crafted test to see if incremental dumping of a
58 late section of a repository works.
59
60 == Pathological repositories ==
61
62 These don't have regression tests yet.
63
64 QED.testrepo::
65 Contains a branch cycle.
66
67 missingbranch,v:
68 Contains 1.2.2.1 branch but no 1.2.1.1, and 1.4.2.1 branch but no
69 1.4.1.1. Extracted from NetBSD src where this is a real case.
70 No commit is generated corresponding to the 1.[24].2.1 revisions.
71
72 == The t9600 group ==
73
74 The t960[1-4] files are tests taken from the git tree for testing the
75 cvsimport facility, adapted for testing cvs-fast-export directly. The
76 t9605 test was composed by Chris Rorvick using the git test framework
77 but as of December 2013 has not been merged to the git tree. These
78 are deliberately malformed repositories that exercise strange corner
79 cases.
80
81 Each repo has a custom-built script using the testlifter framework to check
82 properties of the CVS repository against properties of the git conversion.
83 The scripts perform tests equivalent to the Perl scripts in the originals.
84
85 Summary of results:
86
87 t9601:
88 |========================================================================
89 | | cvsps | cvs-fast-export
90 |import a module with a vendor branch | Succeeds | Succeeds
91 |check master out of git repository | Succeeds | Succeeds
92 |check a file imported once | Fails | Succeeds
93 |check a file imported twice | Succeeds | Succeeds
94 |check a file imported then modified on HEAD | Succeeds | Succeeds
95 |...imported, modified, then imported again | Succeeds | Succeeds
96 |check a file added to HEAD then imported | Succeeds | Fails
97 | a vendor branch whose tag has been removed | Succeeds | Succeeds
98 |========================================================================
99
100 t9602:
101 |========================================================================
102 | | cvsps | cvs-fast-export
103 |import module | Succeeds | Succeeds
104 |test branch master | Succeeds | Succeeds
105 |test branch vendorbranch | Succeeds | Succeeds
106 |test_branch B_FROM_INITIALS | Fails | Succeeds
107 |test_branch B_FROM_INITIALS_BUT_ONE | Fails | Fails
108 |test_branch B_MIXED | Fails | Succeeds
109 |test_branch B_SPLI | Succeeds | Succeeds
110 |test branch vendortag | Fails | Succeeds
111 |test tag T_ALL_INITIAL_FILES | Succeeds | Succeeds
112 |test tag T_ALL_INITIAL_FILES_BUT_ONE | Fails | Succeeds
113 |test_tag T_MIXED | Fails | Succeeds
114 |========================================================================
115
116 t9603:
117 cvsps fails this test; cvs-fast-export succeeds.
118
119 t9604:
120 cvsps and cvs-fast-export both succeed at this test.
121
122 t9605:
123 cvsps fails this test; cvs-fast-export succeeds.