~svn/ubuntu/oneiric/subversion/ppa

« back to all changes in this revision

Viewing changes to subversion/tests/svn_test_fs.h

  • Committer: Max Bowsher
  • Date: 2012-06-27 12:25:12 UTC
  • mfrom: (44.1.46 precise)
  • Revision ID: _@maxb.eu-20120627122512-kmo8fj0lr7mlkppj
Make tree identical to precise branch.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* fs-helpers.c --- tests for the filesystem
 
1
/* svn_test_fs.h --- test helpers for the filesystem
2
2
 *
3
3
 * ====================================================================
4
 
 * Copyright (c) 2000-2004 CollabNet.  All rights reserved.
5
 
 *
6
 
 * This software is licensed as described in the file COPYING, which
7
 
 * you should have received as part of this distribution.  The terms
8
 
 * are also available at http://subversion.tigris.org/license-1.html.
9
 
 * If newer versions of this license are posted there, you may use a
10
 
 * newer version instead, at your option.
11
 
 *
12
 
 * This software consists of voluntary contributions made by many
13
 
 * individuals.  For exact contribution history, see the revision
14
 
 * history and logs, available at http://subversion.tigris.org/.
 
4
 *    Licensed to the Apache Software Foundation (ASF) under one
 
5
 *    or more contributor license agreements.  See the NOTICE file
 
6
 *    distributed with this work for additional information
 
7
 *    regarding copyright ownership.  The ASF licenses this file
 
8
 *    to you under the Apache License, Version 2.0 (the
 
9
 *    "License"); you may not use this file except in compliance
 
10
 *    with the License.  You may obtain a copy of the License at
 
11
 *
 
12
 *      http://www.apache.org/licenses/LICENSE-2.0
 
13
 *
 
14
 *    Unless required by applicable law or agreed to in writing,
 
15
 *    software distributed under the License is distributed on an
 
16
 *    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
 
17
 *    KIND, either express or implied.  See the License for the
 
18
 *    specific language governing permissions and limitations
 
19
 *    under the License.
15
20
 * ====================================================================
16
21
 */
17
22
 
18
 
#ifndef SVN_TEST__FS_HELPERS_H
19
 
#define SVN_TEST__FS_HELPERS_H
 
23
#ifndef SVN_TEST_FS_H
 
24
#define SVN_TEST_FS_H
20
25
 
21
26
#include <apr_pools.h>
22
27
#include "svn_error.h"
47
52
svn_error_t *
48
53
svn_test__create_bdb_fs(svn_fs_t **fs_p,
49
54
                        const char *name,
50
 
                        svn_test_opts_t *opts,
 
55
                        const svn_test_opts_t *opts,
51
56
                        apr_pool_t *pool);
52
57
 
53
58
 
56
61
svn_error_t *
57
62
svn_test__create_fs(svn_fs_t **fs_p,
58
63
                    const char *name,
59
 
                    svn_test_opts_t *opts,
 
64
                    const svn_test_opts_t *opts,
60
65
                    apr_pool_t *pool);
61
66
 
62
67
 
65
70
svn_error_t *
66
71
svn_test__create_repos(svn_repos_t **repos_p,
67
72
                       const char *name,
68
 
                       svn_test_opts_t *opts,
 
73
                       const svn_test_opts_t *opts,
69
74
                       apr_pool_t *pool);
70
75
 
71
 
 
72
76
/* Read all data from a generic read STREAM, and return it in STRING.
73
 
   Allocate the svn_stringbuf_t in APRPOOL.  (All data in STRING will be
74
 
   dup'ed from STREAM using APRPOOL too.) */
 
77
   Allocate the svn_stringbuf_t in POOL.  (All data in STRING will be
 
78
   dup'ed from STREAM using POOL too.) */
75
79
svn_error_t *
76
80
svn_test__stream_to_string(svn_stringbuf_t **string,
77
81
                           svn_stream_t *stream,
120
124
/* Given a transaction or revision root (ROOT), check to see if the
121
125
   tree that grows from that root has all the path entries, and only
122
126
   those entries, passed in the array ENTRIES (which is an array of
123
 
   NUM_ENTRIES tree_test_entry_t's).  */
 
127
   NUM_ENTRIES svn_test__tree_entry_t's).  */
124
128
svn_error_t *
125
129
svn_test__validate_tree(svn_fs_root_t *root,
126
130
                        svn_test__tree_entry_t *entries,
164
168
svn_test__create_greek_tree(svn_fs_root_t *txn_root,
165
169
                            apr_pool_t *pool);
166
170
 
 
171
/* Create the Greek Tree under TXN_ROOT at dir ROOT_DIR.  */
 
172
svn_error_t *
 
173
svn_test__create_greek_tree_at(svn_fs_root_t *txn_root,
 
174
                               const char *root_dir,
 
175
                               apr_pool_t *pool);
 
176
 
 
177
/* Create a new repository with a greek tree, trunk, branch and some
 
178
   merges between them. */
 
179
svn_error_t *
 
180
svn_test__create_blame_repository(svn_repos_t **out_repos,
 
181
                                  const char *test_name,
 
182
                                  const svn_test_opts_t *opts,
 
183
                                  apr_pool_t *pool);
167
184
 
168
185
#ifdef __cplusplus
169
186
}
170
187
#endif /* __cplusplus */
171
188
 
172
 
#endif  /* SVN_TEST__FS_HELPERS_H */
 
189
#endif  /* SVN_TEST_FS_H */