unit: Move GetInput 4.1-4.2 test data
authorDenis Kenzior <denkenz@gmail.com>
Fri, 19 Oct 2012 01:28:56 +0000 (20:28 -0500)
committerDenis Kenzior <denkenz@gmail.com>
Fri, 19 Oct 2012 01:28:56 +0000 (20:28 -0500)
unit/stk-test-data.h
unit/test-stkutil.c

index 9bbf851..7786ce1 100644 (file)
@@ -798,3 +798,38 @@ static const unsigned char get_input_321[] = {
 };
 
 #define get_input_response_321 get_input_response_311
+
+static const unsigned char get_input_411[] = {
+       0xD0, 0x1B, 0x81, 0x03, 0x01, 0x23, 0x03, 0x82, 0x02, 0x81, 0x82, 0x8D,
+       0x0C, 0x04, 0x45, 0x6E, 0x74, 0x65, 0x72, 0x20, 0x48, 0x65, 0x6C, 0x6C,
+       0x6F, 0x91, 0x02, 0x0C, 0x0C
+};
+
+static const unsigned char get_input_response_411[] = {
+       0x81, 0x03, 0x01, 0x23, 0x03, 0x82, 0x02, 0x82, 0x81, 0x83, 0x01, 0x00,
+       0x8d, 0x19, 0x08, 0x04, 0x17, 0x04, 0x14, 0x04, 0x20, 0x04, 0x10, 0x04,
+       0x12, 0x04, 0x21, 0x04, 0x22, 0x04, 0x12, 0x04, 0x23, 0x04, 0x19, 0x04,
+       0x22, 0x04, 0x15,
+};
+
+static const unsigned char get_input_421[] = {
+       0xD0, 0x1B, 0x81, 0x03, 0x01, 0x23, 0x03, 0x82, 0x02, 0x81, 0x82, 0x8D,
+       0x0C, 0x04, 0x45, 0x6E, 0x74, 0x65, 0x72, 0x20, 0x48, 0x65, 0x6C, 0x6C,
+       0x6F, 0x91, 0x02, 0x05, 0xFF
+};
+
+static const unsigned char get_input_response_421[] = {
+       0x81, 0x03, 0x01, 0x23, 0x03, 0x82, 0x02, 0x82, 0x81, 0x83, 0x01, 0x00,
+       0x8d, 0x81, 0x8d, 0x08, 0x04, 0x17, 0x04, 0x14, 0x04, 0x20, 0x04, 0x10,
+       0x04, 0x12, 0x04, 0x21, 0x04, 0x22, 0x04, 0x12, 0x04, 0x23, 0x04, 0x19,
+       0x04, 0x22, 0x04, 0x15, 0x04, 0x17, 0x04, 0x14, 0x04, 0x20, 0x04, 0x10,
+       0x04, 0x12, 0x04, 0x21, 0x04, 0x22, 0x04, 0x12, 0x04, 0x23, 0x04, 0x19,
+       0x04, 0x22, 0x04, 0x15, 0x04, 0x17, 0x04, 0x14, 0x04, 0x20, 0x04, 0x10,
+       0x04, 0x12, 0x04, 0x21, 0x04, 0x22, 0x04, 0x12, 0x04, 0x23, 0x04, 0x19,
+       0x04, 0x22, 0x04, 0x15, 0x04, 0x17, 0x04, 0x14, 0x04, 0x20, 0x04, 0x10,
+       0x04, 0x12, 0x04, 0x21, 0x04, 0x22, 0x04, 0x12, 0x04, 0x23, 0x04, 0x19,
+       0x04, 0x22, 0x04, 0x15, 0x04, 0x17, 0x04, 0x14, 0x04, 0x20, 0x04, 0x10,
+       0x04, 0x12, 0x04, 0x21, 0x04, 0x22, 0x04, 0x12, 0x04, 0x23, 0x04, 0x19,
+       0x04, 0x22, 0x04, 0x15, 0x04, 0x17, 0x04, 0x14, 0x04, 0x20, 0x04, 0x10,
+       0x04, 0x12, 0x04, 0x21, 0x04, 0x22, 0x04, 0x12, 0x04, 0x23, 0x04, 0x19,
+};
index 05e43ef..76b9aba 100644 (file)
@@ -1553,20 +1553,6 @@ struct get_input_test {
        char *html;
 };
 
