test.h (426B)
1 #ifndef TEST_H 2 #define TEST_H 3 4 typedef enum { 5 TEST_SUCCESS, 6 TEST_FAILURE, 7 } test_res_t; 8 9 typedef struct { 10 uint32_t expected; 11 uint32_t address; 12 } exp_word_t; 13 14 typedef struct { 15 uint32_t x[32]; 16 uint32_t x_check_mask; 17 uint32_t pc; 18 19 exp_word_t mem[50]; 20 int mem_len; 21 trap_cause_t cause; 22 } exp_t; 23 24 typedef struct { 25 char *name; 26 uint32_t program[50]; 27 size_t program_len; 28 exp_t exp; 29 test_res_t result; 30 } test_t; 31 32 33 #endif