1
/* fs-helpers.c --- tests for the filesystem
1
/* svn_test_fs.h --- test helpers for the filesystem
3
3
* ====================================================================
4
* Copyright (c) 2000-2004 CollabNet. All rights reserved.
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.
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
12
* http://www.apache.org/licenses/LICENSE-2.0
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
15
20
* ====================================================================
18
#ifndef SVN_TEST__FS_HELPERS_H
19
#define SVN_TEST__FS_HELPERS_H
21
26
#include <apr_pools.h>
22
27
#include "svn_error.h"
66
71
svn_test__create_repos(svn_repos_t **repos_p,
68
svn_test_opts_t *opts,
73
const svn_test_opts_t *opts,
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.) */
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). */
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);
171
/* Create the Greek Tree under TXN_ROOT at dir ROOT_DIR. */
173
svn_test__create_greek_tree_at(svn_fs_root_t *txn_root,
174
const char *root_dir,
177
/* Create a new repository with a greek tree, trunk, branch and some
178
merges between them. */
180
svn_test__create_blame_repository(svn_repos_t **out_repos,
181
const char *test_name,
182
const svn_test_opts_t *opts,
168
185
#ifdef __cplusplus
170
187
#endif /* __cplusplus */
172
#endif /* SVN_TEST__FS_HELPERS_H */
189
#endif /* SVN_TEST_FS_H */