buf->maxlen = 4096;
}
-void tests_assert_uart_receive(const char *elfname,
+void tests_assert_uart_receive_avr(avr_t *avr,
unsigned long run_usec,
const char *expected,
char uart) {
- avr_t *avr = tests_init_avr(elfname);
struct output_buffer buf;
init_output_buffer(&buf);
_fail(NULL, 0, "UART outputs differ: expected \"%s\", got \"%s\"", expected, buf.str);
}
+void tests_assert_uart_receive(const char *elfname,
+ unsigned long run_usec,
+ const char *expected,
+ char uart) {
+ avr_t *avr = tests_init_avr(elfname);
+
+ tests_assert_uart_receive_avr(avr,
+ run_usec,
+ expected,
+ uart);
+}
+
void tests_assert_cycles_at_least(unsigned long n) {
if (tests_cycle_count < n)
_fail(NULL, 0, "Program ran for too few cycles (%"
unsigned long run_usec,
const char *expected, // what we should get
char uart);
+void tests_assert_uart_receive_avr(avr_t *avr,
+ unsigned long run_usec,
+ const char *expected,
+ char uart);
void tests_assert_cycles_at_least(unsigned long n);
void tests_assert_cycles_at_most(unsigned long n);