rsp_regr_vu_accb.c 2.31 KB
#include <sys/types.h>
#include <sys/sbd.h>
#include <sys/stat.h>
#include <sys/mman.h>
#include <sys/sema.h>
#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 vaccb_el0();
int vaccb_el1();
int vaccb_el2();
int vaccb_el3();
int vaccb_el4();
int vaccb_el5();
int vaccb_el6();
int vaccb_el7();

/*
 * An array of tests, each of which corresponds to a separate menu
 * item callable from the master ide menu.
 */
static TEST_REF TestRefs[] = {
  {"vaccb_el0", 		RSP_TEST_BASE+0, vaccb_el0},
  {"vaccb_el1", 		RSP_TEST_BASE+1, vaccb_el1},
  {"vaccb_el2", 		RSP_TEST_BASE+2, vaccb_el2},
  {"vaccb_el3", 		RSP_TEST_BASE+3, vaccb_el3},
  {"vaccb_el4", 		RSP_TEST_BASE+4, vaccb_el4},
  {"vaccb_el5", 		RSP_TEST_BASE+5, vaccb_el5},
  {"vaccb_el6", 		RSP_TEST_BASE+6, vaccb_el6},
  {"vaccb_el7", 		RSP_TEST_BASE+7, vaccb_el7},
    {"",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_accb(void) {rsp_regr(TestRefs);}

/*
 * Tests
 */

int vaccb_el0() {return generic_rsp_regression("tests/vaccb_el0");}
int vaccb_el1() {return generic_rsp_regression("tests/vaccb_el1");}
int vaccb_el2() {return generic_rsp_regression("tests/vaccb_el2");}
int vaccb_el3() {return generic_rsp_regression("tests/vaccb_el3");}
int vaccb_el4() {return generic_rsp_regression("tests/vaccb_el4");}
int vaccb_el5() {return generic_rsp_regression("tests/vaccb_el5");}
int vaccb_el6() {return generic_rsp_regression("tests/vaccb_el6");}
int vaccb_el7() {return generic_rsp_regression("tests/vaccb_el7");}