rsp_regr_vu_cmp.c 3.62 KB
#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 veq_dbl_v();
int veq_h();
int veq_q();
int veq_v();
int veq_w();
int vge_dbl_v();
int vge_h();
int vge_q();
int vge_v();
int vge_w();
int vlt_dbl_v();
int vlt_h();
int vlt_q();
int vlt_v();
int vlt_w();
int vne_dbl_v();
int vne_h();
int vne_q();
int vne_v();
int vne_w();

/*
 * An array of tests, each of which corresponds to a separate menu
 * item callable from the master ide menu.
 */
static TEST_REF TestRefs[] = {
  {"veq_dbl_v", 		RSP_TEST_BASE+0, veq_dbl_v},
  {"veq_h", 			RSP_TEST_BASE+1, veq_h},
  {"veq_q", 			RSP_TEST_BASE+2, veq_q},
  {"veq_v", 			RSP_TEST_BASE+3, veq_v},
  {"veq_w", 			RSP_TEST_BASE+4, veq_w},
  {"vge_dbl_v", 		RSP_TEST_BASE+5, vge_dbl_v},
  {"vge_h", 			RSP_TEST_BASE+6, vge_h},
  {"vge_q", 			RSP_TEST_BASE+7, vge_q},
  {"vge_v", 			RSP_TEST_BASE+8, vge_v},
  {"vge_w", 			RSP_TEST_BASE+9, vge_w},
  {"vlt_dbl_v", 		RSP_TEST_BASE+10, vlt_dbl_v},
  {"vlt_h", 			RSP_TEST_BASE+11, vlt_h},
  {"vlt_q", 			RSP_TEST_BASE+12, vlt_q},
  {"vlt_v", 			RSP_TEST_BASE+13, vlt_v},
  {"vlt_w", 			RSP_TEST_BASE+14, vlt_w},
  {"vne_dbl_v", 		RSP_TEST_BASE+15, vne_dbl_v},
  {"vne_h", 			RSP_TEST_BASE+16, vne_h},
  {"vne_q", 			RSP_TEST_BASE+17, vne_q},
  {"vne_v", 			RSP_TEST_BASE+18, vne_v},
  {"vne_w", 			RSP_TEST_BASE+19, vne_w},
    {"",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_cmp(void) {rsp_regr(TestRefs);}

/*
 * Tests
 */

int veq_dbl_v() {return generic_rsp_regression("tests/veq_dbl_v");}
int veq_h() {return generic_rsp_regression("tests/veq_h");}
int veq_q() {return generic_rsp_regression("tests/veq_q");}
int veq_v() {return generic_rsp_regression("tests/veq_v");}
int veq_w() {return generic_rsp_regression("tests/veq_w");}
int vge_dbl_v() {return generic_rsp_regression("tests/vge_dbl_v");}
int vge_h() {return generic_rsp_regression("tests/vge_h");}
int vge_q() {return generic_rsp_regression("tests/vge_q");}
int vge_v() {return generic_rsp_regression("tests/vge_v");}
int vge_w() {return generic_rsp_regression("tests/vge_w");}
int vlt_dbl_v() {return generic_rsp_regression("tests/vlt_dbl_v");}
int vlt_h() {return generic_rsp_regression("tests/vlt_h");}
int vlt_q() {return generic_rsp_regression("tests/vlt_q");}
int vlt_v() {return generic_rsp_regression("tests/vlt_v");}
int vlt_w() {return generic_rsp_regression("tests/vlt_w");}
int vne_dbl_v() {return generic_rsp_regression("tests/vne_dbl_v");}
int vne_h() {return generic_rsp_regression("tests/vne_h");}
int vne_q() {return generic_rsp_regression("tests/vne_q");}
int vne_v() {return generic_rsp_regression("tests/vne_v");}
int vne_w() {return generic_rsp_regression("tests/vne_w");}