rsp_regr_vu_st.c
5.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
#include <sys/types.h>
#ifdef __sgi__
#include <sys/sbd.h>
#endif
#include <sys/stat.h>
#include <sys/mman.h>
#ifdef __sgi__
#include <sys/sema.h>
#endif
#include <netinet/in.h>
#include <errno.h>
#include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>
#include <getopt.h>
#include <rcp.h>
#include <rsp.h>
/* From $ROOT/usr/include/ide, which is installed from PR/diags/include */
#include "diag.h"
#include "dbg_comm.h"
#define RSP_TEST_BASE 001
static int NumFailures = 0;
/* From rsp_regr_common.c: */
extern int generic_rsp_regression (const char *file_name);
extern void imem_init(FILE *file_p);
extern int rsp_regrInit();
extern int rsp_regrDo(TEST_REF *test_ref);
extern int rsp_regr(TEST_REF TestRefs[]);
int sbv1();
int sbv2();
int sbv3();
int sbv4();
int sdv1();
int sdv2();
int sdv3();
int sdv4();
int sfv1();
int sfv2();
int shv1();
int shv2();
int slv1();
int slv2();
int slv3();
int slv4();
int spv1();
int spv2();
int spv3();
int spv4();
int sqv1();
int sqv2();
int sqv3();
int sqv4();
int srv1();
int srv2();
int srv3();
int srv4();
int ssv1();
int ssv2();
int ssv3();
int ssv4();
int stv1();
int suv1();
int suv2();
int suv3();
int suv4();
int swv1();
/*
* An array of tests, each of which corresponds to a separate menu
* item callable from the master ide menu.
*/
static TEST_REF TestRefs[] = {
{"sbv1", RSP_TEST_BASE+0, sbv1},
{"sbv2", RSP_TEST_BASE+1, sbv2},
{"sbv3", RSP_TEST_BASE+2, sbv3},
{"sbv4", RSP_TEST_BASE+3, sbv4},
{"sdv1", RSP_TEST_BASE+4, sdv1},
{"sdv2", RSP_TEST_BASE+5, sdv2},
{"sdv3", RSP_TEST_BASE+6, sdv3},
{"sdv4", RSP_TEST_BASE+7, sdv4},
{"sfv1", RSP_TEST_BASE+8, sfv1},
{"sfv2", RSP_TEST_BASE+9, sfv2},
{"shv1", RSP_TEST_BASE+10, shv1},
{"shv2", RSP_TEST_BASE+11, shv2},
{"slv1", RSP_TEST_BASE+12, slv1},
{"slv2", RSP_TEST_BASE+13, slv2},
{"slv3", RSP_TEST_BASE+14, slv3},
{"slv4", RSP_TEST_BASE+15, slv4},
{"spv1", RSP_TEST_BASE+16, spv1},
{"spv2", RSP_TEST_BASE+17, spv2},
{"spv3", RSP_TEST_BASE+18, spv3},
{"spv4", RSP_TEST_BASE+19, spv4},
{"sqv1", RSP_TEST_BASE+20, sqv1},
{"sqv2", RSP_TEST_BASE+21, sqv2},
{"sqv3", RSP_TEST_BASE+22, sqv3},
{"sqv4", RSP_TEST_BASE+23, sqv4},
{"srv1", RSP_TEST_BASE+24, srv1},
{"srv2", RSP_TEST_BASE+25, srv2},
{"srv3", RSP_TEST_BASE+26, srv3},
{"srv4", RSP_TEST_BASE+27, srv4},
{"ssv1", RSP_TEST_BASE+28, ssv1},
{"ssv2", RSP_TEST_BASE+29, ssv2},
{"ssv3", RSP_TEST_BASE+30, ssv3},
{"ssv4", RSP_TEST_BASE+31, ssv4},
{"stv1", RSP_TEST_BASE+32, stv1},
{"suv1", RSP_TEST_BASE+33, suv1},
{"suv2", RSP_TEST_BASE+34, suv2},
{"suv3", RSP_TEST_BASE+35, suv3},
{"suv4", RSP_TEST_BASE+36, suv4},
{"swv1", RSP_TEST_BASE+37, swv1},
{"",0,0}
};
static int failed_tests[512];
/*
* diagnostic entry point:
*
* Each separately invokable ide diagnostic command corresponds to an
* independent ".c" module; the entry point herein must match
* the test name as specified in the rspcmd.awk script. These command
* names correspond to the names you see from the ide menu. For this
* module, there will be an ide command "rsp_regr".
*/
int rsp_regr_vu_st(void) {rsp_regr(TestRefs);}
/*
* Tests
*/
int sbv1() {return generic_rsp_regression("tests/sbv2");}
int sbv2() {return generic_rsp_regression("tests/sbv2");}
int sbv3() {return generic_rsp_regression("tests/sbv3");}
int sbv4() {return generic_rsp_regression("tests/sbv4");}
int sdv1() {return generic_rsp_regression("tests/sdv1");}
int sdv2() {return generic_rsp_regression("tests/sdv2");}
int sdv3() {return generic_rsp_regression("tests/sdv3");}
int sdv4() {return generic_rsp_regression("tests/sdv4");}
int sfv1() {return generic_rsp_regression("tests/sfv1");}
int sfv2() {return generic_rsp_regression("tests/sfv2");}
int shv1() {return generic_rsp_regression("tests/shv1");}
int shv2() {return generic_rsp_regression("tests/shv2");}
int slv1() {return generic_rsp_regression("tests/slv1");}
int slv2() {return generic_rsp_regression("tests/slv2");}
int slv3() {return generic_rsp_regression("tests/slv3");}
int slv4() {return generic_rsp_regression("tests/slv4");}
int spv1() {return generic_rsp_regression("tests/spv1");}
int spv2() {return generic_rsp_regression("tests/spv2");}
int spv3() {return generic_rsp_regression("tests/spv3");}
int spv4() {return generic_rsp_regression("tests/spv4");}
int sqv1() {return generic_rsp_regression("tests/sqv1");}
int sqv2() {return generic_rsp_regression("tests/sqv2");}
int sqv3() {return generic_rsp_regression("tests/sqv3");}
int sqv4() {return generic_rsp_regression("tests/sqv4");}
int srv1() {return generic_rsp_regression("tests/srv1");}
int srv2() {return generic_rsp_regression("tests/srv2");}
int srv3() {return generic_rsp_regression("tests/srv3");}
int srv4() {return generic_rsp_regression("tests/srv4");}
int ssv1() {return generic_rsp_regression("tests/ssv1");}
int ssv2() {return generic_rsp_regression("tests/ssv2");}
int ssv3() {return generic_rsp_regression("tests/ssv3");}
int ssv4() {return generic_rsp_regression("tests/ssv4");}
int stv1() {return generic_rsp_regression("tests/stv1");}
int suv1() {return generic_rsp_regression("tests/suv1");}
int suv2() {return generic_rsp_regression("tests/suv2");}
int suv3() {return generic_rsp_regression("tests/suv3");}
int suv4() {return generic_rsp_regression("tests/suv4");}
int swv1() {return generic_rsp_regression("tests/swv1");}