Test model functionality
[Unit Tests]

Defines

#define MODULE_ID   "XSH_MODEL_MAPS_CREATE"
#define SYNTAX

Enumerations

enum  { BINX_OPT, BINY_OPT }

Functions

static void HandleOptions (int argc, char **argv)
int main (int argc, char **argv)

Variables

static const char * Options = "?"
 Unit test of xsh_model_maps_create.
static struct option LongOptions []
static char mode [32]
int binx = 1
int biny = 1

Define Documentation

#define MODULE_ID   "XSH_MODEL_MAPS_CREATE"

Definition at line 64 of file test-xsh_model_maps_create.c.

#define SYNTAX
Value:
"Create a wave and a slit map from model\n"\
  "use : ./test_xsh_model_maps_create SOF\n"\
  "SOF => model config and arclist\n"\
  "Options:\n"\
  " --binx=<n>     : binning in X (default 1)\n"\
  " --biny=<n>     : binning in Y (default 1)\n"

Definition at line 65 of file test-xsh_model_maps_create.c.


Enumeration Type Documentation

anonymous enum
Enumerator:
BINX_OPT 
BINY_OPT 

Definition at line 89 of file test-xsh_model_maps_create.c.


Function Documentation

static void HandleOptions ( int  argc,
char **  argv 
) [static]

Definition at line 103 of file test-xsh_model_maps_create.c.

References binx, BINX_OPT, biny, BINY_OPT, LongOptions, mode, Options, SYNTAX, and TEST_END.

Referenced by main().

int main ( int  argc,
char **  argv 
)

Variable Documentation

int binx = 1

Definition at line 100 of file test-xsh_model_maps_create.c.

int biny = 1

Definition at line 101 of file test-xsh_model_maps_create.c.

struct option LongOptions[] [static]
Initial value:
 {
  {"binx", required_argument, 0, BINX_OPT},
  {"biny", required_argument, 0, BINY_OPT},

  {NULL, 0, 0, 0}
}

Definition at line 93 of file test-xsh_model_maps_create.c.

Referenced by HandleOptions().

char mode[32] [static]

Definition at line 99 of file test-xsh_model_maps_create.c.

const char* Options = "?" [static]

Unit test of xsh_model_maps_create.

Returns:
0 if success

Definition at line 87 of file test-xsh_model_maps_create.c.

Referenced by HandleOptions().


Generated on 9 Mar 2011 for X-shooter Pipeline Reference Manual by  doxygen 1.6.1