]> git.proxmox.com Git - mirror_spl-debian.git/blob - cmd/splat.h
New upstream version 0.6.5.10
[mirror_spl-debian.git] / cmd / splat.h
1 /*****************************************************************************\
2 * Copyright (C) 2007-2010 Lawrence Livermore National Security, LLC.
3 * Copyright (C) 2007 The Regents of the University of California.
4 * Produced at Lawrence Livermore National Laboratory (cf, DISCLAIMER).
5 * Written by Brian Behlendorf <behlendorf1@llnl.gov>.
6 * UCRL-CODE-235197
7 *
8 * This file is part of the SPL, Solaris Porting Layer.
9 * For details, see <http://zfsonlinux.org/>.
10 *
11 * The SPL is free software; you can redistribute it and/or modify it
12 * under the terms of the GNU General Public License as published by the
13 * Free Software Foundation; either version 2 of the License, or (at your
14 * option) any later version.
15 *
16 * The SPL is distributed in the hope that it will be useful, but WITHOUT
17 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
18 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
19 * for more details.
20 *
21 * You should have received a copy of the GNU General Public License along
22 * with the SPL. If not, see <http://www.gnu.org/licenses/>.
23 \*****************************************************************************/
24
25 #ifndef _SPLAT_H
26 #define _SPLAT_H
27
28 #include "list.h"
29 #include "../include/splat-ctl.h"
30
31 #define DEV_NAME "/dev/splatctl"
32 #define COLOR_BLACK "\033[0;30m"
33 #define COLOR_DK_GRAY "\033[1;30m"
34 #define COLOR_BLUE "\033[0;34m"
35 #define COLOR_LT_BLUE "\033[1;34m"
36 #define COLOR_GREEN "\033[0;32m"
37 #define COLOR_LT_GREEN "\033[1;32m"
38 #define COLOR_CYAN "\033[0;36m"
39 #define COLOR_LT_CYAN "\033[1;36m"
40 #define COLOR_RED "\033[0;31m"
41 #define COLOR_LT_RED "\033[1;31m"
42 #define COLOR_PURPLE "\033[0;35m"
43 #define COLOR_LT_PURPLE "\033[1;35m"
44 #define COLOR_BROWN "\033[0;33m"
45 #define COLOR_YELLOW "\033[1;33m"
46 #define COLOR_LT_GRAY "\033[0;37m"
47 #define COLOR_WHITE "\033[1;37m"
48 #define COLOR_RESET "\033[0m"
49
50 typedef struct subsystem {
51 splat_user_t sub_desc; /* Subsystem description */
52 List sub_tests; /* Assocated subsystem tests list */
53 } subsystem_t;
54
55 typedef struct test {
56 splat_user_t test_desc; /* Test description */
57 subsystem_t *test_sub; /* Parent subsystem */
58 } test_t;
59
60 typedef struct cmd_args {
61 int args_verbose; /* Verbose flag */
62 int args_do_list; /* Display all tests flag */
63 int args_do_all; /* Run all tests flag */
64 int args_do_color; /* Colorize output */
65 int args_exit_on_error; /* Exit on first error flag */
66 List args_tests; /* Requested subsystems/tests */
67 } cmd_args_t;
68
69 #endif /* _SPLAT_H */
70