File: test_atmega88_uart_echo.c

package info (click to toggle)
simavr 1.6%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 20,268 kB
  • sloc: ansic: 362,806; makefile: 622; ruby: 70; python: 63
file content (14 lines) | stat: -rw-r--r-- 335 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#include "tests.h"

int main(int argc, char **argv) {
	tests_init(argc, argv);

	static const char *expected =
		"Hey there, this should be received back\r\n"
		"Received: Hey there, this should be received back\r\r\n";
	tests_assert_uart_receive("atmega88_uart_echo.axf", 100000,
				  expected, '0');

	tests_success();
	return 0;
}