tcp_cmd
fix tests
This commit is contained in:
@@ -81,26 +81,26 @@ TEST(TCP_CMD, tcp_data_cb) {
|
||||
tcp_cmd_recv(NULL, NULL, &p, ERR_OK);
|
||||
output = testing::internal::GetCapturedStdout();
|
||||
#ifndef DEBUG
|
||||
EXPECT_EQ(output, "help : shows a list of commands\n"
|
||||
"clear text/images : clears the text or images on the lcd\n"
|
||||
"text \"<text>\" : puts text on the lcd\n"
|
||||
"bgColor <r> <g> <b> : set the background color of the lcd\n"
|
||||
"color <r> <g> <b> : set the color of the text\n"
|
||||
"listFiles : shows a list with images in the filesystem\n"
|
||||
"setImage <image_name> : put an image on the screen\n"
|
||||
"setGif <image_name> : put a gif on the screen\n"
|
||||
"exit : closes the connection\n\n$>\n");
|
||||
EXPECT_EQ(output, "help : shows a list of commands\n"
|
||||
"clear text/images : clears the text or images on the lcd\n"
|
||||
"text \"<text>\" : puts text on the lcd\n"
|
||||
"bgColor (<a>) <r> <g> <b> : set the background color of the lcd\n"
|
||||
"color (<a>) <r> <g> <b> : set the color of the text\n"
|
||||
"listFiles : shows a list with images in the filesystem\n"
|
||||
"setImage <image_name> : put an image on the screen\n"
|
||||
"setGif <image_name> : put a gif on the screen\n"
|
||||
"exit : closes the connection\n\n$>\n");
|
||||
#else
|
||||
EXPECT_EQ(output, "tcp_recved\ntcp_write:\n"
|
||||
"help : shows a list of commands\n"
|
||||
"clear text/images : clears the text or images on the lcd\n"
|
||||
"text \"<text>\" : puts text on the lcd\n"
|
||||
"bgColor <r> <g> <b> : set the background color of the lcd\n"
|
||||
"color <r> <g> <b> : set the color of the text\n"
|
||||
"listFiles : shows a list with images in the filesystem\n"
|
||||
"setImage <image_name> : put an image on the screen\n"
|
||||
"setGif <image_name> : put a gif on the screen\n"
|
||||
"exit : closes the connection\n"
|
||||
"help : shows a list of commands\n"
|
||||
"clear text/images : clears the text or images on the lcd\n"
|
||||
"text \"<text>\" : puts text on the lcd\n"
|
||||
"bgColor (<a>) <r> <g> <b> : set the background color of the lcd\n"
|
||||
"color (<a>) <r> <g> <b> : set the color of the text\n"
|
||||
"listFiles : shows a list with images in the filesystem\n"
|
||||
"setImage <image_name> : put an image on the screen\n"
|
||||
"setGif <image_name> : put a gif on the screen\n"
|
||||
"exit : closes the connection\n"
|
||||
"\ntcp_output\ntcp_write:\n$>\ntcp_output\npbuf_free\n");
|
||||
#endif
|
||||
|
||||
@@ -113,7 +113,7 @@ TEST(TCP_CMD, tcp_data_cb) {
|
||||
#ifndef DEBUG
|
||||
EXPECT_EQ(output, "$>\n");
|
||||
#else
|
||||
EXPECT_EQ(output, "tcp_recved\nlcd_display_text @ 10 10 with color 0xFF000000 bg color 0xFF000000\nThis is printed on the display\ntcp_write:\n$>\ntcp_output\npbuf_free\n");
|
||||
EXPECT_EQ(output, "tcp_recved\nlcd_display_text @ 10 10 with color 0xFFFFFFFF bg color 0xFF000000\nThis is printed on the display\ntcp_write:\n$>\ntcp_output\npbuf_free\n");
|
||||
#endif
|
||||
|
||||
strcpy(cmd, "color 0x555555");
|
||||
|
||||
Reference in New Issue
Block a user