Whamcloud - gitweb
c3687b9edd9a3e73274f114b03fa668ff53e7eef
[fs/lustre-release.git] / lustre / liblustre / tests / test_common.h
1 #ifndef __TEST_COMMON__H
2 #define __TEST_COMMON__H
3
4 #define ENV_LUSTRE_MNTPNT               "LIBLUSTRE_MOUNT_POINT"
5 #define ENV_LUSTRE_MNTTGT               "LIBLUSTRE_MOUNT_TARGET"
6 #define ENV_LUSTRE_TIMEOUT              "LIBLUSTRE_TIMEOUT"
7 #define ENV_LUSTRE_DUMPFILE             "LIBLUSTRE_DUMPFILE"
8
9 extern int exit_on_err;
10
11 void t_touch(const char *path);
12 void t_create(const char *path);
13 void t_link(const char *src, const char *dst);
14 void t_unlink(const char *path);
15 void t_mkdir(const char *path);
16 void t_rmdir(const char *path);
17 void t_symlink(const char *src, const char *new);
18 void t_mknod(const char *path, mode_t mode, int major, int minor);
19 void t_chmod_raw(const char *path, mode_t mode);
20 void t_chmod(const char *path, const char *format, ...);
21 void t_rename(const char *oldpath, const char *newpath);
22 int t_open_readonly(const char *path);
23 int t_open(const char *path);
24 int t_opendir(const char *path);
25 void t_close(int fd);
26 int t_check_stat(const char *name, struct stat *buf);
27 int t_check_stat_fail(const char *name);
28 void t_echo_create(const char *path, const char *str);
29 void t_grep(const char *path, char *str);
30 void t_grep_v(const char *path, char *str);
31 void t_ls(int fd, char *buf, int size);
32
33 #endif