test.h (391B)
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 } exp_t; 21 22 typedef struct { 23 char *name; 24 uint32_t program[50]; 25 size_t program_len; 26 exp_t exp; 27 test_res_t result; 28 } test_t; 29 30 31 #endif