]>
Commit | Line | Data |
---|---|---|
716154c5 BB |
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>. | |
715f6251 | 6 | * UCRL-CODE-235197 |
7 | * | |
716154c5 | 8 | * This file is part of the SPL, Solaris Porting Layer. |
3d6af2dd | 9 | * For details, see <http://zfsonlinux.org/>. |
716154c5 BB |
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. | |
715f6251 | 15 | * |
716154c5 | 16 | * The SPL is distributed in the hope that it will be useful, but WITHOUT |
715f6251 | 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 | |
716154c5 BB |
22 | * with the SPL. If not, see <http://www.gnu.org/licenses/>. |
23 | \*****************************************************************************/ | |
715f6251 | 24 | |
564f6d15 | 25 | #ifndef _SPLAT_H |
26 | #define _SPLAT_H | |
f1ca4da6 | 27 | |
564f6d15 | 28 | #include "list.h" |
f4b37741 | 29 | #include "../include/splat-ctl.h" |
f1ca4da6 | 30 | |
7c50328b | 31 | #define DEV_NAME "/dev/splatctl" |
f1ca4da6 | 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 { | |
7c50328b | 51 | splat_user_t sub_desc; /* Subsystem description */ |
564f6d15 | 52 | List sub_tests; /* Assocated subsystem tests list */ |
f1ca4da6 | 53 | } subsystem_t; |
54 | ||
55 | typedef struct test { | |
7c50328b | 56 | splat_user_t test_desc; /* Test description */ |
f1ca4da6 | 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 */ | |
564f6d15 | 66 | List args_tests; /* Requested subsystems/tests */ |
f1ca4da6 | 67 | } cmd_args_t; |
68 | ||
564f6d15 | 69 | #endif /* _SPLAT_H */ |
f1ca4da6 | 70 |