sample_updater: add tests resources
This resource files are used in tests. ota package zip file contains only text files. Config files are generated using tools/gen_update_config.py Test: N/A Change-Id: I9d3d0f81472dc20db18b32f4a9445a998b68b0e3 Signed-off-by: Zhomart Mukhamejanov <zhomart@google.com>
This commit is contained in:
BIN
updater_sample/tests/res/raw/ota_002_package.zip
Normal file
BIN
updater_sample/tests/res/raw/ota_002_package.zip
Normal file
Binary file not shown.
14
updater_sample/tests/res/raw/update_config_stream_001.json
Normal file
14
updater_sample/tests/res/raw/update_config_stream_001.json
Normal file
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"name": "streaming-001",
|
||||
"url": "http://foo.bar/update.zip",
|
||||
"type": "STREAMING",
|
||||
"streaming_metadata": {
|
||||
"property_files": [
|
||||
{
|
||||
"filename": "payload.bin",
|
||||
"offset": 531,
|
||||
"size": 5012323
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
35
updater_sample/tests/res/raw/update_config_stream_002.json
Normal file
35
updater_sample/tests/res/raw/update_config_stream_002.json
Normal file
@@ -0,0 +1,35 @@
|
||||
{
|
||||
"__": "*** Generated using tools/gen_update_config.py ***",
|
||||
"name": "S ota_002",
|
||||
"streaming_metadata": {
|
||||
"property_files": [
|
||||
{
|
||||
"filename": "payload.bin",
|
||||
"offset": 195,
|
||||
"size": 8
|
||||
},
|
||||
{
|
||||
"filename": "payload_properties.txt",
|
||||
"offset": 276,
|
||||
"size": 19
|
||||
},
|
||||
{
|
||||
"filename": "care_map.txt",
|
||||
"offset": 42,
|
||||
"size": 9
|
||||
},
|
||||
{
|
||||
"filename": "compatibility.zip",
|
||||
"offset": 119,
|
||||
"size": 14
|
||||
},
|
||||
{
|
||||
"filename": "metadata",
|
||||
"offset": 375,
|
||||
"size": 9
|
||||
}
|
||||
]
|
||||
},
|
||||
"type": "STREAMING",
|
||||
"url": "file:///data/sample-ota-packages/ota_002_package.zip"
|
||||
}
|
||||
Reference in New Issue
Block a user