UserInterface/Create_Test_Data [ Functions ]
FUNCTION
Create a linked list of tests.
SYNOPSIS
static void Create_Test_Data( void )
TODO
Generate this code automatically from a set of high-level specifications.
SOURCE
{ struct RB_Option_Test *cur_option_test = NULL; int i; cur_option_test = Create_New_Option_Test( TEST_MUTUAL_EXCLUDE, OPTION_FATAL ); Add_Option_Name( cur_option_test, "--singledoc" ); Add_Option_Name( cur_option_test, "--multidoc" ); Add_Option_Name( cur_option_test, "--singlefile" ); Add_Option_Test( cur_option_test ); cur_option_test = Create_New_Option_Test( TEST_MUTUAL_EXCLUDE, OPTION_FATAL ); Add_Option_Name( cur_option_test, "--html" ); Add_Option_Name( cur_option_test, "--rtf" ); Add_Option_Name( cur_option_test, "--ascii" ); Add_Option_Name( cur_option_test, "--dbxml" ); Add_Option_Name( cur_option_test, "--troff" ); Add_Option_Name( cur_option_test, "--latex" ); Add_Option_Name( cur_option_test, "--test" ); Add_Option_Test( cur_option_test ); /* Order is important here */ cur_option_test = Create_New_Option_Test( TEST_COUNT, OPTION_FATAL ); for ( i = 0; ok_options[i]; i++ ) { Add_Option_Name( cur_option_test, ok_options[i] ); } Add_Option_Test( cur_option_test ); }