|
|
@@ -170,6 +170,12 @@ static struct setting test_hexhyp_setting = {
|
|
170
|
170
|
.type = &setting_type_hexhyp,
|
|
171
|
171
|
};
|
|
172
|
172
|
|
|
|
173
|
+/** Test raw hex string setting type */
|
|
|
174
|
+static struct setting test_hexraw_setting = {
|
|
|
175
|
+ .name = "test_hexraw",
|
|
|
176
|
+ .type = &setting_type_hexraw,
|
|
|
177
|
+};
|
|
|
178
|
+
|
|
173
|
179
|
/** Test UUID setting type */
|
|
174
|
180
|
static struct setting test_uuid_setting = {
|
|
175
|
181
|
.name = "test_uuid",
|
|
|
@@ -262,6 +268,14 @@ static void settings_test_exec ( void ) {
|
|
262
|
268
|
0x09, 0x6c, 0x66, 0x13, 0xc1, 0xa8, 0xec, 0x27 ),
|
|
263
|
269
|
"9f-e5-6d-fb-24-3a-4c-bb-a9-09-6c-66-13-c1-a8-ec-27" );
|
|
264
|
270
|
|
|
|
271
|
+ /* "hexraw" setting type */
|
|
|
272
|
+ storef_ok ( &test_settings, &test_hexraw_setting,
|
|
|
273
|
+ "012345abcdef", RAW ( 0x01, 0x23, 0x45, 0xab, 0xcd, 0xef ));
|
|
|
274
|
+ fetchf_ok ( &test_settings, &test_hexraw_setting,
|
|
|
275
|
+ RAW ( 0x9e, 0x4b, 0x6e, 0xef, 0x36, 0xb6, 0x46, 0xfe, 0x8f,
|
|
|
276
|
+ 0x17, 0x06, 0x39, 0x6b, 0xf4, 0x48, 0x4e ),
|
|
|
277
|
+ "9e4b6eef36b646fe8f1706396bf4484e" );
|
|
|
278
|
+
|
|
265
|
279
|
/* "uuid" setting type (no store capability) */
|
|
266
|
280
|
fetchf_ok ( &test_settings, &test_uuid_setting,
|
|
267
|
281
|
RAW ( 0x1a, 0x6a, 0x74, 0x9d, 0x0e, 0xda, 0x46, 0x1a,0xa8,
|