Max | 70c7d41 | 2017-02-24 13:59:14 +0100 | [diff] [blame] | 1 | Checking ctrl types... |
Neels Hofmeyr | 7c1ec8c | 2017-03-02 14:32:52 +0100 | [diff] [blame] | 2 | ctrl type 0 is (unknown) -> 0 OK |
Max | 70c7d41 | 2017-02-24 13:59:14 +0100 | [diff] [blame] | 3 | ctrl type 1 is GET -> 1 OK |
| 4 | ctrl type 2 is SET -> 2 OK |
| 5 | ctrl type 3 is GET_REPLY -> 3 OK |
| 6 | ctrl type 4 is SET_REPLY -> 4 OK |
| 7 | ctrl type 5 is TRAP -> 5 OK |
| 8 | ctrl type 6 is ERROR -> 6 OK |
| 9 | ctrl type 64 is unknown 0x40 [PARSE FAILED] |
Neels Hofmeyr | 505c965 | 2017-09-26 15:24:58 +0200 | [diff] [blame] | 10 | test parsing: 'GET 1 variable' |
| 11 | id = '1' |
| 12 | variable = 'variable' |
| 13 | value = NULL |
| 14 | reply = NULL |
| 15 | ok |
| 16 | test parsing: 'GET 1 variable\n' |
| 17 | id = '1' |
| 18 | variable = 'variable\n' |
| 19 | value = NULL |
| 20 | reply = NULL |
| 21 | ok |
| 22 | test parsing: 'GET 1 var\ni\nable' |
| 23 | id = '1' |
| 24 | variable = 'var\ni\nable' |
| 25 | value = NULL |
| 26 | reply = NULL |
| 27 | ok |
| 28 | test parsing: 'GET 1 variable value' |
| 29 | id = '1' |
| 30 | variable = 'variable' |
| 31 | value = NULL |
| 32 | reply = NULL |
| 33 | ok |
| 34 | test parsing: 'GET 1 variable value\n' |
| 35 | id = '1' |
| 36 | variable = 'variable' |
| 37 | value = NULL |
| 38 | reply = NULL |
| 39 | ok |
| 40 | test parsing: 'GET 1 variable multiple value tokens' |
| 41 | id = '1' |
| 42 | variable = 'variable' |
| 43 | value = NULL |
| 44 | reply = NULL |
| 45 | ok |
| 46 | test parsing: 'GET 1 variable multiple value tokens\n' |
| 47 | id = '1' |
| 48 | variable = 'variable' |
| 49 | value = NULL |
| 50 | reply = NULL |
| 51 | ok |
| 52 | test parsing: 'SET 1 variable value' |
| 53 | id = '1' |
| 54 | variable = 'variable' |
| 55 | value = 'value' |
| 56 | reply = NULL |
| 57 | ok |
| 58 | test parsing: 'SET 1 variable value\n' |
| 59 | id = '1' |
| 60 | variable = 'variable' |
| 61 | value = 'value' |
| 62 | reply = NULL |
| 63 | ok |
| 64 | test parsing: 'SET weird_id variable value' |
| 65 | id = 'weird_id' |
| 66 | variable = 'variable' |
| 67 | value = 'value' |
| 68 | reply = NULL |
| 69 | ok |
| 70 | test parsing: 'SET weird_id variable value\n' |
| 71 | id = 'weird_id' |
| 72 | variable = 'variable' |
| 73 | value = 'value' |
| 74 | reply = NULL |
| 75 | ok |
| 76 | test parsing: 'SET 1 variable multiple value tokens' |
| 77 | id = '1' |
| 78 | variable = 'variable' |
| 79 | value = 'multiple value tokens' |
| 80 | reply = NULL |
| 81 | ok |
| 82 | test parsing: 'SET 1 variable multiple value tokens\n' |
| 83 | id = '1' |
| 84 | variable = 'variable' |
| 85 | value = 'multiple value tokens' |
| 86 | reply = NULL |
| 87 | ok |
| 88 | test parsing: 'SET 1 variable value_with_trailing_spaces ' |
| 89 | id = '1' |
| 90 | variable = 'variable' |
| 91 | value = 'value_with_trailing_spaces ' |
| 92 | reply = NULL |
| 93 | ok |
| 94 | test parsing: 'SET 1 variable value_with_trailing_spaces \n' |
| 95 | id = '1' |
| 96 | variable = 'variable' |
| 97 | value = 'value_with_trailing_spaces ' |
| 98 | reply = NULL |
| 99 | ok |
| 100 | test parsing: 'SET \n special_char_id value' |
| 101 | id = '\n' |
| 102 | variable = 'special_char_id' |
| 103 | value = 'value' |
| 104 | reply = NULL |
| 105 | ok |
| 106 | test parsing: 'SET \t special_char_id value' |
| 107 | id = '\t' |
| 108 | variable = 'special_char_id' |
| 109 | value = 'value' |
| 110 | reply = NULL |
| 111 | ok |