netatalk  4.6.0
Free and Open Source Apple Filing Protocol (AFP) Server
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
41extern int test001_add_x_dirs(const struct vol *vol, cnid_t start, cnid_t end);
42extern int test002_rem_x_dirs(const struct vol *vol, cnid_t start, cnid_t end);
49extern int test009_file_add_over_curdir_did(struct vol *vol);
50extern int test010_full_cache_accepts_adds(struct vol *vol,
51 unsigned int cache_size);
53#endif /* SUBTESTS_H */
uint32_t cnid_t
Definition adouble.h:157
Netatalk utility functions.
Definition include/atalk/volume.h:33
int test006_rflen_rfork_without_metadata(struct vol *vol)
Definition subtests.c:407
int test005_getmetadata_open_fork_outlives_path(struct vol *vol)
Definition subtests.c:255
int test010_full_cache_accepts_adds(struct vol *vol, unsigned int cache_size)
A full dircache keeps accepting inserts.
Definition subtests.c:880
int test002_rem_x_dirs(const struct vol *vol, cnid_t start, cnid_t end)
Definition subtests.c:91
int test001_add_x_dirs(const struct vol *vol, cnid_t start, cnid_t end)
Definition subtests.c:69
int dircache_test_ghost_trim_selection(void)
Ghost-trim selection never yields the pinned entry.
Definition subtests.c:631
int test003_dir_add_error_no_double_free(struct vol *vol)
Definition subtests.c:110
int test009_file_add_over_curdir_did(struct vol *vol)
curdir survives its entry being expunged by a file
Definition subtests.c:789
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
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
int test004_getmetadata_nostat_keeps_cache(struct vol *vol)
Definition subtests.c:162