Annotation of 43BSDReno/contrib/isode-beta/pepsy/test_table.h, revision 1.1.1.1

1.1       root        1: /* test_table.h */
                      2: 
                      3: /* 
                      4:  * $Header: /f/osi/pepsy/RCS/test_table.h,v 7.0 90/07/01 19:54:46 mrose Exp $
                      5:  *
                      6:  *
                      7:  * $Log:       test_table.h,v $
                      8:  * Revision 7.0  90/07/01  19:54:46  mrose
                      9:  * *** empty log message ***
                     10:  * 
                     11:  */
                     12: 
                     13: /*
                     14:  *                               NOTICE
                     15:  *
                     16:  *    Acquisition, use, and distribution of this module and related
                     17:  *    materials are subject to the restrictions of a license agreement.
                     18:  *    Consult the Preface in the User's Manual for the full terms of
                     19:  *    this agreement.
                     20:  *
                     21:  */
                     22: 
                     23: 
                     24: /*
                     25:  * This contains the information about each test case necessary to test it
                     26:  * e.g. size, name
                     27:  */
                     28: 
                     29:  struct tst_typ {
                     30:        char    *tst_name;      /* Name for error messages */
                     31:        unsigned int    tst_size; /* Size of its data structure in bytes */
                     32:        int     tst_entry;      /* entry for decoding/encoding */
                     33:        int     tst_tests;      /* How many values of the t_test variable
                     34:                                 * to try it with
                     35:                                 */
                     36: #define NOENTRY                -1
                     37:        }  t_case[] = {
                     38:        /* MPDU */
                     39:        { "MPDU", sizeof (struct type_T1_MPDU), _ZMPDUT1, 1, },
                     40: #define TY_MPDU        0       
                     41:        { "Embedded", sizeof (struct type_T1_Embedded), _ZEmbeddedT1, 1, },
                     42: #define TY_EMBEDDED    1       
                     43:        { "Strings", sizeof (struct type_T1_Strings), _ZStringsT1, 1, },
                     44: #define TY_STRINGS     2       
                     45:        { "Embedded Strings", sizeof (struct type_T1_Emb__Strings),
                     46:            _ZEmb_StringsT1, 1, },
                     47: #define TY_EMB_STRINGS 3       
                     48:        { "Implicit tags", sizeof (struct type_T1_Impl__Tags),
                     49:            _ZImpl_TagsT1, 1, },
                     50: #define TY_IMPLICIT    4       
                     51:        { "Explicit tags", sizeof (struct type_T1_Expl__Tags),
                     52:            _ZExpl_TagsT1, 1, },
                     53: #define TY_EXPLICIT    5       
                     54:        { "SEQ OF and SET OF", sizeof (struct type_T1_Seqof__Test),
                     55:            _ZSeqof_TestT1, 10, },
                     56: #define TY_SEQOF       6       
                     57:        { "Seqof Test 1", sizeof (struct element_T1_4), NOENTRY, 0, },
                     58: #define TY_ELEMENT4    7       
                     59:        { "Set of Test 1", sizeof (struct member_T1_2), NOENTRY, 0, },
                     60: #define TY_MEMBER2     8       
                     61:        { "Seq of Test 2", sizeof (struct element_T1_6), NOENTRY, 0, },
                     62: #define TY_ELEMENT6    9       
                     63:        { "Seq of Sequence test", sizeof (struct element_T1_8), NOENTRY, 0, },
                     64: #define TY_ELEMENT8    10      
                     65:        { "Set of Test 2", sizeof (struct member_T1_4), NOENTRY, 0, },
                     66: #define TY_MEMBER4     11      
                     67:        { "Set of Sequence", sizeof (struct element_T1_9), NOENTRY, 0, },
                     68: #define TY_ELEMENT9    12      
                     69:        { "Choice", sizeof (struct type_T1_Choice__Test), _ZChoice_TestT1, 7, },
                     70: #define TY_CHOICE      13      
                     71:        { "Choice test 0", sizeof (struct choice_T1_0), NOENTRY, 0, },
                     72: #define TY_CHOICE0     14      
                     73:        { "Choice test 1", sizeof (struct choice_T1_1), NOENTRY, 0, },
                     74: #define TY_CHOICE1     15
                     75:        { "Choice test 2", sizeof (struct choice_T1_2), NOENTRY, 0, },
                     76: #define TY_CHOICE2     16
                     77:        { "Element 10", sizeof (struct element_T1_10), NOENTRY, 0, },
                     78: #define TY_ELEMENT10   17
                     79:        { "Member 6", sizeof (struct member_T1_6), NOENTRY, 0, },
                     80: #define TY_MEMBER6     18
                     81:        { "Element 11", sizeof (struct element_T1_11), NOENTRY, 0, },
                     82: #define TY_ELEMENT11   19
                     83:        { "Choice test 3", sizeof (struct choice_T1_3), NOENTRY, 0, },
                     84: #define TY_CHOICE3     20
                     85:        { "Optional test", sizeof (struct type_T1_Opt__Strings), _ZOpt_StringsT1,
                     86:        8, },
                     87: #define TY_OPTIONAL    21
                     88:        { "Element 12", sizeof (struct element_T1_12), NOENTRY, 0, },
                     89: #define TY_ELEMENT12   22
                     90:        { "Member 7", sizeof (struct member_T1_7), NOENTRY, 0, },
                     91: #define TY_MEMBER7     23
                     92:        { "Choice test 4", sizeof (struct choice_T1_4), NOENTRY, 0, },
                     93: #define TY_CHOICE4     24
                     94:        { "Default test", sizeof (struct type_T1_Def__Strings), _ZDef_StringsT1,
                     95:        12, },
                     96: #define TY_DEFAULT     25
                     97:        { "Element 13", sizeof (struct element_T1_13), NOENTRY, 0, },
                     98: #define TY_ELEMENT13   26
                     99:        { "Member 8", sizeof (struct member_T1_8), NOENTRY, 0, },
                    100: #define TY_MEMBER8     27
                    101:        { "External References", sizeof (struct type_T1_E__ref), _ZE_refT1, 6,},
                    102: #define TY_EXTREF      28
                    103:        { "T2 Info", sizeof (struct type_T2_Info), NOENTRY, 0, },
                    104: #define TY_T2_INFO     29
                    105:        { "T2 MPDU", sizeof (struct type_T2_MPDU), NOENTRY, 0, },
                    106: #define TY_T2_MPDU     30
                    107:        { "T2 ELEMENT 0", sizeof (struct element_T2_0), NOENTRY, 0, },
                    108: #define TY_T2_ELEM0    31
                    109:        { "Optimised", sizeof (struct type_T1_Optimised), _ZOptimisedT1, 8, },
                    110: #define TY_OPTIMISED   32
                    111:        { "MEMBER 9", sizeof (struct member_T1_9), NOENTRY, 0, },
                    112: #define TY_MEMBER9     33
                    113:        { "EXTERNAL", sizeof (struct type_T1_Ext__typ), _ZExt_typT1, 6, },
                    114: #define TY_EXTERNAL    34
                    115:        { "Single EXTERNAL", sizeof (struct type_T1_SExt), _ZSExtT1, 1, },
                    116: #define TY_SEXTERNAL   35
                    117:        { "Explicit Tagged Objects", sizeof (struct type_T1_Etags), _ZEtagsT1, 3, },
                    118: #define TY_ETAGOBJ     36
                    119:        { "Single Objects", sizeof (struct type_T1_Stest), _ZStestT1, 4, },
                    120: #define TY_STEST       37
                    121:        { "Single Integer", sizeof (struct type_T1_Sint), NOENTRY, 0, },
                    122: #define TY_SINT                38
                    123:        { "Enumerated Type", sizeof (struct type_T1_Enum__type), _ZEnum_typeT1,
                    124:        4, },
                    125: #define TY_ETYPE       39
                    126:        { "Tests of Enumerated type", sizeof (struct type_T1_T__enum),
                    127:        _ZT_enumT1, 4, },
                    128: #define TY_ENUM_TEST   40
                    129: #define TY_REAL                41
                    130: #ifdef PEPSY_REALS
                    131:        { "Real", sizeof (struct type_T1_Real), _ZRealT1, 3, },
                    132: 
                    133:        { "Tests of Real type", sizeof (struct type_T1_T__real),
                    134:        _ZT_realT1, 4, },
                    135: #endif
                    136: #define TY_REAL_TEST   42
                    137:        };
                    138: 
                    139: #define MAXTCASE       (sizeof (t_case)/sizeof (t_case[0]))

unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.