netatalk
4.6.0
Free and Open Source Apple Filing Protocol (AFP) Server
Toggle main menu visibility
Loading...
Searching...
No Matches
subtests.h
Go to the documentation of this file.
1
/*
2
Copyright (c) 2010 Frank Lahm <franklahm@gmail.com>
3
4
This program is free software; you can redistribute it and/or modify
5
it under the terms of the GNU General Public License as published by
6
the Free Software Foundation; either version 2 of the License, or
7
(at your option) any later version.
8
9
This program is distributed in the hope that it will be useful,
10
but WITHOUT ANY WARRANTY; without even the implied warranty of
11
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
GNU General Public License for more details.
13
*/
14
15
#ifndef SUBTESTS_H
16
#define SUBTESTS_H
17
18
#ifdef HAVE_CONFIG_H
19
#include "
config.h
"
20
#endif
/* HAVE_CONFIG_H */
21
22
#include <errno.h>
23
#include <stdio.h>
24
#include <stdlib.h>
25
#include <string.h>
26
27
#include <
atalk/cnid.h
>
28
#include <
atalk/directory.h
>
29
#include <
atalk/globals.h
>
30
#include <
atalk/logger.h
>
31
#include <
atalk/queue.h
>
32
#include <
atalk/util.h
>
33
#include <
atalk/volume.h
>
34
35
#include "
afp_config.h
"
36
#include "
dircache.h
"
37
#include "
directory.h
"
38
#include "hash.h"
39
#include "
volume.h
"
40
41
extern
int
test001_add_x_dirs
(
const
struct
vol
*
vol
,
cnid_t
start,
cnid_t
end);
42
extern
int
test002_rem_x_dirs
(
const
struct
vol
*
vol
,
cnid_t
start,
cnid_t
end);
43
extern
int
test003_dir_add_error_no_double_free
(
struct
vol
*
vol
);
44
extern
int
test004_getmetadata_nostat_keeps_cache
(
struct
vol
*
vol
);
45
extern
int
test005_getmetadata_open_fork_outlives_path
(
struct
vol
*
vol
);
46
extern
int
test006_rflen_rfork_without_metadata
(
struct
vol
*
vol
);
47
extern
int
test007_add_over_existing_key_leaves_one
(
struct
vol
*
vol
);
48
extern
int
test008_reindex_over_stale_key_expunges
(
struct
vol
*
vol
);
49
extern
int
test009_file_add_over_curdir_did
(
struct
vol
*
vol
);
50
extern
int
test010_full_cache_accepts_adds
(
struct
vol
*
vol
,
51
unsigned
int
cache_size);
52
extern
int
dircache_test_ghost_trim_selection
(
void
);
53
#endif
/* SUBTESTS_H */
cnid_t
uint32_t cnid_t
Definition
adouble.h:157
afp_config.h
cnid.h
config.h
dircache.h
globals.h
directory.h
util.h
Netatalk utility functions.
volume.h
logger.h
queue.h
vol
Definition
include/atalk/volume.h:33
test006_rflen_rfork_without_metadata
int test006_rflen_rfork_without_metadata(struct vol *vol)
Definition
subtests.c:407
test005_getmetadata_open_fork_outlives_path
int test005_getmetadata_open_fork_outlives_path(struct vol *vol)
Definition
subtests.c:255
test010_full_cache_accepts_adds
int test010_full_cache_accepts_adds(struct vol *vol, unsigned int cache_size)
A full dircache keeps accepting inserts.
Definition
subtests.c:880
test002_rem_x_dirs
int test002_rem_x_dirs(const struct vol *vol, cnid_t start, cnid_t end)
Definition
subtests.c:91
test001_add_x_dirs
int test001_add_x_dirs(const struct vol *vol, cnid_t start, cnid_t end)
Definition
subtests.c:69
dircache_test_ghost_trim_selection
int dircache_test_ghost_trim_selection(void)
Ghost-trim selection never yields the pinned entry.
Definition
subtests.c:631
test003_dir_add_error_no_double_free
int test003_dir_add_error_no_double_free(struct vol *vol)
Definition
subtests.c:110
test009_file_add_over_curdir_did
int test009_file_add_over_curdir_did(struct vol *vol)
curdir survives its entry being expunged by a file
Definition
subtests.c:789
test007_add_over_existing_key_leaves_one
int test007_add_over_existing_key_leaves_one(struct vol *vol)
A second entry may never be published under a key already in use.
Definition
subtests.c:549
test008_reindex_over_stale_key_expunges
int test008_reindex_over_stale_key_expunges(struct vol *vol)
Re-keying onto a name a stale entry still holds retires the holder.
Definition
subtests.c:704
test004_getmetadata_nostat_keeps_cache
int test004_getmetadata_nostat_keeps_cache(struct vol *vol)
Definition
subtests.c:162
test
afpd
subtests.h
Generated by
1.18.0