rsp_regr_vu_ld.c
4.32 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
#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 lbv1();
int lbv2();
int lbv3();
int ldv1();
int ldv2();
int ldv3();
int lfv1();
int lfv2();
int lhv1();
int lhv2();
int llv1();
int llv2();
int llv3();
int lpv1();
int lpv2();
int lpv3();
int lqv1();
int lqv2();
int lqv3();
int lrv1();
int lrv2();
int lrv3();
int lsv1();
int lsv2();
int lsv3();
int ltv1();
int luv1();
int luv2();
int luv3();
/*
* An array of tests, each of which corresponds to a separate menu
* item callable from the master ide menu.
*/
static TEST_REF TestRefs[] = {
{"lbv1", RSP_TEST_BASE+0, lbv1},
{"lbv2", RSP_TEST_BASE+1, lbv2},
{"lbv3", RSP_TEST_BASE+2, lbv3},
{"ldv1", RSP_TEST_BASE+3, ldv1},
{"ldv2", RSP_TEST_BASE+4, ldv2},
{"ldv3", RSP_TEST_BASE+5, ldv3},
{"lfv1", RSP_TEST_BASE+6, lfv1},
{"lfv2", RSP_TEST_BASE+7, lfv2},
{"lhv1", RSP_TEST_BASE+8, lhv1},
{"lhv2", RSP_TEST_BASE+9, lhv2},
{"llv1", RSP_TEST_BASE+10, llv1},
{"llv2", RSP_TEST_BASE+11, llv2},
{"llv3", RSP_TEST_BASE+12, llv3},
{"lpv1", RSP_TEST_BASE+13, lpv1},
{"lpv2", RSP_TEST_BASE+14, lpv2},
{"lpv3", RSP_TEST_BASE+15, lpv3},
{"lqv1", RSP_TEST_BASE+16, lqv1},
{"lqv2", RSP_TEST_BASE+17, lqv2},
{"lqv3", RSP_TEST_BASE+18, lqv3},
{"lrv1", RSP_TEST_BASE+19, lrv1},
{"lrv2", RSP_TEST_BASE+20, lrv2},
{"lrv3", RSP_TEST_BASE+21, lrv3},
{"lsv1", RSP_TEST_BASE+22, lsv1},
{"lsv2", RSP_TEST_BASE+23, lsv2},
{"lsv3", RSP_TEST_BASE+24, lsv3},
{"ltv1", RSP_TEST_BASE+25, ltv1},
{"luv1", RSP_TEST_BASE+26, luv1},
{"luv2", RSP_TEST_BASE+27, luv2},
{"luv3", RSP_TEST_BASE+28, luv3},
{"",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_ld(void) {rsp_regr(TestRefs);}
/*
* Tests
*/
int lbv1() {return generic_rsp_regression("tests/lbv1");}
int lbv2() {return generic_rsp_regression("tests/lbv2");}
int lbv3() {return generic_rsp_regression("tests/lbv3");}
int ldv1() {return generic_rsp_regression("tests/ldv1");}
int ldv2() {return generic_rsp_regression("tests/ldv2");}
int ldv3() {return generic_rsp_regression("tests/ldv3");}
int lfv1() {return generic_rsp_regression("tests/lfv1");}
int lfv2() {return generic_rsp_regression("tests/lfv2");}
int lhv1() {return generic_rsp_regression("tests/lhv1");}
int lhv2() {return generic_rsp_regression("tests/lhv2");}
int llv1() {return generic_rsp_regression("tests/llv1");}
int llv2() {return generic_rsp_regression("tests/llv2");}
int llv3() {return generic_rsp_regression("tests/llv3");}
int lpv1() {return generic_rsp_regression("tests/lpv1");}
int lpv2() {return generic_rsp_regression("tests/lpv2");}
int lpv3() {return generic_rsp_regression("tests/lpv3");}
int lqv1() {return generic_rsp_regression("tests/lqv1");}
int lqv2() {return generic_rsp_regression("tests/lqv2");}
int lqv3() {return generic_rsp_regression("tests/lqv3");}
int lrv1() {return generic_rsp_regression("tests/lrv1");}
int lrv2() {return generic_rsp_regression("tests/lrv2");}
int lrv3() {return generic_rsp_regression("tests/lrv3");}
int lsv1() {return generic_rsp_regression("tests/lsv1");}
int lsv2() {return generic_rsp_regression("tests/lsv2");}
int lsv3() {return generic_rsp_regression("tests/lsv3");}
int ltv1() {return generic_rsp_regression("tests/ltv1");}
int luv1() {return generic_rsp_regression("tests/luv1");}
int luv2() {return generic_rsp_regression("tests/luv2");}
int luv3() {return generic_rsp_regression("tests/luv3");}