unit: Move GetInput 3.1-3.2 test data
authorDenis Kenzior <denkenz@gmail.com>
Thu, 18 Oct 2012 18:45:49 +0000 (13:45 -0500)
committerDenis Kenzior <denkenz@gmail.com>
Thu, 18 Oct 2012 18:45:49 +0000 (13:45 -0500)
unit/stk-test-data.h
unit/test-stkutil.c

index 8e9bfa1..9bbf851 100644 (file)
@@ -767,3 +767,34 @@ static const unsigned char get_input_211[] = {
 static const unsigned char get_input_response_211[] = {
        0x81, 0x03, 0x01, 0x23, 0x00, 0x82, 0x02, 0x82, 0x81, 0x83, 0x01, 0x12,
 };
+
+static const unsigned char get_input_311[] = {
+       0xD0, 0x28, 0x81, 0x03, 0x01, 0x23, 0x01, 0x82, 0x02, 0x81, 0x82, 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, 0x91, 0x02, 0x05, 0x05
+};
+
+static const unsigned char get_input_response_311[] = {
+       0x81, 0x03, 0x01, 0x23, 0x01, 0x82, 0x02, 0x82, 0x81, 0x83, 0x01, 0x00,
+       0x8d, 0x06, 0x04, 0x48, 0x45, 0x4c, 0x4c, 0x4f,
+};
+
+static const unsigned char get_input_321[] = {
+       0xD0, 0x81, 0x9D, 0x81, 0x03, 0x01, 0x23, 0x01, 0x82, 0x02, 0x81, 0x82,
+       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,
+       0x91, 0x02, 0x05, 0x05
+};
+
+#define get_input_response_321 get_input_response_311
index 608fbad..05e43ef 100644 (file)
@@ -1553,49 +1553,6 @@ struct get_input_test {
        char *html;
 };
 
-static unsigned char get_input_311[] = { 0xD0, 0x28, 0x81, 0x03, 0x01, 0x23,
-                                               0x01, 0x82, 0x02, 0x81, 0x82,
-                                               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, 0x91, 0x02, 0x05,
-                                               0x05 };
-
-static unsigned char get_input_321[] = { 0xD0, 0x81, 0x9D, 0x81, 0x03, 0x01,
-                                               0x23, 0x01, 0x82, 0x02, 0x81,
-                                               0x82, 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,
-                                               0x91, 0x02, 0x05, 0x05 };
-
 static unsigned char get_input_411[] = { 0xD0, 0x1B, 0x81, 0x03, 0x01, 0x23,
                                                0x03, 0x82, 0x02, 0x81, 0x82,
                                                0x8D, 0x0C, 0x04, 0x45, 0x6E,
@@ -17716,12 +17673,6 @@ static const struct terminal_response_test get_input_response_data_211 = {
        },
 };
 
-static const unsigned char get_input_response_311[] = {
-       0x81, 0x03, 0x01, 0x23, 0x01, 0x82, 0x02, 0x82,
-       0x81, 0x83, 0x01, 0x00, 0x8d, 0x06, 0x04, 0x48,
-       0x45, 0x4c, 0x4c, 0x4f,
-};
-
 static const struct terminal_response_test get_input_response_data_311 = {
        .pdu = get_input_response_311,
        .pdu_len = sizeof(get_input_response_311),