Defines | |
#define | MODULE_ID "XSH_EXTRACT" |
#define | MODULE_ID "XSH_FLAT_MERGE" |
#define | SYNTAX |
Enumerations | |
enum | { METHOD_OPT, DEBUG_OPT, HELP_OPT } |
Functions | |
static void | Help (void) |
static void | HandleOptions (int argc, char **argv, xsh_extract_param *extract_par) |
static void | analyse_extraction (cpl_frame *rec_frame, xsh_instrument *instr) |
int | main (int argc, char **argv) |
Unit test of xsh_extract. | |
Variables | |
static struct option | long_options [] |
#define MODULE_ID "XSH_FLAT_MERGE" |
Definition at line 65 of file test-xsh_flat_merge.c.
#define MODULE_ID "XSH_EXTRACT" |
Definition at line 65 of file test-xsh_extract.c.
#define SYNTAX |
"Test the flat merge function\n"\ "use : ./test_xsh_flat_merge QTH_FRAME QTH_ORDER_TAB D2_FRAME D2_ORDER_TAB"\ " SPECTRAL_TAB\n"\ "QTH_FRAME => the qth flat frame\n"\ "QTH_ORDER_TAB => the qth order table\n"\ "D2_FRAME => the d2 flat frame\n"\ "D2_ORDER_TAB => the d2 order table\n"\
Definition at line 67 of file test-xsh_flat_merge.c.
anonymous enum |
Definition at line 67 of file test-xsh_extract.c.
static void analyse_extraction | ( | cpl_frame * | rec_frame, | |
xsh_instrument * | instr | |||
) | [static] |
Definition at line 145 of file test-xsh_extract.c.
References check, order, xsh_rec_list::size, XSH_ASSURE_NOT_NULL, xsh_msg, xsh_rec_list_free(), xsh_rec_list_get_data1(), xsh_rec_list_get_errs1(), xsh_rec_list_get_lambda(), xsh_rec_list_get_nlambda(), xsh_rec_list_get_order(), and xsh_rec_list_load().
static void HandleOptions | ( | int | argc, | |
char ** | argv, | |||
xsh_extract_param * | extract_par | |||
) | [static] |
Definition at line 95 of file test-xsh_extract.c.
References DEBUG_OPT, EXTRACT_METHOD_PRINT, FULL_METHOD, Help(), HELP_OPT, LOCALIZATION_METHOD, long_options, xsh_extract_param::method, METHOD_OPT, NOD_METHOD, XSH_DEBUG_LEVEL_HIGH, XSH_DEBUG_LEVEL_LOW, xsh_debug_level_set(), and xsh_msg.
static void Help | ( | void | ) | [static] |
Definition at line 78 of file test-xsh_extract.c.
References TEST_END.
Referenced by HandleOptions().
int main | ( | int | argc, | |
char ** | argv | |||
) |
Unit test of xsh_extract.
Unit test of xsh_flat_merge.
Definition at line 86 of file test-xsh_flat_merge.c.
References check, instrument, MODULE_ID, SYNTAX, TESTS_INIT, XSH_ARM_UVB, XSH_DEBUG_LEVEL_MEDIUM, xsh_debug_level_set(), xsh_error_dump, xsh_flat_merge_qth_d2(), xsh_instrument_get_config(), xsh_instrument_new(), xsh_instrument_set_arm(), xsh_instrument_set_lamp(), xsh_instrument_set_mode(), XSH_LAMP_QTH_D2, XSH_MODE_SLIT, and xsh_msg.
struct option long_options[] [static] |
{ {"method", required_argument, 0, METHOD_OPT}, {"debug", required_argument, 0, DEBUG_OPT}, {"help", 0, 0, HELP_OPT}, {0, 0, 0, 0} }
Definition at line 71 of file test-xsh_extract.c.
Referenced by HandleOptions().