RetroArch
Classes | Functions
test.c File Reference
#include "internal.h"
#include "rurl.h"
#include "smw_snes.h"
#include "galaga_nes.h"
#include <stddef.h>
#include <string.h>
#include <assert.h>
#include "lua.h"
#include "lauxlib.h"
Include dependency graph for test.c:

Classes

struct  memory_t
 
struct  lboard_test_state_t
 

Functions

static unsigned peekb (unsigned address, memory_t *memory)
 
static unsigned peek (unsigned address, unsigned num_bytes, void *ud)
 
static void parse_operand (rc_operand_t *self, const char **memaddr)
 
static void comp_operand (rc_operand_t *self, char expected_type, char expected_size, unsigned expected_value)
 
static void parse_comp_operand (const char *memaddr, char expected_type, char expected_size, unsigned expected_value)
 
static void parse_error_operand (const char *memaddr, int valid_chars)
 
static void parse_comp_operand_value (const char *memaddr, memory_t *memory, unsigned expected_value)
 
static void test_operand (void)
 
static void parse_condition (rc_condition_t *self, const char *memaddr)
 
static void parse_comp_condition (const char *memaddr, char expected_type, char expected_left_type, char expected_left_size, unsigned expected_left_value, char expected_operator, char expected_right_type, char expected_right_size, unsigned expected_right_value, int expected_required_hits)
 
static void parse_test_condition (const char *memaddr, memory_t *memory, int value)
 
static void test_condition (void)
 
static void parse_trigger (rc_trigger_t **self, void *buffer, const char *memaddr)
 
static void comp_trigger (rc_trigger_t *self, memory_t *memory, int expected_result)
 
static rc_condition_tcondset_get_cond (rc_condset_t *condset, int ndx)
 
static rc_condset_ttrigger_get_set (rc_trigger_t *trigger, int ndx)
 
static void test_trigger (void)
 
static void parse_comp_term (const char *memaddr, char expected_var_size, unsigned expected_address, int is_bcd, int is_const)
 
static void parse_comp_term_fp (const char *memaddr, char expected_var_size, unsigned expected_address, double fp)
 
static void parse_comp_term_mem (const char *memaddr, char expected_size_1, unsigned expected_address_1, char expected_size_2, unsigned expected_address_2)
 
static void parse_comp_term_value (const char *memaddr, memory_t *memory, unsigned value)
 
static void test_term (void)
 
static void parse_comp_value (const char *memaddr, memory_t *memory, unsigned expected_value)
 
static void test_value (void)
 
static rc_lboard_tparse_lboard (const char *memaddr, void *buffer)
 
static void lboard_check (const char *memaddr, int expected_ret)
 
static void lboard_reset (rc_lboard_t *lboard, lboard_test_state_t *state)
 
static unsigned lboard_evaluate (rc_lboard_t *lboard, lboard_test_state_t *test, memory_t *memory)
 
static void test_lboard (void)
 
static void test_lua (void)
 
int main (void)
 

Function Documentation

◆ comp_operand()

static void comp_operand ( rc_operand_t self,
char  expected_type,
char  expected_size,
unsigned  expected_value 
)
static
Here is the caller graph for this function:

◆ comp_trigger()

static void comp_trigger ( rc_trigger_t self,
memory_t memory,
int  expected_result 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ condset_get_cond()

static rc_condition_t* condset_get_cond ( rc_condset_t condset,
int  ndx 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lboard_check()

static void lboard_check ( const char *  memaddr,
int  expected_ret 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lboard_evaluate()

static unsigned lboard_evaluate ( rc_lboard_t lboard,
lboard_test_state_t test,
memory_t memory 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ lboard_reset()

static void lboard_reset ( rc_lboard_t lboard,
lboard_test_state_t state 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ main()

int main ( void  )
Here is the call graph for this function:

◆ parse_comp_condition()

static void parse_comp_condition ( const char *  memaddr,
char  expected_type,
char  expected_left_type,
char  expected_left_size,
unsigned  expected_left_value,
char  expected_operator,
char  expected_right_type,
char  expected_right_size,
unsigned  expected_right_value,
int  expected_required_hits 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_comp_operand()

static void parse_comp_operand ( const char *  memaddr,
char  expected_type,
char  expected_size,
unsigned  expected_value 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_comp_operand_value()

static void parse_comp_operand_value ( const char *  memaddr,
memory_t memory,
unsigned  expected_value 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_comp_term()

static void parse_comp_term ( const char *  memaddr,
char  expected_var_size,
unsigned  expected_address,
int  is_bcd,
int  is_const 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_comp_term_fp()

static void parse_comp_term_fp ( const char *  memaddr,
char  expected_var_size,
unsigned  expected_address,
double  fp 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_comp_term_mem()

static void parse_comp_term_mem ( const char *  memaddr,
char  expected_size_1,
unsigned  expected_address_1,
char  expected_size_2,
unsigned  expected_address_2 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_comp_term_value()

static void parse_comp_term_value ( const char *  memaddr,
memory_t memory,
unsigned  value 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_comp_value()

static void parse_comp_value ( const char *  memaddr,
memory_t memory,
unsigned  expected_value 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_condition()

static void parse_condition ( rc_condition_t self,
const char *  memaddr 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_error_operand()

static void parse_error_operand ( const char *  memaddr,
int  valid_chars 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_lboard()

static rc_lboard_t* parse_lboard ( const char *  memaddr,
void buffer 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_operand()

static void parse_operand ( rc_operand_t self,
const char **  memaddr 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_test_condition()

static void parse_test_condition ( const char *  memaddr,
memory_t memory,
int  value 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_trigger()

static void parse_trigger ( rc_trigger_t **  self,
void buffer,
const char *  memaddr 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ peek()

static unsigned peek ( unsigned  address,
unsigned  num_bytes,
void ud 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ peekb()

static unsigned peekb ( unsigned  address,
memory_t memory 
)
static
Here is the caller graph for this function:

◆ test_condition()

static void test_condition ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_lboard()

static void test_lboard ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_lua()

static void test_lua ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_operand()

static void test_operand ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_term()

static void test_term ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_trigger()

static void test_trigger ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ test_value()

static void test_value ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ trigger_get_set()

static rc_condset_t* trigger_get_set ( rc_trigger_t trigger,
int  ndx 
)
static
Here is the caller graph for this function: