From 02e912c2355b9991efdf51fce36ecdc9d55aabc5 Mon Sep 17 00:00:00 2001 From: Zhomart Mukhamejanov Date: Tue, 24 Apr 2018 18:22:47 -0700 Subject: [PATCH] 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 --- .../tests/res/raw/ota_002_package.zip | Bin 0 -> 748 bytes .../res/raw/update_config_stream_001.json | 14 +++++++ .../res/raw/update_config_stream_002.json | 35 ++++++++++++++++++ 3 files changed, 49 insertions(+) create mode 100644 updater_sample/tests/res/raw/ota_002_package.zip create mode 100644 updater_sample/tests/res/raw/update_config_stream_001.json create mode 100644 updater_sample/tests/res/raw/update_config_stream_002.json diff --git a/updater_sample/tests/res/raw/ota_002_package.zip b/updater_sample/tests/res/raw/ota_002_package.zip new file mode 100644 index 0000000000000000000000000000000000000000..3bfe377579e15a3170cbfa02fbca154899e682d5 GIT binary patch literal 748 zcmWIWW@Zs#;Nak3(9N6S!+->Mfb8VNqSW}@!~(sNiV{XnhHw920$c&!>>O4CGd%f# zsyKl-0H-;EAan9_3ld8*lQMHMODgrMG7A{_7(V_-5e1w0E5Euz7^og(DsB_GfwBdO zl{xu|DSAnnd5jzk-~U7TU{i$7dBpPq)o|c7MGRp|d_hruL26M+W@<6mr@{$@ zTgRL<5P`|aB*K7*7UX~iMGGo`#RC|c09BZnj?)Dd77 zkckur=o*oO2^7!>@Bqk!YD5ZKY;H#m5m104fDI#o;0^F*WdkW^1wu!l;;BH)zyJW> C{+gBm literal 0 HcmV?d00001 diff --git a/updater_sample/tests/res/raw/update_config_stream_001.json b/updater_sample/tests/res/raw/update_config_stream_001.json new file mode 100644 index 00000000..965f737d --- /dev/null +++ b/updater_sample/tests/res/raw/update_config_stream_001.json @@ -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 + } + ] + } +} diff --git a/updater_sample/tests/res/raw/update_config_stream_002.json b/updater_sample/tests/res/raw/update_config_stream_002.json new file mode 100644 index 00000000..36c5722f --- /dev/null +++ b/updater_sample/tests/res/raw/update_config_stream_002.json @@ -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" +}