Lines Matching full:version
12 # Each protocol version to be tested needs a 'testcases_vX.txt' file
16 def parse_testcases(version): argument
17 with open('testcases_v%d.txt' % version, 'r') as f:
80 for version in PROTOCOL_VERSIONS:
81 test_protocol_version(p, version)
115 def test_protocol_version(p, version): argument
117 print('Testing version %d...' % version)
120 req = {'version': version, 'load': None}
125 cases = parse_testcases(version)
128 req = {'version': version, 'set': send}
130 if readback.get('version', None) != version:
131 raise RuntimeError('Expected {"version" : %d} in response' % version)
139 print('Version %d OK' % version)
145 save_result = send_request(p, {'version': 2, 'save': temp_sdkconfig_path})
154 load_result = send_request(p, {'version': 2, 'load': temp_sdkconfig_path})
161 load_result = send_request(p, {'version': 1, 'load': temp_sdkconfig_path})
171 bad_escaping = r'{ "version" : 2, "load" : "c:\some\path\not\escaped\as\json" }'