-static unsigned char get_input_411[] = { 0xD0, 0x1B, 0x81, 0x03, 0x01, 0x23,
-                                               0x03, 0x82, 0x02, 0x81, 0x82,
-                                               0x8D, 0x0C, 0x04, 0x45, 0x6E,
-                                               0x74, 0x65, 0x72, 0x20, 0x48,
-                                               0x65, 0x6C, 0x6C, 0x6F, 0x91,
-                                               0x02, 0x0C, 0x0C };
-
-static unsigned char get_input_421[] = { 0xD0, 0x1B, 0x81, 0x03, 0x01, 0x23,
-                                               0x03, 0x82, 0x02, 0x81, 0x82,
-                                               0x8D, 0x0C, 0x04, 0x45, 0x6E,
-                                               0x74, 0x65, 0x72, 0x20, 0x48,
-                                               0x65, 0x6C, 0x6C, 0x6F, 0x91,
-                                               0x02, 0x05, 0xFF };
-
 static unsigned char get_input_511[] = { 0xD0, 0x23, 0x81, 0x03, 0x01, 0x23,
                                                0x00, 0x82, 0x02, 0x81, 0x82,
                                                0x8D, 0x0C, 0x04, 0x45, 0x6E,
@@ -17693,14 +17679,6 @@ static const struct terminal_response_test get_input_response_data_311 = {
        },
 };
 
-static const unsigned char get_input_response_411[] = {
-       0x81, 0x03, 0x01, 0x23, 0x03, 0x82, 0x02, 0x82,
-       0x81, 0x83, 0x01, 0x00, 0x8d, 0x19, 0x08, 0x04,
-       0x17, 0x04, 0x14, 0x04, 0x20, 0x04, 0x10, 0x04,
-       0x12, 0x04, 0x21, 0x04, 0x22, 0x04, 0x12, 0x04,
-       0x23, 0x04, 0x19, 0x04, 0x22, 0x04, 0x15,
-};
-
 static const struct terminal_response_test get_input_response_data_411 = {
        .pdu = get_input_response_411,
        .pdu_len = sizeof(get_input_response_411),
@@ -17721,29 +17699,6 @@ static const struct terminal_response_test get_input_response_data_411 = {
        },
 };
 
-static const unsigned char get_input_response_421[] = {
-       0x81, 0x03, 0x01, 0x23, 0x03, 0x82, 0x02, 0x82,
-       0x81, 0x83, 0x01, 0x00, 0x8d, 0x81, 0x8d, 0x08,
-       0x04, 0x17, 0x04, 0x14, 0x04, 0x20, 0x04, 0x10,
-       0x04, 0x12, 0x04, 0x21, 0x04, 0x22, 0x04, 0x12,
-       0x04, 0x23, 0x04, 0x19, 0x04, 0x22, 0x04, 0x15,
-       0x04, 0x17, 0x04, 0x14, 0x04, 0x20, 0x04, 0x10,
-       0x04, 0x12, 0x04, 0x21, 0x04, 0x22, 0x04, 0x12,
-       0x04, 0x23, 0x04, 0x19, 0x04, 0x22, 0x04, 0x15,
-       0x04, 0x17, 0x04, 0x14, 0x04, 0x20, 0x04, 0x10,
-       0x04, 0x12, 0x04, 0x21, 0x04, 0x22, 0x04, 0x12,
-       0x04, 0x23, 0x04, 0x19, 0x04, 0x22, 0x04, 0x15,
-       0x04, 0x17, 0x04, 0x14, 0x04, 0x20, 0x04, 0x10,
-       0x04, 0x12, 0x04, 0x21, 0x04, 0x22, 0x04, 0x12,
-       0x04, 0x23, 0x04, 0x19, 0x04, 0x22, 0x04, 0x15,
-       0x04, 0x17, 0x04, 0x14, 0x04, 0x20, 0x04, 0x10,
-       0x04, 0x12, 0x04, 0x21, 0x04, 0x22, 0x04, 0x12,
-       0x04, 0x23, 0x04, 0x19, 0x04, 0x22, 0x04, 0x15,
-       0x04, 0x17, 0x04, 0x14, 0x04, 0x20, 0x04, 0x10,
-       0x04, 0x12, 0x04, 0x21, 0x04, 0x22, 0x04, 0x12,
-       0x04, 0x23, 0x04, 0x19,
-};
-
 static const struct terminal_response_test get_input_response_data_421 = {
        .pdu = get_input_response_421,
        .pdu_len = sizeof(get_input_response_421),