Revision 951
Added by Jean-Philippe Lang over 17 years ago
trunk/doc/RUNNING_TESTS | ||
---|---|---|
1 |
Creating test repositories |
|
2 |
=================== |
|
3 |
|
|
4 |
mkdir tmp/test |
|
5 |
|
|
6 |
Subversion |
|
7 |
---------- |
|
8 |
svnadmin create tmp/test/subversion_repository |
|
9 |
gunzip < test/fixtures/repositories/subversion_repository.dump.gz | svnadmin load tmp/test/subversion_repository |
|
10 |
|
|
11 |
Bazaar |
|
12 |
------ |
|
13 |
gunzip < test/fixtures/repositories/bazaar_repository.tar.gz | tar -xv -C tmp/test |
|
0 | 14 |
trunk/test/fixtures/repositories/subversion_repository.dump | ||
---|---|---|
1 |
SVN-fs-dump-format-version: 2 |
|
2 |
|
|
3 |
UUID: 54439772-bf7c-654d-b6c6-528e40cb36d2 |
|
4 |
|
|
5 |
Revision-number: 0 |
|
6 |
Prop-content-length: 56 |
|
7 |
Content-length: 56 |
|
8 |
|
|
9 |
K 8 |
|
10 |
svn:date |
|
11 |
V 27 |
|
12 |
2007-09-10T16:46:04.453125Z |
|
13 |
PROPS-END |
|
14 |
|
|
15 |
Revision-number: 1 |
|
16 |
Prop-content-length: 112 |
|
17 |
Content-length: 112 |
|
18 |
|
|
19 |
K 7 |
|
20 |
svn:log |
|
21 |
V 15 |
|
22 |
Initial import. |
|
23 |
K 10 |
|
24 |
svn:author |
|
25 |
V 2 |
|
26 |
jp |
|
27 |
K 8 |
|
28 |
svn:date |
|
29 |
V 27 |
|
30 |
2007-09-10T16:54:38.484000Z |
|
31 |
PROPS-END |
|
32 |
|
|
33 |
Node-path: subversion_test |
|
34 |
Node-kind: dir |
|
35 |
Node-action: add |
|
36 |
Prop-content-length: 10 |
|
37 |
Content-length: 10 |
|
38 |
|
|
39 |
PROPS-END |
|
40 |
|
|
41 |
|
|
42 |
Revision-number: 2 |
|
43 |
Prop-content-length: 112 |
|
44 |
Content-length: 112 |
|
45 |
|
|
46 |
K 7 |
|
47 |
svn:log |
|
48 |
V 15 |
|
49 |
Initial import. |
|
50 |
K 10 |
|
51 |
svn:author |
|
52 |
V 2 |
|
53 |
jp |
|
54 |
K 8 |
|
55 |
svn:date |
|
56 |
V 27 |
|
57 |
2007-09-10T16:54:52.203000Z |
|
58 |
PROPS-END |
|
59 |
|
|
60 |
Node-path: subversion_test/.project |
|
61 |
Node-kind: file |
|
62 |
Node-action: add |
|
63 |
Prop-content-length: 10 |
|
64 |
Text-content-length: 219 |
|
65 |
Text-content-md5: 6ca948b340b02ac5ee54c647cc964d9d |
|
66 |
Content-length: 229 |
|
67 |
|
|
68 |
PROPS-END |
|
69 |
<?xml version="1.0" encoding="UTF-8"?> |
|
70 |
<projectDescription> |
|
71 |
<name>subversion_test</name> |
|
72 |
<comment></comment> |
|
73 |
<projects> |
|
74 |
</projects> |
|
75 |
<buildSpec> |
|
76 |
</buildSpec> |
|
77 |
<natures> |
|
78 |
</natures> |
|
79 |
</projectDescription> |
|
80 |
|
|
81 |
|
|
82 |
Node-path: subversion_test/folder |
|
83 |
Node-kind: dir |
|
84 |
Node-action: add |
|
85 |
Prop-content-length: 10 |
|
86 |
Content-length: 10 |
|
87 |
|
|
88 |
PROPS-END |
|
89 |
|
|
90 |
|
|
91 |
Node-path: subversion_test/folder/greeter.rb |
|
92 |
Node-kind: file |
|
93 |
Node-action: add |
|
94 |
Prop-content-length: 40 |
|
95 |
Text-content-length: 227 |
|
96 |
Text-content-md5: f6e7a960573db1f6274e48c0a42b520a |
|
97 |
Content-length: 267 |
|
98 |
|
|
99 |
K 13 |
|
100 |
svn:eol-style |
|
101 |
V 6 |
|
102 |
native |
|
103 |
PROPS-END |
|
104 |
# The Greeter class |
|
105 |
class Greeter |
|
106 |
def initialize(name) |
|
107 |
@name = name.capitalize |
|
108 |
end |
|
109 |
|
|
110 |
def salute |
|
111 |
puts "Hello #{@name}!" |
|
112 |
end |
|
113 |
end |
|
114 |
|
|
115 |
# Create a new object |
|
116 |
g = Greeter.new("world") |
|
117 |
|
|
118 |
# Output "Hello World!" |
|
119 |
g.salute |
|
120 |
|
|
121 |
|
|
122 |
Node-path: subversion_test/folder/subfolder |
|
123 |
Node-kind: dir |
|
124 |
Node-action: add |
|
125 |
Prop-content-length: 10 |
|
126 |
Content-length: 10 |
|
127 |
|
|
128 |
PROPS-END |
|
129 |
|
|
130 |
|
|
131 |
Node-path: subversion_test/folder/subfolder/rubylogo.gif |
|
132 |
Node-kind: file |
|
133 |
Node-action: add |
|
134 |
Prop-content-length: 59 |
|
135 |
Text-content-length: 8576 |
|
136 |
Text-content-md5: bf864bc5278fd4f4facdf39673bb6d37 |
|
137 |
Content-length: 8635 |
|
138 |
|
|
139 |
K 13 |
|
140 |
svn:mime-type |
|
141 |
V 24 |
|
142 |
application/octet-stream |
|
143 |
PROPS-END |
|
144 |
GIF89aKw ? ????????????????????????????????????????????????????????????????????????????¿??????????????????????罽?????絵????賬ﮮ箮???߮?童襥???椝ݥ???????杜???皖???ߚ?敔ݕ????̙?ה????捌ߏ?指???֏???????ߊ?ύ????????zъ?惃?{{ރ?݄z?}z?||Ձ?ss?{x?ss?yv?|z????ur?}{?sr?up?||?lm?ff?sl?qq?lj?jd?kf?jj?me?de?mb?jj?nn?b_?da?da?ff?aZ?ll?\Y?ZS?WP?YY?``?RK?XN?SR?YW?TI?KQ?ZZ?JC?KKfff?GD?C;?JJ?B:?@=?DD?BB?;3?4<?==?99?GG?11?11?/*?::?33?60?**OOO?5+?77?'?)!?))?//?$,?!!?'#?-"? ??"?)&? ?))? ??$??? ??????**?"??))??!?????? - -?? |
|
145 |
Added some unit tests for the Bazaar adapter.